REST/XML instead of JSON
Joined: 28 Jul 2016
Topic: REST/XML instead of JSON
Posted: 12 Nov 2019 at 11:01pm
Is there any way to use XData to work with REST/XML instead of REST/JSON?
I suppose I can get away with sending the XML request with:
But if the response is XML, how would I effectively respond when something like this is returned :
That is, will StatusCodel be parsed correctly to be able to use
Some of the returned error codes are IID, 11, IQT... (not the standard html error codes)
Wagner R. Landgraf
Joined: 18 May 2010
|Post Options Quote Reply Posted: 20 Nov 2019 at 9:39pm|
The status code should be returned as HTTP status code, regardless if the content is JSON or XML.
If your status code is inside the XML, that's specific format and the client should parse the XML to get the status code in the tag specified by your application (in this case, <Code> tag).
|Forum Jump||Forum Permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum