需要一些帮助来配置WSO2代理服务

时间:2014-06-23 08:57:40

标签: wso2esb

如何将转换为HTTP Post负载的SOAP负载入站,以便可以通过HTTPEndpoint发送

非常感谢一个例子

2 个答案:

答案 0 :(得分:0)

您可以将端点格式设置为pox,以创建要发布的普通xml消息。例如,请参阅:http://charithaka.blogspot.nl/2010/07/message-format-transformations-with.html

答案 1 :(得分:0)

您是指SOAP到REST的转换吗?在这种情况下,它就像是在跟随。

<proxy xmlns="http://ws.apache.org/ns/synapse" name="testProxy" transports="https,http" statistics="disable" trace="disable" startOnLoad="true">
   <target>
      <inSequence>
         <property name="messageType" value="application/xml" scope="axis2"/>
         <send>
            <endpoint>
               <http method="POST" uri-template="http://localhost:9000"/>
            </endpoint>
         </send>
      </inSequence>
      <outSequence>
         <send/>
      </outSequence>
   </target>
   <description/>
</proxy>

axis2 messageType属性决定在发送之前用于格式化消息的MessageFormatter。在这种情况下,它的application / xml,因此传出的POST请求的Content-Type将是application / xml。

相关问题