-
1. Re: Send message to external webservice
sriram_imshriram Dec 10, 2009 1:37 PM (in response to dkruitbosch)I am a novice camel rider just like you, let me try to answer your question as much as i can.
Use http://camel.apache.org/jms.html to know how to read messages from a queue. You could transform it by usind the http://camel.apache.org/xslt.html and the transfomred messages could be sent to any URL by using a simple
.to("URL");
This doesnt need any stub generation at all. (This is one of the finest things i like in camel )
Make sure to add the corresponding camel components in your pom.
Edited by: sriram on Dec 11, 2009 12:07 AM
-
2. Re: Send message to external webservice
dkruitbosch Dec 15, 2009 3:54 AM (in response to sriram_imshriram)I've looked at your points, but this doesn't solve my issue, since the XML I receive from jms is just XML, but the webservice I'm sending it of to, requires a SOAP message. The transform of the XML could be used to "generate" a full soap message, but I think that not the way to do it. I'd preferably have some component handling the soap stuff form me, and that I only have to concentrate on the payload. This is especially true when you need webservices features like IN ONLY messages, WS-* thinks etc.
This is what the CXF-bc in the FUSE ESB gives me.
Regards,
Danny
-
3. Re: Send message to external webservice
sriram_imshriram Dec 15, 2009 12:56 PM (in response to dkruitbosch)From my knowledge of CAMEL, I dont think what you are asking is achievable using CAMEL. You may want to try something with SMX.
Please read the specs in ServiceMix HTTP endpoint.
Your Camel routes can dispatch the messages to SMX Http end points.
-
4. Re: Send message to external webservice
lekkie_lomotayo Dec 18, 2009 10:55 AM (in response to dkruitbosch)Yea. This can be done.
Here is what it should look like:
<to uri="nmr:Service:ServiceSoap"/>
</route>
</osgi:camelContext>
u nid 2 write a cxfbc:provider
<cxfbc:provider wsdl="classpath:Service.wsdl"
service="namespace:Service"
endpoint="ServiceSoap"
interfaceName="namespace:ServiceSoap"
useJBIWrapper="false">
THis shld do.
-
5. Re: Send message to external webservice
dkruitbosch Dec 22, 2009 6:00 AM (in response to lekkie_lomotayo)Hi,
So this still requires using smx. I'm not ready yet to start using a full ESB. I just want to have some simple integrations deployed directly in a webapp or in ActiveMQ. So in the current version routing messages to a web service is 'only' possible by generating at least an interface to the target service (the cxf codegen plugin will do that for me, I know).
I've been looking at camel 2.x and in PAYLOAD mode it does not require a serviceClass anymore for a SEI. You can just specify the wsdl, port and service in the cxf endpoint and you have a dynamic proxy!
So know it's just having to wait for the 'fuse' version of camel 2.x
Thanks for all your input!
Danny