调用 Web 服务时出错(服务器无法处理请求。---> PARAMETER_NAME)

发布于 2024-09-15 18:29:20 字数 223 浏览 1 评论 0原文

我在调用服务器上托管的 Web 服务时收到此错误。
该服务有一个作为字符串输入并返回字符串(将采用 XML 格式)的 Web 方法。该服务工作正常,但偶尔我会收到此错误并且无法预测。有人可以帮助我解决这个错误吗?

附上错误的屏幕截图。如果您需要其他信息,请告诉我

error snapshot

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

error snapshot

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

故笙诉离歌 2024-09-22 18:29:20

我以前从未见过此错误,但我建议您查看服务器端的事件日志。我怀疑您在客户端上遇到了未处理的异常,因为您在服务器上有一个异常。

另外,您绝对不应该将 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文