Hi. We want to implement the Envelope Wrapper describes in to EIP Book.
In a camel component, we receive a message. Example

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/";
              xmlns:tns="http://icar.unibas.it/FreESBee";>
<env:Header>
<tns:test>XXX</tns:test>
</env:Header>
  <env:Body>
    <tns:greet>
      <tns:s>ICAR</tns:s>
    </tns:greet>
  </env:Body>
</env:Envelope>

now we want create a message like

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/";
              xmlns:tns="http://icar.unibas.it/FreESBee";>
<env:Header/>
<env:Body>

<tns:test>XXX</tns:test>
</env:Header>
  <env:Body>
    <tns:greet>
      <tns:s>ICAR</tns:s>
    </tns:greet>
  </env:Body>

</env:Body>
</env:Envelope>

i.e.: encapsulate a message into another..

we have wrote

this.from("jbi:service:...")
        .process(new ProcessorWrapper())
        .to("log:foo");


private class ProcessorWrapper implements Processor{
        public void process(Exchange exchange) throws Exception {
                //WRAPPING LOGIC
        }
}


how we can thake the whole message (header + body) and put it into the body
of another?
-- 
View this message in context: 
http://www.nabble.com/Envelope-Wrapper-tf4516108s22882.html#a12881386
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to