Skip to content

Instantly share code, notes, and snippets.

@vanjikumaran
Created August 27, 2014 05:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanjikumaran/8a029ae5850f2dbc91f7 to your computer and use it in GitHub Desktop.
Save vanjikumaran/8a029ae5850f2dbc91f7 to your computer and use it in GitHub Desktop.
GetHeaderDetail.xml
<sequence xmlns="http://ws.apache.org/ns/synapse" name="main">
<in>
<filter xmlns:ns="http://org.apache.synapse/xsd" source="get-property('To')" regex=".*/StockQuote.*">
<then>
<send>
<endpoint>
<address uri="http://localhost:9000/services/SimpleStockQuoteService"></address>
</endpoint>
</send>
</then>
<else></else>
</filter>
</in>
<out>
<log level="custom">
<property xmlns:ns="http://org.apache.synapse/xsd" name="Transport Header Detail" expression="get-property('transport', 'Content-Type')"></property>
</log>
<send></send>
</out>
</sequence>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment