Home Page › Forums › BizTalk 2004 – BizTalk 2010 › send/receive xml message question › Re: send/receive xml message question
You can create an Envelop Schema call <ArrayOfItem>, then the receive pipeline will split the ArrayOfItem in into multiple <Item>.
Here is an example of envelop schema:
<?xml version=”1.0″ encoding=”utf-16″?>
<xs:schema xmlns:tns=”http://ArielBPM.Biztalk.RequestManagement.Schemas” xmlns:b=”http://schemas.microsoft.com/BizTalk/2003″ elementFormDefault=”qualified” targetNamespace=”http://ArielBPM.Biztalk.RequestManagement.Schemas” xmlns:xs=”http://www.w3.org/2001/XMLSchema”>
<xs:annotation>
<xs:appinfo>
<schemaInfo is_envelope=”yes” root_reference=”QueueUpAndNotifyRequests” xmlns=”http://schemas.microsoft.com/BizTalk/2003″ />
</xs:appinfo>
</xs:annotation>
<xs:element name=”QueueUpAndNotifyRequests” type=”tns:QueueUpAndNotifyRequests”>
<xs:annotation>
<xs:appinfo>
<recordInfo body_xpath=”/*[local-name()=’QueueUpAndNotifyRequests’ and namespace-uri()=’http://ArielBPM.Biztalk.RequestManagement.Schemas’%5D” xmlns=”http://schemas.microsoft.com/BizTalk/2003″ />
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:complexType name=”QueueUpAndNotifyRequests”>
<xs:sequence>
<xs:any />
</xs:sequence>
</xs:complexType>
</xs:schema>