DmitryM
2010-02-27 07:46:51 UTC
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
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.
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.