WCF双工服务和Android客户端?任何可能性 [英] WCF Duplex service and Android client? Any possibilities

查看:33
本文介绍了WCF双工服务和Android客户端?任何可能性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 .NET 中创建了一个 WCF 双工服务和客户端,它运行良好,也非常好.
现在我想做一个Android客户端.我之前曾将 kSoap 用于网络服务,这些对于客户端到服务的连接很有用.
但是在双工通信的情况下,我需要服务向客户端发送消息,我不知道如何实现.

I have created a WCF duplex service and client in .NET and its working fine and its pretty good also.
Now I wish to make an Android client. I have used kSoap previously for webservices and those are good for client to service connections.
But in the case of duplex communication in which I need the service to sent message to client, I dont know how to implement.

推荐答案

不幸的是,所有双工绑定都无法互操作

Unfortunately none of the duplex bindings are interoperable

此时轮询可能是您最简单的选择.更进一步,也许您可​​以使用 WebSockets 之类的东西(WCF 在下一个版本 - 4.5 中支持它们)

At this point polling might be your simplest option. Further down the line maybe you could use something like WebSockets (WCF supports them in the next version - 4.5)

这篇关于WCF双工服务和Android客户端?任何可能性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆