Hi Matt, Yes there is. The way to do this is to introduce a SMX-Bean between the CXF-BC and CXF-SE.
The CXF-BC target service in this case would be the Servicemix-Bean which would hold on to the original exchange, and forward a copy of the Message Exchange to the CXF-SE. On the way back, if the Message Exchange copy has a fault or error, The SMX Bean will replace the "out" Message in original exchange with the custom SOAP Fault, set Done on the original exchange and send back result. If on the other hand there is no fault or error, it would copy the "out" message from the copy to the original, set the DOne flag and send back the result. Hope this helps. Cheers, Ashwin... mattrpav wrote: > > Is there a way to setup SM CXF to use the message of an underlying > exception when SOAP Faults aren't explicitly defined? > > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> > <soap:Body> > <soap:Fault> > <faultcode>soap:Server</faultcode><faultstring>Fault occurred > while processing.</faultstring > </soap:Fault> > </soap:Body> > </soap:Envelope> > -- View this message in context: http://www.nabble.com/CXF-and-undefined-SOAPFaults-tp20507469p20518912.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
