You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Jaishankar <ja...@wipro.com> on 2014/07/17 06:32:06 UTC
SOAP Error Message "org.apache.cxf.binding.soap.SoapFault"
Please help me How to handle the SOAP fault exception... ?
and let me know how to retry till for 15min and stop the bundle?
//My route
from("timer://foo?RepeatCount=1").process(BeginrequestProcessor)
.to("cxf:bean:EllipseTransactionBegin").onException(SoapFault.class).maximumRedeliveries(0).handled(true)
.process(new Processor() {
public void process(Exchange exchange)
throws Exception {
// SoapFault fault = exchange
// .getProperty(Exchange.EXCEPTION_CAUGHT, SoapFault.class);
// exchange.getOut().setFault(true);
// exchange.getOut().setBody(fault);
LOG.info("Soap fault");
}
}).end();
//Camel CXF
<cxf:cxfEndpoint id="--" address="--/TransactionService"
wsdlURL="TransactionService.wsdl"
serviceClass=--Transaction">
<cxf:inInterceptors>
<ref bean="loggingInInterceptor" />
</cxf:inInterceptors>
<cxf:outInterceptors>
<ref bean="loggingOutInterceptor" />
<bean
class="org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor" />
<bean
class="org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor">
<property name="properties">
<map>
<entry key="action"
value="UsernameToken" />
<entry key="passwordType"
value="PasswordText" />
<entry key="user" value="--"
/>
<entry
key="passwordCallbackRef" value-ref="passwordCallback" />
</map>
</property>
</bean>
</cxf:outInterceptors>
</cxf:cxfEndpoint>
--
View this message in context: http://camel.465427.n5.nabble.com/SOAP-Error-Message-org-apache-cxf-binding-soap-SoapFault-tp5753936.html
Sent from the Camel - Users mailing list archive at Nabble.com.