As most of you aware of the fact that you can either
- Split a single message into multiple messages using Receive pipeline.
- Append multiple mesages into a single message using a Send Pipeline
In both the cases you would need to use an "Envelope Schema" to group them together. Following are instructions how to configure the Envelope schema to achieve the above processes.
Splitting a single message into multiple messages:
You need to create an Orders envelope schema, and Order document schema for that.
Steps:
- Create a new BizTalk project
- Add the Order document schema with OrderId and Date elements
- Add the Orders envelope schema with only root element Orders
- Click on the Schema node and set its "Envelope" property to true
- Click on the Orders node, and click on the body xPath property, choose Orders and click ok.
- Deploy the project
- Create a receive location and choose XmlReceive pipeline
- Open the pipeline properties dialog, and set envelope schema to the Orders schema, and document schema to Order schema
Append multiple messages into a single message: You need to create an Orders envelope schema, and Order document schema for that.
Steps:
- Create a new BizTalk project
- Add the Order document schema with OrderId and Date elements
- Add the Orders envelope schema with only root element Orders
- Click on the Schema node and set its "Envelope" property to true
- Click on the Orders node, and click on the body xPath property, choose Orders and click ok.
- If you are invoking a send pipeline component within an Orch expression: Open the pipeline properties dialog, and set envelope schema to the Orders schema, and document schema to Order schema
- Deploy the project