Hi
On 26/09/11 16:49, Osvaldo Pina wrote:
   Thanks a lot!!!

    I did that and It worked fine, but I came across to annother problem. In
my fromResponse method of my ResponseExceptionMapper I get a Response as a
param.  How can I convert the reponse.getEntity to the actual object? I know
the type and that this type is a XML annotated class. How can I get the
entity without getting the content as a InputStream? I tried ResponseReader,
by registering one as a provider but without success. I´m thinking about
writing a MessageBodyReader and a MessageBodyWriter for this type but I
think that would be strange because the type is a XML (int fact a
bc-serialized-exception+xml) and cxf has the capability of reading XMLs...


Registering ResponseReader should help, the Limitations section touches on it:

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

Sergey



   Ats,
   Osvaldo Pina.

On Fri, Sep 23, 2011 at 5:47 PM, Sergey Beryozkin<[email protected]>wrote:

Hi

You need to register it as a provider, when creating a proxy using
JAXRSClientFactory, or as a jaxrs:provider within jaxrs:client.
Have a look please at a jaxrs-jaxws-java-first demo in a Talend TSF distro
for an example

Cheers, Sergey

On 23/09/11 15:57, Osvaldo Pina wrote:

    Hi all,

   How to register a *ResponseExceptionMapper  *in a client proxy?

   Ats,
   Osvaldo Pina.





Reply via email to