Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

SOAP Error Message "org.apache.cxf.binding.soap.SoapFault"

$
0
0
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>

Viewing all articles
Browse latest Browse all 5648

Trending Articles