如何将soap请求设置为有效负载介体wso2 esb

时间:2017-07-27 18:05:04

标签: wso2esb

我用SOAP请求调用代理服务。我需要直接设置此请求有效负载工厂mediator.Here是我的SOAP请求

Process

1 个答案:

答案 0 :(得分:0)

在您的soap消息名称空间前缀“bas”未定义,因此它是无效的有效负载。您可以将有效负载工厂介体用于下面的有效负载

<payloadFactory media-type="xml">
   <format>
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bas="http://test.com/bas" xmlns:soap="http://www.alcatel-lucent.com/soap_cm">
         <soapenv:Header />
         <soapenv:Body>
            <bas:setMO>
               <query>
                  <soap:baseObj>hhh</soap:baseObj>
                  <soap:sc>ggggg</soap:sc>
               </query>
               <modi>
                  <Attribute>
                     <soap:mo>
                        <soap:name>epsServiceProfile</soap:name>
                        <soap:value>false</soap:value>
                     </soap:mo>
                     <operator>hhhh</operator>
                  </Attribute>
               </modi>
            </bas:setMO>
         </soapenv:Body>
      </soapenv:Envelope>
   </format>
   <args />
</payloadFactory>