调用 Web 服务时出错(服务器无法处理请求。---> PARAMETER_NAME)
我在调用服务器上托管的 Web 服务时收到此错误。
该服务有一个作为字符串输入并返回字符串(将采用 XML 格式)的 Web 方法。该服务工作正常,但偶尔我会收到此错误并且无法预测。有人可以帮助我解决这个错误吗?
附上错误的屏幕截图。如果您需要其他信息,请告诉我
I get this error while calling the web service hosted on the server.
The service has one web method with as string input and returns string (will be in XML format). The service is working fine but once in a while I get this error and can't predict. Can someone help me to get through this error.
Attached the screen shot of the error. Please let me know if you need additional info
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我以前从未见过此错误,但我建议您查看服务器端的事件日志。我怀疑您在客户端上遇到了未处理的异常,因为您在服务器上有一个异常。
另外,您绝对不应该将 XML 作为字符串返回。使用 XmlElement 数据类型返回 XML。
I've never seen this error before, but I suggest you look at the event log on the server side. I suspect you are getting an unhandled exception on the client because you have one on the server.
Also, you should never return XML as a string. Use the XmlElement data type to return XML.