.NET SOAP Web Service returns JSON

I need to prepare .Net SOAP Web Service, which returns the JSON format , we must use this service on iPad and Android.

I searched a lot, but found only the WCF Restful service, which returns the JSON service and ASMX SOAP, which return XML.

Please help me prepare a .Net SOAP web service that returns JSON data from either WCF or ASMX (recommended by WCF).

If possible, please let me know what the standard format is (WCF REST return JSON, WCF SOAP return JSON, ASMX SOAP return XML, etc.) to use .NET web services with iPad / iPhone and Android.

+6
source share
3 answers

Using WCF is trivial to return JSON, and iOS developers will love you if you avoid SOAP. Since you did not specify the required version of .NET, I will point you to the latest and greatest function called the Web API. See the tutorial here http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api

+4
source

Think of a service stack library. You can use the asp.net web form application or the mvc application.

http://www.servicestack.net/

0
source

All Articles