esb mediation

rajunair's picture
May i know how can i modifying a messgae recived by esb after modifying the message i want to transmit this message to some other url[basically esb wrks as a proxy]
indika's picture

Hi Yes it can. Please look

Hi Yes it can. Please look at ESB samples from 150...there are lots of proxy service samples. Please refer sample 8 for transformation using XSLT, sample 350 -354 for transformation using scripts and refer sample 390 for transformation using XQuery. I am attaching a simple pseudo code sample by combing sample 8 and 150  <definitions xmlns="http://ws.apache.org/ns/synapse">     <registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">                <parameter name="root">file:./repository/conf/sample/resources/</parameter>                <parameter name="cachableDuration">15000</parameter>     </registry>     <proxy name="StockQuoteProxy">         <target>             <inSequence>          <!--transform-->                 <xslt key="xslt-key-req"/>          <!--Send - invoke external service-->                 <send>                     <endpoint>                         <address uri="http://localhost:9000/soap/SecureStockQuoteService"/>                     </endpoint>                 </send>             </inSequence>             <outSequence>         <!--transform response-->         <xslt key="transform/transform_back.xslt"/>                  <!--Send back response to client-->                 <send/>             </outSequence>         </target>         <publishWSDL uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>     </proxy> </definitions> To run above, you need to use ant stockquote -Daddurl=http://localhost:8280/soap/StockQuoteProxy -Dmode=customquote Thanks Indika  
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)