On Thu, Feb 7, 2013 at 11:23 AM, sarfaraj <[email protected]> wrote:
> Let me describe my problem once again.
>
> I got a data from file.  That data I parsed & create the object.  I need to
> pass that object as an input to axis web service which is running remotely
> and get result back in my camel route.
>
> My camel route may look like below.
>
> *<from uri="file:///fileserver/share/csvfile?delete=true " />
> <-- Parse & create object -->
> <process ref="Parser" id=" parser" />
> <--  Call to axix web service  -->
> <to uri="AXIS-COMPONENT or SIMILAR one" id="call toaxiswebsvc" />
> <--  Display the result  -->
> <log loggingLevel="INFO" message="&gt;&gt;&gt; ${body}"/>*
>
> Like we did for cxf (please refer below example).
>
> <camelContext xmlns="http://camel.apache.org/schema/spring"; trace="false">
>     <route id="my_Sample_Camel_Route_with_CXF">
>         <from uri="file:src/data?noop=true"/>
>         <log loggingLevel="INFO" message="&gt;&gt;&gt; ${body}"/>
>         <to uri="cxf://http://www.webservicex.net/stockquote.asmx?
>           wsdlURL=src/main/resources/META-INF/stockquote.wsdl&amp;
>           serviceName={http://www.webserviceX.NET/}StockQuote&amp;
>           portName={http://www.webserviceX.NET/}StockQuoteSoap&amp;
>           dataFormat=MESSAGE"/>
>         <log loggingLevel="INFO" message="&gt;&gt;&gt; ${body}"/>
>     </route>
> </camelContext>
>
>
> My question is *how do I call the axis web service and display resultant
> data in camel route*.
> And if the axis web service has user authentication then *how do I pass
> authentication in Spring/XML DSL*
>

You need to call Axis from java code as you would need to do that if
you are NOT using Camel.

For that you can use the Camel bean / processor to call the java code.


>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/How-to-consume-axis-web-service-with-user-authentication-in-camel-route-tp5727065p5727093.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to