开发者

how to call wcf service from Iphone

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜