You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Sag21 <sa...@gmail.com> on 2015/03/12 20:20:10 UTC

Sending Soap Message as response

How to send the soap message as whole payload in camel not just separate body
and sign the header differently.
What  I am trying to do is creating the SoapMessage and adding the multiple
elements without root element.I need to sign the header too. 

Here is how exchange looks like 
exchange.getIn().setBody(soapMessage, SOAPMessage.class);


Here is the soapMessage content.
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
  <env:Header>Encrypted Key<env:Header/>
  <env:Body>
    <employee xmlns="Namespace1" id="2">
      <age>30</age>
      <name>WWW</name>
    </employee>
    <customer xmlns="Namespace2" id="1">
      <age>20</age>
      <name>XXX</name>
    </customer>
  </env:Body>
</env:Envelope>

It would be great if someone throw some light on how the transform will be
in done in camel-context.
I am using the spring ws endpoint.




--
View this message in context: http://camel.465427.n5.nabble.com/Sending-Soap-Message-as-response-tp5764058.html
Sent from the Camel - Users mailing list archive at Nabble.com.