- Create two Orchestration messages of same type. In this case I refer to them as Message1 and Message2
- Create a Orchestration variable of type System.Xml.Document. Tn this case I refer to it as xmlDocument
- Construct Message1 outside, before the loop with a Transform ect.
- Inside loop, within a single Construct Shape:
- Assign xmlDocument to Message2
- Manipilate Message2
- Assign Message2 to xmlDocument
- Outside, after the loop, assign xmlDocument to Message1
- Return Message1