camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tristan23 <tristanlst...@gmail.com>
Subject JAX-RS based on XML message
Date Tue, 29 Nov 2011 16:05:52 GMT
I have something like this:

from("jms:queue:products")
.to(cxfrs://http://my-rs-service.com/restapi/product/1234");

So I read XML documents from a JMS queue, that have a "product" element.
Based on the value of it I wanna call a JAX-RS WebService.

How would I do this?

- can I somehow use XPath and parse "product" out of my incoming XML?
- how would I dynamically build my URL for the REST Service call?

cheers,
T.

--
View this message in context: http://camel.465427.n5.nabble.com/JAX-RS-based-on-XML-message-tp5032860p5032860.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message