What web service to implement, so it is easy to read from iphone application?

I want to create a web service that will allow me to synchronize the databases of my iphone application with the main database.

I will use C # to write this web service. What kind of web service should I write, and how should it look so that it is easy to call from an iphone application?

Any textbook recommendations are greatly appreciated.

To answer the question about commenting: I would prefer thniki XML

+4
source share
3 answers

REST webservice with JSON. It will be easier to read from iphone application. iPhone interaction with ASP.NET WebService

Also see this for the tutorial http://www.codeproject.com/KB/webservices/RestWebService.aspx

0
source

You will not go wrong in WCF .

It is recommended for Microsoft for all web services (outside the MVC world) and supports many different scenarios and interactions. For an easier (but more fragile and less universal) solution you should go with an aspx β†’ asmx service, but I would not recommend it.

0
source

Used by RESTful WCF as a web service: WCF REST Service JSON Post and this: http://www.codeproject.com/KB/WCF/RestServiceAPI.aspx?q=wcf+rest+web+service+example

JSON is also used instead of the XML tutorial here: http://www.raywenderlich.com/5492/working-with-json-in-ios-5

NSURLConnection is also used, but not a single very good lesson has yet been found.

0
source

Source: https://habr.com/ru/post/1384868/


All Articles