Hi Bharadwaj

Can you be specific. Are you planning to consume a rest service or expose a
rest service? The implementation is different for both. You need the
annotated java classes only if you are exposing the rest point

1) If you are exposing ( server ), you can either use cxfrs or camel-restlet
component. Find the sample POC at below url which I have coded.
https://www.dropbox.com/sh/99r1fbic7z3s355/AACtISev3q3UPy8U-pFSxRJza?dl=0

2) If you are planning to consume (client) a rest service, you can even use
the normal http / http4 or restlet producer endpoint. Just specify the http
method you plan to use appropriately and the data/body/entity which has to
be passed to the service shud be part of camel exchange body.

Cheers
Reji



-----
Reji Mathews
Sr. Developer - Middleware Integration / SOA ( Open Source - Apache Camel & 
Jboss Fuse ESB | Mule ESB )
LinkedIn - http://in.linkedin.com/pub/reji-mathews/31/9a2/40a
Twitter - reji_mathews
--
View this message in context: 
http://camel.465427.n5.nabble.com/what-is-the-best-approach-to-consume-restful-service-tp5768381p5768384.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to