I want to develop a system that a Iphone applica开发者_StackOverflow中文版tion 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?
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.
Try this out http://knowledgebaseworld.blogspot.com/2010/06/calling-wcf-service-from-iphone.html
Imran
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
精彩评论