Windows Phone 8.1通用应用程序中的SOAP服务参考 [英] SOAP Service Reference in Windows Phone 8.1 Universal app

查看:76
本文介绍了Windows Phone 8.1通用应用程序中的SOAP服务参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试添加对SOAP WebService的引用.毫无疑问,将其添加到项目的Windows 8.1部分中.

I try to add a reference to a SOAP WebService. No problem adding it to the Windows 8.1 part of the project.

但是没有机会对WP 8.1进行同样的操作.不知何故,我只能添加一个新的推送通知"作为参考.

But no chance to do the same for the WP 8.1. Somehow I could only add a new "Push Notification" as a reference.

将生成的reference.cs添加到WP项目中会直接导致System.ServiceModel中有许多未解析的引用(即找不到System.ServiceModel.Channels).

Adding the generated reference.cs to the WP project directly leads to many unresolved references in System.ServiceModel (i.e. System.ServiceModel.Channels not found).

有什么主意吗? 也许它不在当前的Beta中?

Any idea? Maybe its not in the current beta?

VS 2013 Update 2 RC.

VS 2013 Update 2 RC.

推荐答案

虽然不是适当的解决方案,但Microsoft已发布了一种解决方法:

While not a proper solution, a workaround has been posted by Microsoft: WCF Add Service Reference Not Supported for Windows Phone 8.1 XAML Applications

Windows Phone 8.1 XAML应用程序不支持System.ServiceModel命名空间,因此,您无法右键单击项目中的引用并选择添加服务引用".推荐的解决方案是将REST端点添加到WCF端点,并使用HttpClient通过REST端点访问WCF应用程序.

Windows Phone 8.1 XAML applications does not support the System.ServiceModel namespace, and therefore you are not able to right click references in the project and choose Add Service Reference. The recommended solution is to add a REST endpoint to your WCF endpoint, and access the WCF application through the REST endpoint using HttpClient.

这篇关于Windows Phone 8.1通用应用程序中的SOAP服务参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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