Friday, August 17, 2012

Route messages based on HTTP Headers with WSO2 ESB

Following can be used to route messages based on HTTP Headers.

<proxy xmlns="" name="test1" transports="https,http" statistics="disable" trace="disable" startOnLoad="true">
         <log level="custom">
            <property name="log" expression="get-property('transport','Accept')" />
         <filter xmlns:ns="http://org.apache.synapse/xsd" source="get-property('transport','Accept')" regex="text/html">
               <log level="custom">
                  <property name="test" value="text/html" />
               <sequence key="sequence1" />
               <log level="custom">
                  <property name="test" value="other" />
               <sequence key="sequence2" />
               <address uri="http://localhost:9000/services/SimpleStockQuoteService" format="soap12" />
         <send />

More details available at [1]


No comments:

Post a Comment

Popular Posts



Achala Chathuranga's Blog Headline Animator