Windows Phone 8.1添加服务引用

时间:2014-12-24 14:31:14

标签: web-services windows-phone windows-phone-8.1 emulation

我的问题是添加新的服务Windows Phone 8.1但我看不到标签,8.1不添加服务?

1 个答案:

答案 0 :(得分:0)

这是Windows Phone 8.1商店应用程序的已知问题。请参阅MSDN上官方开发用于Windows Phone论坛的帖子:WCF Add Service Reference Not Supported for Windows Phone 8.1 XAML Applications

Windows Phone 8.1中的Windows Phone应用商店不支持“添加服务引用”菜单生成的System.ServiceModel命名空间。

一般建议是从服务而不是WCF服务公开REST端点。

如果您无法添加REST端点并且必须使用WCF,则可以编写Silverlight应用程序而不是Windows Runtime应用程序,或者您需要编写自己的代码来包装WCF对话。