Sorry,  I Can't understand your reply. Can you please be more specific. 

If you look at what am trying, I try to use the Configuration file for invoking 
a uri and from the configuration file, am trying to call a rest service, from 
which am getting the response in JSON which am trying to read. Please help. 

Thanks, Bala 



________________________________
 From: Sergey Beryozkin-3 [via Camel] <ml-node+s465427n5723294...@n5.nabble.com>
To: Bala <vbal...@yahoo.co.in> 
Sent: Tuesday, 27 November 2012 3:33 PM
Subject: Re: Camel for Rest Service
 

On 27/11/12 07:56, Willem jiang wrote: 
> What's invocation looks like, you should get a Response object from the 
> message body. 
> If you are using camel-cxfrs you will not see the under layer response (XML 
> or JSON). 
> 
> 
After upgrade to CXF 2.7.1 it will be possible to do 

Response response = ... 
MyType myType = response.readEntity(MyType.class); 

At the moment, one can also register a ResponseReader client side 
provider, it's no longer available in CXF 2.7.x but can help with 
casting 'response.getEntity()' in JAX-RS 1.1 to a specific type, see 

http://cxf.apache.org/docs/jax-rs-client-api.html#JAX-RSClientAPI-Limitations

Finally, I guess the conversion should work with a proxy-based cxfrs 
client... 

Cheers, Sergey 




________________________________
 
If you reply to this email, your message will be added to the discussion 
below:http://camel.465427.n5.nabble.com/Camel-for-Rest-Service-tp5723267p5723294.html
 
To unsubscribe from Camel for Rest Service, click here.
NAML



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-for-Rest-Service-tp5723267p5723300.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to