For modifying URLs, you can try using the URL rewrite medaitor (see samples 450-452). Payload transformations can be done using the XSLT mediator, XQuery mediator and a few others.
Thanks, Hiranya On Fri, Aug 17, 2012 at 2:21 PM, Rajika Kumarasiri <[email protected]> wrote: > Yeah. You can use the filter mediator to decide based on the content(To > address) and XSLT mediator to transform the request to another format. > Check, > > http://synapse.apache.org/userguide/samples/sample1.html > > http://synapse.apache.org/userguide/samples/sample8.html > > Hope this helps. > > Rajika > > > On Fri, Aug 17, 2012 at 1:48 PM, Roberto Calero La Torre < > [email protected]> wrote: > >> Hi,**** >> >> ** ** >> >> I’m still getting my head around Synapse since I’m thinking of moving >> from Mule for an ESB implementation we have.**** >> >> ** ** >> >> Question:**** >> >> ** ** >> >> Our messages currently pass in a string (uri) which is then routed to the >> actual endpoint, i.e. “equity://stock/xyz” would hit the stock endpoint >> whereas “equity://warrant/abc” would hit a different one. I’d like a single >> service endpoint to hit from my client, pass in the above message and then >> route the message to the right endpoint. **** >> >> ** ** >> >> So my question is… should this be handled by the mediator? What if I want >> to transform the payload being sent back by applying an xslt >> transformation.. a mediator as well?**** >> >> ** ** >> >> Roberto.**** >> > > -- Hiranya Jayathilaka Associate Technical Lead; WSO2 Inc.; http://wso2.org E-mail: [email protected]; Mobile: +94 77 633 3491 Blog: http://techfeast-hiranya.blogspot.com
