cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan King <dan.king...@yahoo.com>
Subject Re: How to convert response input stream to java object
Date Mon, 24 Jan 2011 23:17:01 GMT
> ... With the WebClient you can do
>
> Book book =  wc.get(Book.class)
> // returns the last Response, no remote invocation is  done
> Response r = wc.getResponse();

This is what I'm currently doing; I thought of changing to using 
"ResponseReader" since it seemed "cleaner" to check the response status before 
attempting to read the message body. Is there any value in changing approaches?


      

Mime
View raw message