我正在使用 wso2esb 4.8.0,我正在尝试连接我的旧系统,该系统可以使用 post 方法接受休息调用。
我正在向他们发送相同的内容,但 SOAP 信封是由 wso2 添加的。 当前消息:
<?xml version='1.0' encoding='UTF-8'?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.comapny.org/" xmlns:env="http://com.comany.inn/Envelope"><soap:Header xmlns:p="http://webservices.usedin.com/PService">
</soap:Header><soap:Body>
<requested id="12345">
<authen login="username" password="password">
<parm name="COMPANY" value="myname"/>
</authen>
<actionReq production="doctor" id="1234" type="TINGS">
<parm name="name" value="12345"/>
</actionReq>
</requested>
</soap:Body></soap:Envelope>
预期:
<requested id="12345">
<authen login="username" password="password">
<parm name="COMPANY" value="myname"/>
</authen>
<actionReq production="doctor" id="1234" type="TINGS">
<parm name="name" value="12345"/>
</actionReq>
</requested>
由于此休息,我无法像 SOAP 服务中那样使用格式“format=pox”。
我的代码是这样的。
</xquery>
<send>
<http uri-template="http://******/webservices/***.php" method="post">
</send>
我是否需要添加任何属性来删除 esb 输出请求的 SOAP 信封。
最佳答案
尝试在发送中介之前添加此属性:
<property name="messageType" value="application/xml" scope="axis2"/>
关于wso2 - 如何删除 wso2 esb 中的 SOAP 信封,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34774166/