Here's how we generate a SOAP Fault: 

public void process(Exchange exchange) throws Exception 
  { 
    // Setup the SOAP fault 
        SoapFault fault = buildFault(exchange); 
        fault.setFaultCode(Soap11.getInstance().getSender()); 
        //B2BException_Exception fault = buildFault(exchange); 
    exchange.getOut().setHeaders(exchange.getIn().getHeaders()); 
    
    exchange.getOut().setBody(fault); 
    exchange.getOut().setFault(true); 
  }

Cheers 
@a_bouchama



--
View this message in context: 
http://camel.465427.n5.nabble.com/Web-service-SOAP-fault-handling-tp5757883p5757988.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to