Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Objective: POX to SOAP conversion

Following is the XML configuration for the sample:

Code Block
languagehtml/xml
linenumberstrue
<definitions xmlns="http://ws.apache.org/ns/synapse">
  <sequence name="main">
    <!--  filtering of messages with XPath and regex matches  -->
    <filter source="get-property('To')" regex=".*/StockQuote.*">
      <header name="Action" value="urn:getQuote"/>
  <send>      <send>
      <endpoint>    <endpoint>
            <address uri="http://localhost:9000/services/SimpleStockQuoteService" format="soap11"/>
            </endpoint>
        </send>
    </filter>
  </sequence>
</definitions> 

Prerequisites:

  • Start the Synapse configuration numbered 50: i.e. wso2esb-samples.sh -sn 50
  • Start the Axis2 server and deploy the SimpleStockQuoteService if not already done.

...