I have a schema I'm trying to map to. On the source side, I have a structure with a lot of fields. On the destination side, I have the following schema:
<xsd:element name="ServiceResponse">
<xsd:sequence>
<xsd:element ref="s:ServiceResponseHeader" />
<xsd:element ref="s:ServiceResponseBody" />
</xsd:sequence>
</xsd:element>
<xsd:element name="ServiceResponseHeader" type="s:HeaderType" />
<xsd:element name="ServiceResponseBody" type="xsd:anyType" />
<xsd:complexType name="HeaderType">
<xsd:sequence>
<xsd:element name="Timestamp" minOccurs="0" />
.
.
</xsd:sequence>
</xsd:complexType>
Which yields a sample document like:
<ServiceResponse>
<ServiceResponseHeader>
.
.
</ServiceResponseHeader>
<ServiceResponseBody>
<!-- XML message as anytype -->
</ServiceResponseBody>
</ServiceResponse>
I'm creating a map to transfer fields from my schema to this schema. The map transfers the fields to the ServiceResponseHeader. however, for the body, I need to pass in an XML document. The body accepts anytype because a variety of documents can be passed in.
However, from a BizTalk map, is it possible to construct an XML document and pass this in through the body field when it has no structure?
Or is there another way through the BizTalk orchestration?