You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by pwanner <pw...@pwanner.com> on 2011/12/09 15:49:29 UTC
Routing soap-over-jms to remote http webservice
Hi everybody,
We actually have http web services commonly used.
I want now to expose these webservices through jms.
I modified the cxf client to use the soap-over-http transport like this:
<jaxws:client id="contentServiceClientJms"
serviceClass="com.xxx.testservice._1_0.TestService"
address="jms://">
<jaxws:properties>
<entry key="mtom-enabled" value="true" />
</jaxws:properties>
<jaxws:features>
<bean class="org.apache.cxf.transport.jms.JMSConfigFeature"
p:jmsConfig-ref="jmsConfig" />
</jaxws:features>
</jaxws:client>
I now have a multipart soap message in the jms queue.
How can I using camel route that message
1) to a bean to log it
2) then forward it to the remote http web service
3) return the soap response to the temp queue defined in the "Reply-to"
where normally the cxf client is supposed to wait for the answer.
I tried like this but this is not working:
<route>
<from uri="activemq:queue:service.storage" />
<setHeader headerName="CamelHttpMethod">
<constant>POST</constant>
</setHeader>
<to
uri="http4://localhost:8080/test-service/services/testService?httpClientConfigurer=basicAuthHttpClientConfigurer"/>
</route>
Could anyone help me?
Philippe
--
View this message in context: http://camel.465427.n5.nabble.com/Routing-soap-over-jms-to-remote-http-webservice-tp5061977p5061977.html
Sent from the Camel - Users mailing list archive at Nabble.com.