XML Schema description

Response

  <xsd:element name="Response">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="OriginItems" minOccurs="0" maxOccurs="1">
          <xsd:complexType>
            <xsd:sequence>
              <xsd:any processContents="skip" minOccurs="1" maxOccurs="unbounded"/>
            </xsd:sequence>
          </xsd:complexType>
        </xsd:element>
        <xsd:element name="ResponseItems" minOccurs="1" maxOccurs="1">
          <xsd:complexType>
            <xsd:sequence>
              <xsd:element name="ResponseItem" type="ResponseItem" maxOccurs="unbounded"/>
            </xsd:sequence>
          </xsd:complexType>
        </xsd:element>
        <xsd:element name="ProcessedFile" type="xsd:string" minOccurs="1" nillable="false"/>
      </xsd:sequence>
      <xs:attribute name="Version" use="required" type="xs:string" fixed="1.0"/>
      <xs:attribute name="CreatedDateTime" use="required" type="xs:dateTime"/>
      <xs:attribute name="CompanyNo" use="required" type="xs:string"/>
      <xs:attribute name="CompanyName" use="required" type="xs:string"/>
    </xsd:complexType>
  </xsd:element>

ResponseItem

  <xsd:complexType name="ResponseItem">
    <xsd:sequence>
      <xsd:element name="MessageCode" type="xsd:unsignedInt" minOccurs="1" nillable="false"/>
      <xsd:element name="Message" type="xsd:string" minOccurs="1" nillable="false"/>
      <xsd:element name="ResponseType" type="xsd:string" minOccurs="1" nillable="false"/>
      <xsd:element name="Reference">
        <xsd:complexType>
          <xsd:simpleContent>
            <xsd:extension base="xsd:string">
              <xsd:attribute name="ReferenceType" type="xsd:string" use="required"/>
            </xsd:extension>
          </xsd:simpleContent>
        </xsd:complexType>
      </xsd:element>
    </xsd:sequence>
  </xsd:complexType>

Created by Fredrik Nilsson on 2021/12/28 12:54