camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jaishankar <>
Subject Handle SOAP fault message
Date Tue, 29 Jul 2014 06:07:05 GMT
If the exchange has soap fault how to capture the message in it?

*I tried this way*
Exchange exchangeNew = producerTemplate.send("cxf:bean:TransactionBegin",

	SoapFault soapFaultException = exchangeNew

*Error Message* 

 Failed delivery for (MessageId: I
D-gdjb01vd-33915-1406546122662-166-3 on ExchangeId:
ID-gdjb01vd-33915-1406546122662-166-2). Exhausted after delivery attempt: 1
caught: org.apache.cxf.binding.soap.Soap
Fault: "DISTRICT CODE NOT ON FILE                                       "
org.apache.cxf.binding.soap.SoapFault: "message ---- "

I need to handle this fault in the exchange and get faultcode and

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message