Hi,

Can you please remove "src/main/resources/" from the wsdlURL and change it
to "wsdl/AmlService.wsdl". See example below...

BTW, I am assuming you have a wsdl directory under src/main/resources. The
directory src/main/resources is already on your classloader classpath if
this is a maven deployed artifact.

Hope this helps.

Cheers,

Ashwin...

=============================================

<cxf:cxfEndpoint id="amlEndpoint" 
                address="http://localhost:8080/aml/AmlService";  
                wsdlURL="wsdl/AmlService.wsdl" 
                serviceClass="com.mycomp.aml.Aml" 
                serviceName="s:AmlService" 
                endpointName="s:AmlServicePort" 
                xmlns:s="http://aml.mycomp.com"/>

<camelContext xmlns="http://camel.apache.org/schema/spring";>
  <route>
    <from uri="direct:begin"/>
    
    <to uri="cxf:bean:amlEndpoint" />
    <log message=">>>>> ${body}"/> 
  </route>

-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com 

Blog: http://opensourceknowledge.blogspot.com 
---------------------------------------------------------
--
View this message in context: 
http://camel.465427.n5.nabble.com/Using-cxf-bean-to-invoke-external-webservice-tp4561146p4561548.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to