开发者

WCF -Android/Iphone interoperability

I'm actually developing a client/server application : the client consumes a WCF service.

The client needs to get database data, so the WCF service returns Linq-to-SQL entities (System.Data.Linq.Mapping.TableAt开发者_运维技巧tribute)

To implement a "push" communication from server to client, we are going to implement duplex contract with WSDualHttpBinding.

Here is my question : for the future, we think about developing mobile client (Android/iPhone), I did research about interoperability, but the answers were about using standards like REST that i don't use.

Is it possible to use my service (entities exchange + WSDual binding)?


WsDualHttpBinding is .NET only (it can't be even consumed by Silverlight). It demands that your client host HTTP endpoint (= client must act as HTTP server). Push notification are either implemented through some specialized API (per client type) or client pools the service for notifications.

REST services are used because they sends smaller messages and their consuming on mobile devices is usually easier without need for some additional library.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜