Hi, I am calling SOAP based webservice from camel. I am using axis2 as my web service stub. While executing camel code i am getting FailedToCreateRouteException exception.
*Camel code:* public class CamelScenario_1 { public static void main(String args[]){ CamelContext context=new DefaultCamelContext(); try{ final DataFormat bindy = new BindyCsvDataForma("com.polaris.mh.camel.poc.scenario_1.dto"); context.addRoutes(new RouteBuilder() { public void configure() { from("mina:tcp://localhost:6789?textline=true&sync=true").process(new Processor(){ public void process(Exchange req){ log.info("Request Message-->"+req.getIn()); } }).unmarshal(bindy).marshal().xstream() .to("cxf://http://localhost:9090/axis2/services/WS_Engine_stub.WS_Engine_stubHttpSoap11Endpoint/?wsdlURL=test3/WSSoap.wsdl&serviceClass=&serviceName={http://ws.apache.org/axis2}WS_Engine_stub&portName={http://ws.apache.org/axis2}WS_Engine_stubHttpSoap11Endpoint&dataFormat=MESSAGE") .process(new Processor(){ public void process(Exchange res){ log.info("Response Message-->"+res.getIn()); } }).unmarshal().xstream().marshal(bindy); } }); } catch(Exception exception){ exception.printStackTrace(); } } } *WSDL file:* <?xml version="1.0" encoding="UTF-8" ?> <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://service.polaris.com" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://service.polaris.com"> <wsdl:documentation>ServiceRequest</wsdl:documentation> <wsdl:types> <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://service.polaris.com"> <xs:element name="request"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="request" nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="requestResponse"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="return" nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> </wsdl:types> <wsdl:message name="requestRequest"> <wsdl:part name="parameters" element="ns:request" /> </wsdl:message> <wsdl:message name="requestResponse"> <wsdl:part name="parameters" element="ns:requestResponse" /> </wsdl:message> <wsdl:portType name="ServiceRequestPortType"> <wsdl:operation name="request"> <wsdl:input message="ns:requestRequest" wsaw:Action="urn:request" /> <wsdl:output message="ns:requestResponse" wsaw:Action="urn:requestResponse" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="ServiceRequestSoap11Binding" type="ns:ServiceRequestPortType"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> <wsdl:operation name="request"> <soap:operation soapAction="urn:request" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="ServiceRequestSoap12Binding" type="ns:ServiceRequestPortType"> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> <wsdl:operation name="request"> <soap12:operation soapAction="urn:request" style="document" /> <wsdl:input> <soap12:body use="literal" /> </wsdl:input> <wsdl:output> <soap12:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="ServiceRequestHttpBinding" type="ns:ServiceRequestPortType"> <http:binding verb="POST" /> <wsdl:operation name="request"> <http:operation location="ServiceRequest/request" /> <wsdl:input> <mime:content type="text/xml" part="request" /> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="request" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="ServiceRequest"> <wsdl:port name="ServiceRequestHttpSoap11Endpoint" binding="ns:ServiceRequestSoap11Binding"> <soap:address location="http://localhost:9090/axis2/services/ServiceRequest.ServiceRequestHttpSoap11Endpoint/" /> </wsdl:port> <wsdl:port name="ServiceRequestHttpSoap12Endpoint" binding="ns:ServiceRequestSoap12Binding"> <soap12:address location="http://localhost:9090/axis2/services/ServiceRequest.ServiceRequestHttpSoap12Endpoint/" /> </wsdl:port> <wsdl:port name="ServiceRequestHttpEndpoint" binding="ns:ServiceRequestHttpBinding"> <http:address location="http://localhost:9090/axis2/services/ServiceRequest.ServiceRequestHttpEndpoint/" /> </wsdl:port> </wsdl:service> </wsdl:definitions> *Exception:* 10:42:23.244 [main] DEBUG o.a.camel.impl.DefaultCamelContext - Adding routes from builder: Routes: [] 10:42:23.306 [main] INFO o.a.camel.impl.DefaultCamelContext - Apache Camel 2.11.1 (CamelContext: camel-1) is starting 10:42:23.353 [main] DEBUG o.a.c.m.DefaultManagementAgent - Starting JMX agent on server: com.sun.jmx.mbeanserver.JmxMBeanServer@1d0fafc 10:42:23.369 [main] INFO o.a.c.m.ManagementStrategyFactory - JMX enabled. 10:42:23.431 [main] DEBUG o.a.c.m.DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=context,name="camel-1" 10:42:23.431 [main] DEBUG o.a.c.support.TimerListenerManager - Added TimerListener: org.apache.camel.management.mbean.ManagedCamelContext@55a338 10:42:23.478 [main] DEBUG o.a.c.m.DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=services,name=DefaultTypeConverter(0x197bb7) 10:42:23.478 [main] DEBUG o.a.c.i.c.AnnotationTypeConverterLoader - Found 3 packages with 15 @Converter classes to load 10:42:23.509 [main] DEBUG o.a.c.i.c.AnnotationTypeConverterLoader - Loading file META-INF/services/org/apache/camel/TypeConverter to retrieve list of packages, from url: jar:file:/D:/Workspace/Camel/POC/camel-example/lib/activemq-camel-5.8.0.jar!/META-INF/services/org/apache/camel/TypeConverter 10:42:23.509 [main] DEBUG o.a.c.i.c.AnnotationTypeConverterLoader - Loading file META-INF/services/org/apache/camel/TypeConverter to retrieve list of packages, from url: jar:file:/D:/Workspace/Camel/POC/camel-example/lib/camel-core-2.11.1.jar!/META-INF/services/org/apache/camel/TypeConverter 10:42:23.509 [main] DEBUG o.a.c.i.c.AnnotationTypeConverterLoader - Loading file META-INF/services/org/apache/camel/TypeConverter to retrieve list of packages, from url: jar:file:/D:/Workspace/Camel/POC/camel-example/lib/camel-mina-2.11.1.jar!/META-INF/services/org/apache/camel/TypeConverter 10:42:23.509 [main] DEBUG o.a.c.i.c.AnnotationTypeConverterLoader - Loading file META-INF/services/org/apache/camel/TypeConverter to retrieve list of packages, from url: jar:file:/D:/Workspace/Camel/POC/camel-example/lib/WS_SoapServer/camel-cxf-2.12.1.jar!/META-INF/services/org/apache/camel/TypeConverter 10:42:23.509 [main] DEBUG o.a.c.i.c.AnnotationTypeConverterLoader - Loading file META-INF/services/org/apache/camel/TypeConverter to retrieve list of packages, from url: jar:file:/D:/Workspace/Camel/POC/camel-example/lib/camel-spring-ws-2.12.1.jar!/META-INF/services/org/apache/camel/TypeConverter 10:42:23.509 [main] DEBUG o.a.c.i.c.AnnotationTypeConverterLoader - Loading file META-INF/services/org/apache/camel/TypeConverter to retrieve list of packages, from url: jar:file:/D:/Workspace/Camel/POC/camel-example/lib/new/camel-http-2.11.1.jar!/META-INF/services/org/apache/camel/TypeConverter 10:42:23.509 [main] DEBUG o.a.c.i.c.AnnotationTypeConverterLoader - Loading file META-INF/services/org/apache/camel/TypeConverter to retrieve list of packages, from url: jar:file:/D:/Workspace/Camel/POC/camel-example/lib/new/camel-jetty-2.11.1.jar!/META-INF/services/org/apache/camel/TypeConverter 10:42:23.525 [main] DEBUG o.a.c.i.c.AnnotationTypeConverterLoader - Loaded 9 @Converter classes 10:42:23.556 [main] INFO o.a.c.i.c.DefaultTypeConverter - Loaded 206 type converters 10:42:23.571 [main] DEBUG o.a.c.m.DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=services,name=EndpointRegistry(0xb3319f) 10:42:23.571 [main] DEBUG o.a.c.m.DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=services,name=DefaultExecutorServiceManager(0x908881) 10:42:23.571 [main] DEBUG o.a.c.m.DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=services,name=SharedProducerServicePool(0x131c89c) 10:42:23.571 [main] DEBUG o.a.c.impl.SharedProducerServicePool - Starting service pool: org.apache.camel.impl.SharedProducerServicePool@131c89c 10:42:23.587 [main] DEBUG o.a.c.m.DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=services,name=DefaultInflightRepository(0x24c4a3) 10:42:23.587 [main] DEBUG o.a.c.m.DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=services,name=DefaultShutdownStrategy(0x13f136e) 10:42:23.587 [main] DEBUG o.a.c.m.DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=services,name=DefaultPackageScanClassResolver(0x1ba94d) 10:42:23.587 [main] DEBUG o.a.camel.impl.DefaultCamelContext - Using ComponentResolver: org.apache.camel.impl.DefaultComponentResolver@d0220c to resolve component with name: mina 10:42:23.587 [main] DEBUG o.a.c.impl.DefaultComponentResolver - Found component: mina in registry: null 10:42:23.603 [main] DEBUG o.a.c.impl.DefaultComponentResolver - Found component: mina via type: org.apache.camel.component.mina.MinaComponent via: META-INF/services/org/apache/camel/component/mina 10:42:23.603 [main] DEBUG o.a.c.m.DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=components,name="mina" 10:42:23.603 [main] DEBUG o.apache.camel.impl.DefaultComponent - Creating endpoint uri=[mina://tcp://localhost:6789?sync=true&textline=true], path=[tcp://localhost:6789] 10:42:23.618 [main] DEBUG o.a.camel.util.IntrospectionSupport - Configured property: sync on bean: org.apache.camel.component.mina.MinaConfiguration@11db6bb with value: true 10:42:23.618 [main] DEBUG o.a.camel.util.IntrospectionSupport - Configured property: textline on bean: org.apache.camel.component.mina.MinaConfiguration@11db6bb with value: true 10:42:23.618 [main] DEBUG o.a.c.m.DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=threadpools,name="MinaComponent(0x1fcc0a2)" 10:42:23.618 [main] DEBUG o.a.c.i.DefaultExecutorServiceManager - Created new CachedThreadPool for source: org.apache.camel.component.mina.MinaComponent@1fcc0a2 with name: MinaSocketAcceptor. -> java.util.concurrent.ThreadPoolExecutor@caf6c1 10:42:23.618 [main] DEBUG o.a.c.i.DefaultExecutorServiceManager - Created new CachedThreadPool for source: org.apache.camel.component.mina.MinaComponent@1fcc0a2 with name: MinaSocketConnector. -> java.util.concurrent.ThreadPoolExecutor@139e351 10:42:23.618 [main] DEBUG o.a.c.i.DefaultExecutorServiceManager - Created new CachedThreadPool for source: org.apache.camel.component.mina.MinaComponent@1fcc0a2 with name: MinaThreadPool. -> java.util.concurrent.ThreadPoolExecutor@17aece8 10:42:23.634 [main] DEBUG o.a.c.component.mina.MinaComponent - MinaProducer: No encoding parameter using default charset: windows-1252 10:42:23.665 [main] DEBUG o.a.c.component.mina.MinaComponent - MinaProducer: Using TextLineCodecFactory: org.apache.camel.component.mina.TextLineCodecFactory@1493102 using encoding: windows-1252 line delimiter: null(delimiter: auto) 10:42:23.665 [main] DEBUG o.a.c.component.mina.MinaComponent - Encoder maximum line length: 2147483647. Decoder maximum line length: 1024 10:42:23.665 [main] DEBUG o.a.c.component.mina.MinaComponent - MinaConsumer: Using TextLineCodecFactory: org.apache.camel.component.mina.TextLineCodecFactory@4204 using encoding: windows-1252 line delimiter: null(delimiter: auto) 10:42:23.665 [main] DEBUG o.a.c.component.mina.MinaComponent - Encoder maximum line length: 2147483647. Decoder maximum line length: 1024 10:42:23.665 [main] DEBUG o.a.camel.impl.DefaultCamelContext - mina://tcp://localhost:6789?sync=true&textline=true converted to endpoint: Endpoint[mina://tcp://localhost:6789?sync=true&textline=true] by component: org.apache.camel.component.mina.MinaComponent@1fcc0a2 10:42:23.665 [main] DEBUG o.a.c.m.DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=endpoints,name="mina://tcp://localhost:6789\?sync=true&textline=true" 10:42:23.681 [main] DEBUG o.a.c.p.interceptor.DefaultChannel - Initialize channel for target: 'process[com.polaris.mh.camel.poc.scenario_1.CamelScenario_1$1$1@1e4a47e]' 10:42:23.681 [main] DEBUG o.a.c.m.DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=tracer,name=BacklogTracer 10:42:23.696 [main] DEBUG o.a.c.m.DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=tracer,name=Tracer 10:42:23.727 [main] DEBUG o.a.c.m.DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=errorhandlers,name="DefaultErrorHandlerBuilder(ref:CamelDefaultErrorHandlerBuilder)" 10:42:23.727 [main] DEBUG o.a.c.p.interceptor.DefaultChannel - Initialize channel for target: 'Unmarshal[org.apache.camel.model.DataFormatDefinition@4cd580]' 10:42:23.743 [main] DEBUG o.a.c.p.interceptor.DefaultChannel - Initialize channel for target: 'Marshal[org.apache.camel.model.dataformat.XStreamDataFormat@1cebc9f]' 10:42:23.743 [main] DEBUG o.a.camel.impl.DefaultCamelContext - Using ComponentResolver: org.apache.camel.impl.DefaultComponentResolver@d0220c to resolve component with name: cxf 10:42:23.743 [main] DEBUG o.a.c.impl.DefaultComponentResolver - Found component: cxf in registry: null 10:42:23.743 [main] DEBUG o.a.c.impl.DefaultComponentResolver - Found component: cxf via type: org.apache.camel.component.cxf.CxfComponent via: META-INF/services/org/apache/camel/component/cxf 10:42:23.743 [main] DEBUG o.a.c.m.DefaultManagementAgent - Registered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=components,name="cxf" 10:42:23.743 [main] DEBUG o.apache.camel.impl.DefaultComponent - Creating endpoint uri=[cxf://http://localhost:9090/axis2/services/WS_Engine_stub.WS_Engine_stubHttpSoap11Endpoint/?dataFormat=MESSAGE&portName=%7Bhttp%3A%2F%2Fws.apache.org%2Faxis2%7DWS_Engine_stubHttpSoap11Endpoint&serviceClass=&serviceName=%7Bhttp%3A%2F%2Fws.apache.org%2Faxis2%7DWS_Engine_stub&wsdlURL=test3%2FWSSoap.wsdl], path=[http://localhost:9090/axis2/services/WS_Engine_stub.WS_Engine_stubHttpSoap11Endpoint/] 10:42:23.868 [main] DEBUG o.a.camel.util.IntrospectionSupport - Configured property: dataFormat on bean: Endpoint[http://localhost:9090/axis2/services/WS_Engine_stub.WS_Engine_stubHttpSoap11Endpoint/] with value: MESSAGE 10:42:23.868 [main] DEBUG o.a.camel.util.IntrospectionSupport - Configured property: portName on bean: Endpoint[http://localhost:9090/axis2/services/WS_Engine_stub.WS_Engine_stubHttpSoap11Endpoint/] with value: {http://ws.apache.org/axis2}WS_Engine_stubHttpSoap11Endpoint 10:42:23.868 [main] INFO o.a.camel.impl.DefaultCamelContext - Apache Camel 2.11.1 (CamelContext: camel-1) is shutting down 10:42:23.868 [main] DEBUG o.a.c.i.DefaultExecutorServiceManager - Forcing shutdown of ExecutorService: java.util.concurrent.ThreadPoolExecutor@caf6c1 10:42:23.883 [main] DEBUG o.a.c.m.DefaultManagementAgent - Unregistered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=threadpools,name="MinaComponent(0x1fcc0a2)" 10:42:23.883 [main] DEBUG o.a.c.i.DefaultExecutorServiceManager - Forcing shutdown of ExecutorService: java.util.concurrent.ThreadPoolExecutor@139e351 10:42:23.883 [main] DEBUG o.a.c.i.DefaultExecutorServiceManager - Forcing shutdown of ExecutorService: java.util.concurrent.ThreadPoolExecutor@17aece8 10:42:23.883 [main] DEBUG o.a.c.support.TimerListenerManager - Removed TimerListener: org.apache.camel.management.mbean.ManagedCamelContext@19da967 10:42:23.883 [main] DEBUG o.a.c.m.DefaultManagementAgent - Unregistered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=context,name="camel-1" 10:42:23.883 [main] DEBUG o.a.c.impl.DefaultInflightRepository - Shutting down with no inflight exchanges. 10:42:23.883 [main] DEBUG o.a.c.impl.SharedProducerServicePool - Stopping service pool: org.apache.camel.impl.SharedProducerServicePool@131c89c 10:42:23.883 [main] DEBUG o.a.c.m.DefaultManagementAgent - Unregistered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=services,name=DefaultPackageScanClassResolver(0x1ba94d) 10:42:23.883 [main] DEBUG o.a.c.m.DefaultManagementAgent - Unregistered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=services,name=DefaultExecutorServiceManager(0x908881) 10:42:23.883 [main] DEBUG o.a.c.m.DefaultManagementAgent - Unregistered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=services,name=SharedProducerServicePool(0x131c89c) 10:42:23.883 [main] DEBUG o.a.c.m.DefaultManagementAgent - Unregistered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=tracer,name=Tracer 10:42:23.883 [main] DEBUG o.a.c.m.DefaultManagementAgent - Unregistered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=services,name=DefaultInflightRepository(0x24c4a3) 10:42:23.883 [main] DEBUG o.a.c.m.DefaultManagementAgent - Unregistered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=services,name=DefaultTypeConverter(0x197bb7) 10:42:23.883 [main] DEBUG o.a.c.m.DefaultManagementAgent - Unregistered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=tracer,name=BacklogTracer 10:42:23.883 [main] DEBUG o.a.c.m.DefaultManagementAgent - Unregistered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=services,name=DefaultShutdownStrategy(0x13f136e) 10:42:23.883 [main] DEBUG o.a.c.m.DefaultManagementAgent - Unregistered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=endpoints,name="mina://tcp://localhost:6789\?sync=true&textline=true" 10:42:23.883 [main] DEBUG o.a.c.m.DefaultManagementAgent - Unregistered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=components,name="cxf" 10:42:23.883 [main] DEBUG o.a.c.m.DefaultManagementAgent - Unregistered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=services,name=EndpointRegistry(0xb3319f) 10:42:23.883 [main] DEBUG o.a.c.m.DefaultManagementAgent - Unregistered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=components,name="mina" 10:42:23.883 [main] DEBUG o.a.c.m.DefaultManagementAgent - Unregistered MBean with ObjectName: org.apache.camel:context=N6322/camel-1,type=errorhandlers,name="DefaultErrorHandlerBuilder(ref:CamelDefaultErrorHandlerBuilder)" 10:42:23.883 [main] DEBUG o.a.c.management.MBeanInfoAssembler - Clearing cache[size=0, hits=5, misses=10, evicted=0] 10:42:23.883 [main] DEBUG o.a.camel.util.IntrospectionSupport - Clearing cache[size=0, hits=20, misses=32, evicted=0] 10:42:23.883 [main] INFO o.a.camel.impl.DefaultCamelContext - Apache Camel 2.11.1 (CamelContext: camel-1) uptime 0.577 seconds 10:42:23.883 [main] INFO o.a.camel.impl.DefaultCamelContext - Apache Camel 2.11.1 (CamelContext: camel-1) is shutdown in 0.015 seconds *org.apache.camel.FailedToCreateRouteException: Failed to create route route1 at: >>> To[cxf://http://localhost:9090/axis2/services/WS_Engine_stub.WS_Engine_stubHttpSoap11Endpoint/?wsdlURL=test3/WSSoap.wsdl&serviceClass=&serviceName={http://ws.apache.org/axis2}WS_Engine_stub&portName={http://ws.apache.org/axis2}WS_Engine_stubHttpSoap11Endpoint&dataFormat=MESSAGE] <<< in route: Route(route1)[[From[mina:tcp://localhost:6789?textline=true&... because of Failed to resolve endpoint: cxf://http://localhost:9090/axis2/services/WS_Engine_stub.WS_Engine_stubHttpSoap11Endpoint/?dataFormat=MESSAGE&portName=%7Bhttp%3A%2F%2Fws.apache.org%2Faxis2%7DWS_Engine_stubHttpSoap11Endpoint&serviceClass=&serviceName=%7Bhttp%3A%2F%2Fws.apache.org%*2Faxis2%7DWS_Engine_stub&wsdlURL=test3%2FWSSoap.wsdl due to: at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:883) at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:176) at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:751) at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1845) at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1625) at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1500) at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1468) at com.polaris.mh.camel.poc.scenario_1.CamelScenario_1.main(CamelScenario_1.java:52) Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: cxf://http://localhost:9090/axis2/services/WS_Engine_stub.WS_Engine_stubHttpSoap11Endpoint/?dataFormat=MESSAGE&portName=%7Bhttp%3A%2F%2Fws.apache.org%2Faxis2%7DWS_Engine_stubHttpSoap11Endpoint&serviceClass=&serviceName=%7Bhttp%3A%2F%2Fws.apache.org%2Faxis2%7DWS_Engine_stub&wsdlURL=test3%2FWSSoap.wsdl due to: at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:509) at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:62) at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:191) at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108) at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:114) at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:61) at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:55) at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:479) at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:197) at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:880) ... 8 more Caused by: java.lang.ClassNotFoundException: at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at org.apache.cxf.common.classloader.ClassLoaderUtils.loadClass2(ClassLoaderUtils.java:287) at org.apache.cxf.common.classloader.ClassLoaderUtils.loadClass(ClassLoaderUtils.java:261) at org.apache.camel.component.cxf.CxfEndpoint.setServiceClass(CxfEndpoint.java:665) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.camel.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:492) at org.apache.camel.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:546) at org.apache.camel.util.IntrospectionSupport.setProperties(IntrospectionSupport.java:434) at org.apache.camel.util.EndpointHelper.setProperties(EndpointHelper.java:249) at org.apache.camel.impl.DefaultComponent.setProperties(DefaultComponent.java:258) at org.apache.camel.component.cxf.CxfComponent.createEndpoint(CxfComponent.java:84) at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:119) at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:489) ... 17 more Kindly help me to correct this exception. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-to-Webservice-call-SOAP-FailedToCreateRouteException-tp5743144.html Sent from the Camel - Users mailing list archive at Nabble.com.