肥皂版错配: [英] Soap version mis match:

查看:105
本文介绍了肥皂版错配:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我在.Net项目中添加了一个Web服务作为我的服务参考。我能够访问该类,我正在Web服务中公开该函数。



问题是,当我尝试调用函数时,它说有一个版本未命中匹配。请找到解决问题的方法



Hello,

I have added a web service as my service reference in .Net project. I am able to access the class and I am getting the function exposed in Web service.

The issue is when I try to call the function it says there is a version miss match. Please get a solution to fix the issue

{"Possible SOAP version mismatch: Envelope namespace http://schemas.xmlsoap.org/wsdl/ was unexpected. Expecting http://schemas.xmlsoap.org/soap/envelope/."}

推荐答案

问题是您正在将Web服务的URL属性设置为WSDL URL。您需要将Web服务实例的URL设置为Web服务本身的位置,这是WSDL中包含的内容。要查找此URL,请在文本编辑器中打开WSDL文档,然后查找< soap:address xmlns:soap =#unknown>的location属性。元件。您可以并且仍然应该在Visual Studio中使用WSDL URL作为图形工具,但在运行时进行区分非常重要。



更多信息:可能的SOAP版本不匹配



另一个有用的链接:可能的SOAP版本不匹配



我希望这会对你有所帮助。
The problem is that you are setting the URL property of the webservice to the WSDL url. You need to set the URL of the webservice instance to the location of the webservice itself, which is something that is contained within the WSDL. To find this URL, open the WSDL document in a text editor and look for the "location" attribute of the <soap:address xmlns:soap="#unknown"> element. You can and should still use the WSDL url for graphical tools within visual studio, but it's important to make the distinction at run-time.

For more info : Possible SOAP version mismatch

Another useful link : Possible SOAP version mismatch

I hope this will help to you.


这篇关于肥皂版错配:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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