Hi You said in the follow-up email that you were using a proxy on the client side. So you may want to register a ResponseExceptionHandler : http://cxf.apache.org/docs/jax-rs.html#JAX-RS-Handlingexceptions
This handler may create an instance of JSONProvider and pass the JSON-formatted string to it and then return the resulting instance, possibly by adding it to a custom WebApplicationException Cheers, Sergey -----Original Message----- From: DmitryM [mailto:[email protected]] Sent: 27 February 2010 07:47 To: [email protected] Subject: Unmarshal WebApplicationException Response JSON entity Hello, guys Sorry for a dumb question but I'm kinda new to CXF (and web services in general). Here is the issue: - I created an ExceptionMapper to translate checked exceptions into Response with 500 code and a JSON body. That works perfectly fine. I see properly marshalled/serialized JSON wrapper like this: Payload: {"exceptionHolder":[{"exceptionClassName":"com.xxx.exceptions.MyException"}]} - But I failed to find a proper way (on both Nabble and CXF site) to unmarshal the incoming Request body. Is there an elegant (as little code as possible) way to do that? Should it be done via data bindings or via some other way? Any directions, please? Thanks, Dmitry -- View this message in context: http://old.nabble.com/Unmarshal-WebApplicationException-Response-JSON-entity-tp27726278p27726278.html Sent from the cxf-user mailing list archive at Nabble.com.
