tags:

views:

86

answers:

4

I want to develop a system that a Iphone application can access my database through the wcf service. I am new wcf services and i want to know which service should i make (rest or ?) and why and they communicate with each other?

+3  A: 

WCF Services are at heart SOAP Web Services. So you should be able to use an iPhone SOAP client library. See How to access SOAP services from iPhone.

Samuel Jack
but what i think is that iphone sdk does not support SOAP messages.
Have a look at the link. It points you to http://code.google.com/p/wsdl2objc/ which creates Objective C code for calling a SOAP endpoint.
Samuel Jack
A: 

I have had to make an app hit both a vanilla wcf and a wcf with rest support and the rest support is the way to go.

With rest, it was easier to just generate a standard web request in the app and get back XML that fed an NSXmlParser. There was no crazy soap request building. But then again, i didnt write the non-rest wcf service so maybe it just had configuration issues which made it more difficult.

The wcf rest service I wrote used the wcf rest starter kit from http://www.asp.net/downloads/starter-kits/wcf-rest

AtomRiot
A: 

You can look at both REST and SOAP implementation in this example and see what is suitable for your requirement: http://sourceforge.net/projects/mtgr8-a3/