On Wednesday 02 March 2011 1:08:23 PM jaybytez wrote:
> I have an exception I am throwing from my service endpoint and that
> exception contains a collection of Objections that hold specific errors.
> 
> If I want the client to be able to have access to those models, will the
> WebFault provide the serialization of the Object to XML in the service
> endpoint of the response and then deserialize back to the Objects for the
> client?
> 
> Or should I use a fault interceptor to do this?

CXF *CAN* do the mapping if everything is setup correctly and per jax-ws rules 
for faults and such.   For example, if you are doing a WSDL first thing with 
the faults defined in the wsdl, then everything should just map perfectly 
without really any issues.

With Java first, you would need to make sure there are getters and setters and 
such for the information you want returned.  It's a bit more complex, but it 
usually will work.


-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to