如何解决WSO2 4.2.0中的soap:VersionMismatch错误
SOAP转REST API遭遇soap:VersionMismatch错误
我搭建了一个SOAP转REST的API,测试时碰到了soap:VersionMismatch错误。查了不少解决方案,但当前版本里找不到大部分方案提到的「mediator sequence」设置入口。尝试把入站序列加到策略里,完全没效果,连日志都没生成。
错误信息
{ "Envelope": { "Body": { "Fault": { "faultcode": "soap:VersionMismatch", "faultstring": "A SOAP 1.2 message is not valid when sent to a SOAP 1.1 only endpoint." } } } }
已尝试的入站序列(无效果)
<sequence xmlns="http://ws.apache.org/ns/synapse" name="ConvertToSoap11"> <log description="Content_before_modification" level="full"/> <property name="transport.soap.Version" value="soap11" scope="axis2" type="STRING"/> <property name="FORCE_SOAP_1_1" value="true" scope="axis2"/> <property name="COPY_CONTENT_LENGTH_FROM_INCOMING" value="true" scope="axis2"/> <log description="Content_after_modification" level="full"/> </sequence>
内容的提问来源于stack exchange,提问作者Oluwafemi Awoyemi
相关产品推荐
相关产品推荐

