Article Details
| Id: | 22336 |
| Product: | finPOWER Connect WS |
| Type: | NEW |
| Version: | 6.00.00 |
| Opened: | 30/10/2024 |
| Closed: | 04/11/2024 |
| Released: | 17/04/2025 |
| Job: | J034615 |
High Importance |
|
Breaking Change |
|
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
High Importance
Breaking Change