SOAP 请求出现问题
我收到错误:“服务器无法识别 HTTP 标头 SOAPAction 的值:”
这是否一定表明问题出在我的肥皂操作上?或者它也可以在我的肥皂消息中吗?
我想调试这个问题但不知道从哪里开始... =\
10x
I'm getting the error: "Server did not recognize the value of HTTP Header SOAPAction:"
Does it necessarily say the problem is with my soap action? or can it also be in my soap message?
I want to debug this issue but don't know where to start... =\
10x
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要检查几件事:
Web 服务的命名空间是否发生变化? - 这可能会生成错误,因为发布到服务的 xml 的反序列化由于发布的 xml 的命名空间与服务所需的命名空间不匹配而失败。
所请求的方法是否已从 Web 服务中删除? - 不太可能,但缺少方法可能会导致同样的问题。更有可能是 #1。
所有这些问题都可以通过更新应用程序对 Web 服务的 wsdl 的引用来修复。
You need to check a couple of things:
Did the namespace for the web service change? - This can generate the error because the deserialization of the xml being posted to the service fails due to a mismatch in the namespaces of the posted xml and the namespace the service expects.
Did the method being requested get removed from the web service? - Not likely but a missing method might cause the same problem. More likely #1.
Any of these will be fixed by updating your application's reference to the wsdl of the web service.
正如消息所述,您的 HTTP 请求中有一个 SOAPAction 标头,但服务器无法识别该值。您可以检查或修改请求中发送的标头吗?
As the message says, there is a SOAPAction header in your HTTP request and the server isn't recognizing the value. Can you examine or modify the headers being sent in the request?