camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhemzhitsky Sergey <>
Subject Camel: SOAP over JMS
Date Tue, 26 Apr 2011 06:51:26 GMT
Hi there,

I'm trying to configure SOAP over JMS by means of camel, cfx, activemq and servicemix (apache-servicemix-4.3.1-fuse-01-09).

Here is documentation I'm using.

My configuration file looks like this

<beans xmlns=""

    <import resource="classpath:META-INF/cxf/cxf.xml" />
    <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />

    <bean class="org.apache.camel.component.cxf.transport.CamelTransportFactory">
        <property name="bus" ref="cxf" />
        <property name="camelContext" ref="camel" />
        <property name="transportIds">

    <cxf:cxfEndpoint id="echoService" address="camel:activemq:queue:EchoRequest"
        endpointName="echo:EchoSoap11" serviceName="echo:EchoService" wsdlURL="echo.wsdl">
            <entry key="dataFormat" value="PAYLOAD" />

    <camelContext id="camel" xmlns="">
            <from uri="file:c:/workspace/temp/cxf/req" />
            <inOut uri="activemq:queue:EchoRequest?jmsMessageType=Bytes&amp;replyTo=EchoReply&amp;useMessageIDAsCorrelationID=true"/>
            <to uri="log:org.testapp?level=INFO" />
            <to uri="file:c:/workspace/temp/cxf/resp"/>

    <bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent">
        <property name="brokerURL" value="tcp://localhost:61616"/>


From the configuration - I'm trying to invoke CXF services when sending messages to activemq.
Messages are SOAP payloads and look like this

<echo:echoRequest xmlns:echo="">hello</echo:echoRequest>

I'm expecting the payload to become a SOAP envelope

<soapenv:Envelope xmlns:soapenv="" xmlns:echo="">

But it does not happen and there is only payload in the queue and it seems that CXF is not
attached to the acvivemq endpoint.

So the question is how to configure cxf+camel+activemq in the apache-servicemix-4.3.1-fuse-01-09
to create a fully functional SOAP envelope when sending only a payload into the queue?

Best Regards,
Sergey Zhemzhitsky


The information contained in this message may be privileged and conf idential and protected
from disclosure. If you are not the original intended recipient, you are hereby notified that
any review, retransmission, dissemination, or other use of, or taking of any action in reliance
upon, this information is prohibited. If you have received this communication in error, please
notify the sender immediately by replying to this message and delete it from your computer.
Thank you for your cooperation. Troika Dialog, Russia. 
If you need assistance please contact our Contact Center  (+7495) 258 0500 or go to

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message