Sura,
It's really very simple. You can do:
from("jms:queue:myqueue")
.to("cxf:bean:webservice) // let's call the response message A
.log("Received message: ${body}") // this will print A
.wireTap("seda:calloutToAnotherEndpoint") // a copy of A is sent
.to("file:hello"); // this continues being A
from("seda:calloutToAnotherEndpoint") // this is a copy of A
.transform(xpath("/pick/the/element")) // replaces the copy of A with
the result of the expression, let's call it B
.to("jms:queue:anotherQueue"); // B is sent to the callout
endpoint, and B is discarded
I hope that helps.
Thanks,
Raúl.
On Tue, Oct 2, 2012 at 11:26 PM, suralk <[email protected]> wrote:
> Hi Raul,
> Thanks a lot.
> How about the option of delegating this work to a bean? (like what you have
> recently proposed in another thread).
> Can you please point me to an example of using a bean for such work to
> access raw soap message.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/how-to-access-a-SOAP-message-part-inside-a-route-tp5720345p5720407.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
*Raúl Kripalani*
Apache Camel Committer
Enterprise Architect, Program Manager, Open Source Integration specialist
mobile: +34 679 52 41 75
http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani
http://blog.raulkr.net | twitter: @raulvk <http://twitter.com/raulvk>