XML Response Schema Sample

The following is a sample XML response schema document that is generated by iWay Application Adapter for Microsoft Dynamics CRM 2011 On-Premises for another operation.

<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema targetNamespace="urn:iwaysoftware:adapter:MSCRM2011:account:Delete.response" xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:os="urn:iwaysoftware:adapter:MSCRM2011:account:Delete.response" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <xs:element name="account.Delete.Response">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="EntityList">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="Entity" type="os:entityType" minOccurs="0" maxOccurs="unbounded" />
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:complexType name="entityType">
        <xs:sequence>
            <xs:element name="Error" type="xs:string" minOccurs="0" />
            <xs:element name="Status" minOccurs="1" maxOccurs="1">
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:enumeration value="Fail" />
                        <xs:enumeration value="Success" />
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:simpleType name="guidType">
        <xs:restriction base="xs:string">
            <xs:pattern value="GUID_PATTERN" />
        </xs:restriction>
    </xs:simpleType>
</xs:schema>

iWay Software