you can use setFaultBody:

<to uri="velocity:my/package/CreateSOAPFault.vm"/>
<setFaultBody><simple>${body}</simple></setFaultBody>

here is a simple velocity script to create the fault document:

<soap:Fault xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
        <faultcode>$exchange.EXCEPTION_CAUGHT</faultcode>
        <faultstring>$exchange.getExchangeId()</faultstring>
</soap:Fault>





--
View this message in context: 
http://camel.465427.n5.nabble.com/onException-convertions-to-soapFault-tp5742775p5742797.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to