camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bala <>
Subject Re: Camel for Rest Service
Date Tue, 27 Nov 2012 11:22:52 GMT
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] <>
To: Bala <> 
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

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

Cheers, Sergey 

If you reply to this email, your message will be added to the discussion below:

To unsubscribe from Camel for Rest Service, click here.

View this message in context:
Sent from the Camel - Users mailing list archive at
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message