Home Page › Forums › BizTalk 2004 – BizTalk 2010 › SOAP message › Re: SOAP message
Sure. You just need to create 2 new messages in your orchestration, 1 for the header data and 1 for the body data. Then in a message assignment shape, you can use XPath to extract the data from the SOAP envelope and assign it to the messages. Ex:
msgHeaderData = xpath(soapEnvIn, “/*[local-name()=’Envelope’]/*[local-name()=’Header’]/*[local-name()=’HeaderData’]”);
msgBodyData = xpath(soapEnvIn, “/*[local-name()=’Envelope’]/*[local-name()=’Bodyr’]/*[local-name()=’BodyData’]”);
Note: This example assumes that the data that you want from the SOAP envelope is stored in nodes named “HeaderData” and “BodyData”. This is probably not the case, so your actual xpath will be a little different.