On 2009-11-15, at 上午1:33, lekkie wrote:


Can some1 pls point me to a sample code showing how to send a soap message to
JMS.

Is there any need to configure anything special on the ActiveMQ queue?
No, it's just like you send normal text content to the jms queue, provided you know exactly what your soap pay load should be. Or if you just have wsdl, but not sure what the soap message should be, you can use standalone cxf client over jms transport to send soap message to jms queue, by this way, you just invoke normal java interface and cxf do the marshall (generate the soap message based on wsdl) and send soap message to the jms queue you specified in the wsdl.

You can take a look at CxfBcJmsTest[1], there's a sample showing how to use cxf client over jms transport, you can find the wsdl[2] used in this test

[1]https://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/java/org/apache/servicemix/cxfbc/CxfBcJmsTest.java
[2]https://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/resources/org/apache/servicemix/cxfbc/ws/security/hello_world.wsdl

Freeman


kr.
--
View this message in context: 
http://old.nabble.com/Soap-messaging-over-JMS-with-java-client-tp26351937p26351937.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.



--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com

Reply via email to