To identify the Content-Type in the mediation in wso2 esb.
Please refer to configuration given below. I have modified the sample given in the wso2 esb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
No comments:
Post a Comment