4

I want to develop a web service that will enable me to synchronize the databases of my iphone app with a main database.

I will be using c# to write this web service. What kind of web service should I write, and how should it look like for it to be easy to call from the iphone application?

To answer the comment question: I think would prefer XML

starball
  • 20,030
  • 7
  • 43
  • 238
Pillblast
  • 1,171
  • 6
  • 18
  • 25

3 Answers3

0

You can't go wrong with WCF.

It's recommended by microsoft for all web services (outside the MVC world) and supports many different scenarios and interop. For an easier (but more fragile and less versatile) solution you would go with an aspx -> asmx service but I wouldn't recommend it.

Mihalis Bagos
  • 2,500
  • 1
  • 22
  • 32
0

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

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

Community
  • 1
  • 1
Nilesh
  • 5,955
  • 3
  • 24
  • 34
0

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

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

Also used NSURLConnection but haven't found one very good tutorial yet.

Community
  • 1
  • 1
Pillblast
  • 1,171
  • 6
  • 18
  • 25