How to get Odata Web API to return XML data
I have created an Odata Web API service, by default this service returns data in JSON format. How can I get the data in XML format?
thank
+3
user1301587
source
to share
1 answer
If you are using OData V4, JSON is the standard and recommended format for the response payload and also the OASIS standard. Therefore, I highly recommend that you use JSON unless you have a specific reason. If you need to get the XML format, the WebAPI OData $ format to xml stream may be helpful .
0
QianLi
source
to share