简体   繁体   English

SOAP 1.2 消息在发送到 SOAP 1.1 端点时无效 WSDL 中使用 SOAP 1.2 时出现错误

[英]A SOAP 1.2 message is not valid when sent to a SOAP 1.1 only endpoint Error While Using SOAP 1.2 in WSDL

I am getting this error "A SOAP 1.2 message is not valid when sent to a SOAP 1.1 only endpoint" when I sent a post request, but the matter is my Soap version is already 1.2 and all definitions are done in the wsdl file.当我发送一个发布请求时,我收到这个错误“SOAP 1.2 消息在发送到 SOAP 1.1 端点时无效”,但问题是我的 Soap 版本已经是 1.2 并且所有定义都在 wsdl 文件中完成。 Two sample request headers are below:下面是两个示例请求标头:

When the envelope in requests is soapenv:"http://schemas.xmlsoap.org/soap/envelope/", it works perfectly and I can get a response from my application.当请求中的信封是 soapenv:"http://schemas.xmlsoap.org/soap/envelope/" 时,它工作得很好,我可以从我的应用程序中得到响应。

When the envelope in requests is xmlns:S="http://www.w3.org/2003/05/soap-envelope" the error occures in the title of this question.当请求中的信封是 xmlns:S="http://www.w3.org/2003/05/soap-envelope" 时,此问题的标题中会出现错误。

All messages I use must be with the seccond envelope.我使用的所有消息都必须使用第二个信封。 Whow can I make that possible?谁能让这成为可能?

Review: https://docs.oracle.com/cd/E24329_01/web.1211/e24965/faults.htm#WSADV633评论: https://docs.oracle.com/cd/E24329_01/web.1211/e24965/faults.htm#WSADV633

replace all occurences: xmlns:S="http://www.w3.org/2003/05/soap-envelope"替换所有事件:xmlns:S="http://www.w3.org/2003/05/soap-envelope"

for: xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"对于:xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM