Note that WSO2 EI is shipped with the following changes to what is mentioned in this documentation:
repository/samples/ directory that includes all Integration profile samples is changed to
repository/samples/resources/ directory that includes all artifacts related to the Integration profile samples is changed to
Objective:Demonstrate the Message Relay with Builder mediator.
This sample is similar to sample 655. We have added the builder mediator to build the actual message before logging it.
<proxy name="StockQuoteProxy" startOnLoad="true">
<property name="MESSAGE" value="Executing default "fault" sequence"/>
<property name="ERROR_CODE" expression="get-property('ERROR_CODE')"/>
<property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')"/>
Prerequisites:Set up is same as sample 655.
ant stockquote -Daddurl=http://localhost:8280/services/StockQuoteProxy
You can see the actual messages going through the proxy by looking at the console because we have two log mediators in this sample. Becuase we have the builder mediator in place, unlike in sample 655 we have the actual message printed.