camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ABouchama <tit...@yahoo.Fr>
Subject Re: How do i control my soap foult back to the client ?
Date Wed, 22 Oct 2014 11:04:16 GMT
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);
  }



--
View this message in context: http://camel.465427.n5.nabble.com/How-do-i-control-my-soap-foult-back-to-the-client-tp5755111p5757897.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message