NEW6.00.00 · Released 17 April 2025
High Importance
Breaking Change
NEWfinPOWER Connect WS
Released in
6.00.00
17 April 2025
- Opened30 Oct 2024
- Closed4 Nov 2024
- Released17 Apr
Article 22336
Job J034615
V6; Unless an "Accept" header is specified, Web Services will now return a JSON rather an XML Response
Under version 4 of Web Services, specifying the "Content-Type" header (to indicate whether parameters were being passed in XML or JSON format) was enough to tell Web Services the format to return the response in, e.g., the following will have returned an XML Response:
GET http://localhost:51149/Api/Ping/PingEx HTTP/1.1Content-Type: text/xmlHost: localhost:51149
With version 6, and the move to ASP.NET Core, an "Accept" header must be specified if anything but the default response format (JSON) is required, e.g.:
GET http://localhost:51149/Api/Ping/PingEx HTTP/1.1Content-Type: text/xmlAccept: text/xmlHost: localhost:51149