0

I have a Windows Phone 8 Application and a WCF Service that implements Callback model. I'm having trouble configuring the service reference. I've tested the service using wsDualHttpBinding for a Windows Form Application Client instead the WP8 App, and it worked perfectly. However, this binding is not suitable for WP8 Apps and I have to change configuration. Can someone suggest me a simple working configuration for the service that works with my WP8 Application?

4

2 回答 2

1

右键单击引用并选择添加服务引用

在此处输入图像描述

输入您的 WCF 地址

在此处输入图像描述

单击确定,您应该会看到已添加的 Web 服务

在此处输入图像描述

Visual Studio 将自动实现 WCF 服务。然后你就可以使用它了

MyWebService.Service1Client client = new MyWebService.Service1Client();

我不知道这是否可以帮助你。

于 2014-04-01T07:41:31.933 回答
0

在这里解释:http: //blogs.windows.com/windows_phone/b/wpdev/archive/2010/05/03/understanding-microsoft-push-notifications-for-windows-phones.aspx

问题是由于无法在 WP8 应用程序和服务之间实现回调或发布/订阅模型之类的东西。这是为了避免手机的能量损失。因此,Microsoft 允许使用 Microsoft 推送通知服务 (MPNS) 从服务发出通知。上面链接的文档中对所有内容都有很好的解释。

于 2014-04-04T14:54:41.263 回答