Windows Phone Soap/Add Web 参考问题 [英] Windows Phone Soap/Add Web Reference issues

查看:27
本文介绍了Windows Phone Soap/Add Web 参考问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 SOAP(由 Java 提供支持)服务,我正在尝试连接到 WP7.使用 Add ->服务参考 生成代理客户端,但不幸的是将所有参数丢弃到 WP7 和完整".NET 4 上的方法中.使用 slsvcutil.exe 的结果相同.即, service.Login(string, string) 变为 service.Login() (或 WP7 的 BeginLogin())

I've got a SOAP (powered by Java) service I'm trying to hook up to WP7. Using Add -> Service Reference generates the proxy client, but unfortunately drops all the parameters to the methods on both WP7 and "full" .NET 4. Same result using slsvcutil.exe. ie, service.Login(string, string) becomes service.Login() (or BeginLogin() for WP7)

使用<代码>添加 ->.NET 4 上的 Web Reference 工作正常,服务很好,但此选项在 WP7 中完全变灰.

Using Add -> Web Reference on .NET 4 works a treat, and the service is fine, but this option is greyed out completely in WP7.

通过svcutil解析文件时出现数百个错误,一直是

There are hundreds of errors when parsing the file through svcutil, all along the lines of

警告:可选的 WSDL 扩展命名空间中的元素错误"'http://schemas.xmlsoap.org/wsdl/soap/' 不是处理.

Warning: The optional WSDL extension element 'fault' from namespace 'http://sche mas.xmlsoap.org/wsdl/soap/' was not handled.

在这种特殊情况下,我不能通过另一个网络服务代理它,也不能真正修改生成 WSDL 的 WSDL/服务

In this particular case I can't proxy it through another webservice, nor can I really modify the WSDL/service generating the WSDL

是否有针对 WP7 上的 SOAP 服务自动生成的客户端代理的任何解决方法?

Are there any workarounds for auto-generated client proxy for SOAP services on WP7?

推荐答案

Muhimbi 的解决方案正在发挥作用.只需添加一个新的电话类项目.并添加网络参考.

The solution form Muhimbi is working. Just add a new phone class project. And add the web reference.

当您使用完整的 VS 2010 版本而不是 VS 手机版本时,似乎会发生这种情况.

It seems that this occurs when you use the full VS 2010 version in stead of the VS phone edition.

米歇尔

这篇关于Windows Phone Soap/Add Web 参考问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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