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


Reply via email to