如何在wso2 esb中删除soap信封

如何在wso2 esb中删除soap信封,wso2,wso2esb,Wso2,Wso2esb,我正在使用wso2esb 4.8.0,我正在尝试连接我的遗留系统,这些系统可以使用post方法接受rest调用 </xquery> <send> <http uri-template="http://******/webservices/***.php" method="post"> </send> 我正在向他们发送相同的消息,但wso2正在添加soap信封。 当前消息:

我正在使用wso2esb 4.8.0,我正在尝试连接我的遗留系统,这些系统可以使用post方法接受rest调用

</xquery>
            <send>
              <http uri-template="http://******/webservices/***.php" method="post">
            </send>
我正在向他们发送相同的消息,但wso2正在添加soap信封。 当前消息:

<?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>
</xquery>
            <send>
              <http uri-template="http://******/webservices/***.php" method="post">
            </send>

预期的一个:

     <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>
</xquery>
            <send>
              <http uri-template="http://******/webservices/***.php" method="post">
            </send>

由于这个rest cal,我不能像在soap服务中一样使用“format=pox”格式

</xquery>
            <send>
              <http uri-template="http://******/webservices/***.php" method="post">
            </send>
我的代码是这样的

</xquery>
            <send>
              <http uri-template="http://******/webservices/***.php" method="post">
            </send>

</xquery>
            <send>
              <http uri-template="http://******/webservices/***.php" method="post">
            </send>


我是否需要添加任何属性来删除esb out请求的soap信封。

在发送中介之前尝试添加此属性:

</xquery>
            <send>
              <http uri-template="http://******/webservices/***.php" method="post">
            </send>
<property name="messageType" value="application/xml" scope="axis2"/>


您可以使用PayloadFactory转换有效负载,但不确定它是否是最好的解决方案,因为您的有效负载几乎相同。如果我也这样做,esb将在发送消息时添加soap信封。这就是解决方案。