从 WCF 发布订阅到 Android、Iphone、WP7

发布于 2024-11-02 07:10:43 字数 307 浏览 1 评论 0原文

是否有一个框架支持从 WCF 服务(REST 或 SOAP)向 iPhone、Android 和 WP7 等各种客户端发布(推送)消息?我想我可以使用 WSDualHttpBinding 在 WCF 和 WP7 之间进行双重通信。但是,我假设其他两个平台不支持 WSDualHttpBinding,因为它不是 WS-* 标准,而且 WCF 做了很多工作来在客户端建立接收通道。还有其他方法可以实现此目的吗?我自己动手怎么办?

我正在考虑将我的 WCF 服务公开为一个静态端点,并实现 COMET 风格的 pub/sub 并称其为良好。

我被困住了。任何帮助将不胜感激。

Is there a framework that supports publishing (pushing) messages from a WCF service (REST or SOAP) to various clients like IPhone, Android and WP7? I'm thinking I can use the WSDualHttpBinding to do dual communication between WCF and WP7. However, I'm assuming WSDualHttpBinding is not supported in the other two platforms since is not a WS-* standard and there's a lot of stuff that WCF does to establish a receiving channel on the client side. Is there any other way to accomplish this? How would I about rolling my own?

I'm thinking about exposing my WCF service as a restful endpoint and implement a COMET style pub/sub and calling it good.

I'm stuck. Any help would be greatly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

宁愿没拥抱 2024-11-09 07:10:43

由于您已经有了适用于 WP7 的解决方案,因此您可以使用 Urbanairship.com 来处理 iPhone 和 Android 的推送。我在之前的项目中使用过它们,并取得了良好的效果。 (我不为他们工作。)

Since you already have a solution for WP7, you could probably use urbanairship.com to handle the pushes for iPhone and Android. I've used them on a prior project with good results. (I don't work for them.)

梦里泪两行 2024-11-09 07:10:43

我昨天发现了这个“云到设备消息传递”,C2DM,并认为它可以解决您的问题:

http: //www.makeurownrules.com/archives/category/android

I found this "Cloud to Device Messaging", C2DM, yesterday and thought it may serve your question:

http://www.makeurownrules.com/archives/category/android

雨夜星沙 2024-11-09 07:10:43

您是否考虑过使用SignalR?它将从 WebSockets 和 WebSockets 优雅地回退。服务器端事件到长轮询。客户端库有一个单一的实现。

我们已成功地将它用于大型实时应用程序,并且效果非常好。再往下页面详细介绍了如何从 SignalR 基础设施外部与客户端进行通信如果您想通过 WCF 服务与客户交谈,可能会很有用。

干杯,
院长

Have you considered using SignalR? It'll fallback gracefully from WebSockets & Server-Side Events through to long polling. There's a mono implementation of the client-side library.

We're successfully using it in a large-scale realtime application and it works a treat. A bit further down this page it details how to communicate with clients from outside the SignalR infrastructure which may be useful if you want to talk to clients from your WCF service.

Cheers,
Dean

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文