camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jaishankar <jayashankar....@wipro.com>
Subject SOAP Error Message "org.apache.cxf.binding.soap.SoapFault"
Date Thu, 17 Jul 2014 04:32:06 GMT
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.

Mime
View raw message