Posted: Thu Jan 27, 2011 4:08 pm Post subject: How to create a New Envelop Header in SOAP Message
Newbie
Joined: 10 Nov 2010 Posts: 1
I am trying to construct a flow which receives a SOAP Message and reply to the requester with a new SOAP Message.
The incoming message has two parts. The first part is included in <soapenv:Header> and the second part of the message in <soapenv:Body>.
There is no problem to parse the incloming message. The problem I have is cosntructing a new SOAP message which has the same structure where I have to create a new set of but with different <soapenv:Header>.
I suspect that I can use SOAPEnvelope Node with "Create new envelope" option checked. However, I am trying to find a code sample to create a new Envelope, but without success.
You should not need to use the SOAPEnvelope node with the SOAP nodes (the Envelope node is really aimed as the HTTP nodes). So do what you are looking to do would be something like:
SET OutputRoot.SOAP.Header.myHeader1 = [myHeader1];
SET OutputRoot.SOAP.Header.myHeader2 = [myHeader2];
SET OutputRoot.SOAP.Body.myResponse = [myBody];
The SOAP Reply node will automatically add an envelope around the message that matches the WSDL SOAP version.
Hope this helps, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum