You would need to write a CXF interceptor that remapped the fault into something else. Most likely, if you stick it on the FaultOutChain, you can grab the exception (msg.getContent(Exception.class)) and remap it into something more appropriate for your needs.
Dan On Aug 6, 2012, at 1:24 PM, Nathaniel Auvil <[email protected]> wrote: > Can anyone help me out? Or is this not possible with cxf? > > > On Fri, Aug 3, 2012 at 2:22 PM, Nathaniel Auvil > <[email protected]>wrote: > >> how can i intercept xml validatoin errors coming out of the framework so >> that i can return a custom error rather than a generic SoapFault? >> Specifically, when i send a number in a boolean field, CXF errors out >> before it ever gets to my service code. I am validating in my code versus >> some configuration option to have CXF validate. -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
