Wcf – .NET SOAP Web Service return JSON


I need to prepare a .Net SOAP Web Service which returns JSON format, we have to use those service in iPad & Android.

I searched a lot but found only WCF Restful service that return JSON and ASMX SOAP service that return XML.

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

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

Best Solution

Using WCF it is trivial to return JSON, and IOS developers will love you if you avoid SOAP. Since you didn't specify a version of .NET you require, I will point you to the latest and greatest feature called Web API. See the tutorial here http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api

Related Question