Hi ,

You may get some idea from this. It was working. 


<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:camel="http://camel.apache.org/schema/spring";
       xmlns:cxf="http://camel.apache.org/schema/cxf";
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
       http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd
       http://camel.apache.org/schema/cxf
http://camel.apache.org/schema/cxf/camel-cxf.xsd";>

  <import resource="classpath:META-INF/cxf/cxf.xml"/>
  <cxf:cxfEndpoint id="cxfIncidentEnpoint"
                   address="http://localhost:9090/IncidentService";
                   serviceName="s:IncidentService"
                   wsdlURL="etc/IncidentServiceSoap.wsdl"
                   xmlns:s="http://dummy/schema/ServiceRequest";
                   />

  
  <camelContext xmlns="http://camel.apache.org/schema/spring";>
<route>
         <from uri="cxf:bean:cxfIncidentEnpoint?dataFormat=MESSAGE"/>
         <to uri="file://inputdir/"/>
         <log loggingLevel="INFO" message="&gt;&gt;&gt; ${body}"/>

</route>
<route>    
         <from uri="file://inputdir/"/>
        <to uri="file://inputdir2/"/>
         
</route>
<route>

         <from uri="file://inputdir2/"/>
         <to uri="http://10.200.14.164:8080/CalculatorApp/CalculatorWSService"/>
         <to uri="file://outputdir/"/>
         <log loggingLevel="INFO" message="&gt;&gt;&gt; ${body}"/>

</route> 
  </camelContext>
</beans>

You might get a good idea from it. I got it working. 


Regards
Guru


-----
Cheers
 Guru
--
View this message in context: 
http://servicemix.396122.n5.nabble.com/Call-an-external-Web-Service-in-apache-servicemix-4-3-0-fuse-00-00-tp5038418p5054779.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to