You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by takidean <ta...@hotmail.fr> on 2013/03/15 11:56:19 UTC
from webservice to queue
Hi
i have to receive an external webservice and route it into a jms queue this
, is that useful
public void configure() throws Exception {
// TODO Auto-generated method stub
from("cxf://http://localhost:9000/order/")
.setBody(constant("ok"))
.to("jms:xmlorders");
}}
--
View this message in context: http://camel.465427.n5.nabble.com/from-webservice-to-queue-tp5729239.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: from webservice to queue
Posted by Christian Müller <ch...@gmail.com>.
The cxf component supports also the jms protocol out of the box...
Sent from a mobile device
Am 15.03.2013 23:40 schrieb "santhosh" <ra...@gmail.com>:
> If you are trying to do CXF proxy .ie. receive all request to a CXF
> webservice by setting up a proxy endpoint this will work
> <beans>
> <cxf:cxfEndpoint id="soapMessageEndpoint"
> address="http://localhost:9000/order" wsdlURL="<your
> wsdl
> on filesystem/server>" endpointName="<endpoint from wsdl>"
> serviceName="<servicename from wsdl>">
> </cxf:cxfEndpoint>
>
> <camelContext>
> <route>
> <from url="cxf:bean:soapMessageEndpoint"/>
> <to url="jms:xmlorders"/>
> </route>
> </camelContext>
>
> All namespace resolution is left out.Just to give you an idea.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/from-webservice-to-queue-tp5729239p5729274.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Re: from webservice to queue
Posted by santhosh <ra...@gmail.com>.
If you are trying to do CXF proxy .ie. receive all request to a CXF
webservice by setting up a proxy endpoint this will work
<beans>
<cxf:cxfEndpoint id="soapMessageEndpoint"
address="http://localhost:9000/order" wsdlURL="<your wsdl
on filesystem/server>" endpointName="<endpoint from wsdl>"
serviceName="<servicename from wsdl>">
</cxf:cxfEndpoint>
<camelContext>
<route>
<from url="cxf:bean:soapMessageEndpoint"/>
<to url="jms:xmlorders"/>
</route>
</camelContext>
All namespace resolution is left out.Just to give you an idea.
--
View this message in context: http://camel.465427.n5.nabble.com/from-webservice-to-queue-tp5729239p5729274.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: from webservice to queue
Posted by Christian Müller <ch...@gmail.com>.
Not really. In this case you will send "OK" to your queue for every web
service call...
Sent from a mobile device
Am 15.03.2013 11:57 schrieb "takidean" <ta...@hotmail.fr>:
> Hi
> i have to receive an external webservice and route it into a jms queue this
> , is that useful
>
> public void configure() throws Exception {
> // TODO Auto-generated method stub
> from("cxf://http://localhost:9000/order/")
> .setBody(constant("ok"))
> .to("jms:xmlorders");
>
> }}
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/from-webservice-to-queue-tp5729239.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>