Recommendations for .NET Web Service Format/Protocol for Android, iPhone, etc. integration

后端 未结 4 1738
夕颜
夕颜 2021-02-15 16:22

I am building a web service for my ASP.NET MVC 3 website. Ideally I would like all clients (my web pages, iphone application, android application, windows phone 7 application, e

4条回答
  •  醉话见心
    2021-02-15 17:16

    I would suggest a REST(ful) service with JSON.

    Both Android and iOS have libraries that support parsing XML and JSON, however the JSON libraries are a bit easier to use and are a little bit faster.

    With a little more effort you could allow your service to provide/consume both XML and JSON.

    It would be preferable to avoid SOAP as it is more verbose and not as suitable for the more bandwidth/battery sensitive mobile devices.

提交回复
热议问题