camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sarfaraj <sarfarajsay...@gmail.com>
Subject Re: How to consume axis web service with user authentication in camel route
Date Thu, 07 Feb 2013 10:23:19 GMT
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*




--
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.

Mime
View raw message