If have this routing.
from("direct:channel2").onException(Exception.class).handled(true).process(new
LogError(HubConstants.CHANNEL2.getValue())).end().recipientList()
.method(Util.class, "getEndpoint");
I want to throw the endpoints soapfault:
private void setChannel2ConnectException(Exchange exchange) throws
HubException {
exchange.getOut().setHeader(Exchange.HTTP_RESPONSE_CODE, 504);
exchange.getOut().setFault(true);
// Remove the exception that is set on the exchange.
exchange.removeProperty(Exchange.EXCEPTION_CAUGHT);
}
I only get 504, back, but where is the original endpoint soapfault ?
I have tried to fix the routing like this:
from("direct:channel2").recipientList().method(Util.class, "getEndpoint");
But still the endpoint soapfault isent sent back to the client.
Frank
--
View this message in context:
http://camel.465427.n5.nabble.com/Get-soapfault-fra-endpoint-back-to-the-client-tp5763083.html
Sent from the Camel - Users mailing list archive at Nabble.com.