调用服务时的Sope Format Exeption [英] Sope Format Exeption when calling a service

查看:96
本文介绍了调用服务时的Sope Format Exeption的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

WSE910: An error happened during the processing of a response message, and you can find the error in the inner exception.  You can also find the response message in the Response property.







大家好



我在调用api / Webservice时收到此异常即使我也要求发送肥皂安全标题。



内部执行是






Hi All

I am getting this exception when calling a api / Webservice even i am sending a soap security header in request also.

Inner Exeption is

Microsoft.Web.Services3.SoapFormatException: WSE005: The input was not a valid SOAP message because
it has either the wrong name or the wrong namespace. The name specified was: definitions.
The namespace it was defined under was: http://schemas.xmlsoap.org/wsdl/.





请提供解决方案

谢谢提前



please provide solution
Thanks In advance

推荐答案

我只是从服务网址中删除?wsdl并且它正在工作。
i just remove ?wsdl from service url and it is working.


使用fiddler工具并查看请求从机器出来的是具有有效肥皂操作的预期xml格式
Use fiddler tool and see the request goes out from machine is in the expected xml format with valid soap action


这篇关于调用服务时的Sope Format Exeption的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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