<< Back to the snippet list
Using XML instead of JSON as the data exchange format for a web service method
I have seen this question asked numerous times on various forums, and while XML is larger in size than JSON and requires parsing it may still be favourable to use in certain scenarios. ASP.NET AJAX actually allows you to specify the ResponseFormat of a web services’ method – selecting the Xml option will now use XML as the data exchange format and not JSON.
asp.net
ASP.NET AJAX
JSON
XML
Web Services