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>
Please help me How to handle the SOAP fault exception... ?
and let me know how to retry till for 15min and stop the bundle?
--
View this message in context:
http://camel.465427.n5.nabble.com/SOAP-Error-Message-org-apache-cxf-binding-soap-SoapFault-tp5753935.html
Sent from the Camel Development mailing list archive at Nabble.com.