Hi Kazarian,

You could use an interceptor to do this, 
http://cwiki.apache.org/CXF20DOC/interceptors.html.

Seán

** I've also replied on the FUSE forums.


-----Original Message-----
From: kazarian [mailto:[email protected]] 
Sent: 13 March 2009 22:36
To: [email protected]
Subject: Fault to standard Response


My service catches all Throwable exceptions and wraps them in a
ResponseContext element in my Response object.  I would like to be able to
intercept Faults that occur outside of my implementation code (schema
validation faults) and wrap them in the aforementioned ResponseContext.

This allows me to create a simpler (in my view) interface for consumers of
my service(s).  The problem is that I'm not certain how to intercept a
fault, grab the details I'm interested in out of the fault, set the
appropriate state in my ResponseContext object, then return my response
rather than a fault to the consumer.

Thanks,
mk

** I've posted a similar message on the IONA forum, but this forum seems to
have more activity
-- 
View this message in context: 
http://www.nabble.com/Fault-to-standard-Response-tp22506179p22506179.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to