One more question here I have:Why you have used ActiveMQ here?
> From: [email protected] > To: [email protected] > Subject: RE: How to call remote soap web service from a application using > apache camel > Date: Mon, 16 Dec 2013 23:06:24 +0530 > > Hi, > Thanks much...But I want to follow the code first approach as the apache > services that I have exposed on Tomcat server are written using code first > approach. So any idea how to start? > > > Date: Mon, 16 Dec 2013 05:19:50 -0800 > > From: [email protected] > > To: [email protected] > > Subject: RE: How to call remote soap web service from a application using > > apache camel > > > > Hi Reena > > > > The Camel-xml route file is already included in the code. Anyways its as > > follows > > > > * > > <?xml version="1.0" encoding="UTF-8"?> > > > > > > <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:jaxws="http://cxf.apache.org/jaxws" > > xmlns:cxf="http://camel.apache.org/schema/cxf" > > xmlns:osgi="http://www.springframework.org/schema/osgi" > > xmlns:soap="http://cxf.apache.org/bindings/soap" > > > > xmlns:http-conf="http://cxf.apache.org/transports/http/configuration" > > xmlns:http="http://cxf.apache.org/transports/http/configuration" > > xmlns:sec="http://cxf.apache.org/configuration/security" > > xmlns:ctx="http://www.springframework.org/schema/context" > > > > xsi:schemaLocation=" > > http://camel.apache.org/schema/cxf > > http://camel.apache.org/schema/cxf/camel-cxf.xsd > > http://cxf.apache.org/bindings/soap > > http://cxf.apache.org/schemas/configuration/soap.xsd > > http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd > > http://www.springframework.org/schema/beans > > http://www.springframework.org/schema/beans/spring-beans-3.0.xsd > > http://camel.apache.org/schema/spring > > http://camel.apache.org/schema/spring/camel-spring.xsd > > http://www.springframework.org/schema/osgi > > http://www.springframework.org/schema/osgi/spring-osgi.xsd > > http://cxf.apache.org/bindings/soap > > http://cxf.apache.org/schemas/configuration/soap.xsd > > http://www.springframework.org/schema/context > > http://www.springframework.org/schema/context/spring-context.xsd > > http://cxf.apache.org/configuration/security > > http://cxf.apache.org/schemas/configuration/security.xsd > > http://cxf.apache.org/transports/http/configuration > > http://cxf.apache.org/schemas/configuration/http-conf.xsd"> > > > > > > <bean id="activemq" > > class="org.apache.activemq.camel.component.ActiveMQComponent"> > > <property name="brokerURL" value="tcp://localhost:61616" /> > > <property name="userName" value="admin" /> > > <property name="password" value="admin" /> > > </bean> > > > > > > <camelContext xmlns="http://camel.apache.org/schema/spring"> > > > > > > <route> > > > > <from uri="activemq:queue:input" /> > > <to uri="WebServiceClient"/> > > <to uri="activemq:queue:responseXML" /> > > > > </route> > > > > > > </camelContext> > > > > > > > > <jaxws:client id="sapPiProxy" > > > > address="http://REJI-PC:8181/WebService.serviceagent/getResultEndpoint1" > > serviceClass="com.example.xmlns._1386864564116.GetResult" > > /> > > <bean id="WebServiceClient" > > class="com.mycompany.camel.cxf.contract.first.ServiceClientInvoker" > > init-method="init" destroy-method="destroy"> > > <property name="myService" ref="sapPiProxy" /> > > </bean> > > > > > > </beans>* > > > > > > > > > > -- > > View this message in context: > > http://camel.465427.n5.nabble.com/How-to-call-remote-soap-web-service-from-a-application-using-apache-camel-tp5744734p5744850.html > > Sent from the Camel - Users mailing list archive at Nabble.com. >
