开发者

How can consume NetTcpBinding .NET webservice in iOs?

I want to consume a webservice written in .NET from iPhone 开发者_JAVA百科, it uses NetTcpBinding shows in wsdl. is it possible to consume webservice other than BasicHttpBinding from iphone?. If possible, How can i consume it?.


You can consume service exposed by netTcpBinding only by WCF clients (= .net). Any other client needs enormous effort to make this work because you will have to reimplement WCF's communication protocol.

Even basicHttpBinding is not very good choice because iPhone has poor support for SOAP (check link provided by @Franchesca). The best choice is using REST service exposing POX (simple XML) or JSON with webHttpBinding as mentioned by @Valery Pavlov.


i think no. you can use only serialized data transfer methods for cross-platform system interaction with service. you need to use xml or json serialization for that, with wcf service based on webHttpBinding.


With WCF, it is possible to create your own custom binding. You will of course have to write code on the iPhone side that can deserialize the messages etc. Here is another question relating to this topic that might be helpful for you to read.


Best way to use ASP.NET Web API.

Reference link http://www.asp.net/web-api

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜