反序列化操作'methodName'的回复消息体时出错 [英] Error in deserializing body of reply message for operation 'methodName'

查看:127
本文介绍了反序列化操作'methodName'的回复消息体时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在控制台应用程序中使用Web服务,我正常地添加了服务引用,同时右键单击项目中的引用。得到错误反复操作回复消息的主体。

我已经在fiddler中检查了请求和响应,它以xml格式正确显示。

在服务文档中提到您可以使用SOAP协议调用Web服务,也可以直接在专用URL上调用XML。



如果有任何参数,有时会收到服务错误消息缺少请求的方法,这意味着我的请求没有任何问题。



内部异常消息是:XML文档中存在错误(2,1301)







请任何人帮我解决这个问题。



在此先感谢

I am consuming web service in my console application, I have added service reference as we do normally while right click on reference in the project. Getting error "deserializing body of reply message for operation".
I have checked request and response in fiddler there it is displayed correctly in xml format.
In the service document it is mentioned that "You can call the web services using the SOAP protocol or directly as XML calls on a dedicated URL."

Some times getting service error message if any parameter is missing for requested method that means my request is not having any problem.

The Inner Exception message is :"There is an error in XML document (2, 1301)"



Please can any one help me to resolve this problem.

Thanks In Advance

推荐答案

需要根据服务方法以适当的xml格式发送请求。
Need to send request with proper xml format according to service method.

这篇关于反序列化操作'methodName'的回复消息体时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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