All docs
This doc
Objective: Accessing the Synapse APIs from scripting languages
Prerequisites:
wso2esb-samples.sh -sn 352
<definitions xmlns="http://ws.apache.org/ns/synapse"> <in> <!-- change the MessageContext into a response and set a response payload --> <script language="js"><![CDATA[ mc.setTo(mc.getReplyTo()); mc.setProperty("RESPONSE", "true"); mc.setPayloadXML( <ns:getQuoteResponse xmlns:ns="http://services.samples/xsd"> <ns:return> <ns:last>99.9</ns:last> </ns:return> </ns:getQuoteResponse>); ]]></script> </in> <send/> </definitions>
ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/