Приложение Д

ФОРМАТ ЭЛЕКТРОННОГО ДОКУМЕНТА "ПАКЕТ ЗАПРОСОВ К ЦККИ"

Сообщение передается в кодировке windows-1251 и соответствует XML-схеме:

<?xml version="1.0" encoding="windows-1251"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">

<xs:element name="INQPACKET">

<xs:complexType>

<xs:sequence>

<xs:element ref="THEADER" minOccurs="1" maxOccurs="1"/>

<xs:element ref="TBODY" minOccurs="1" maxOccurs="1"/>

</xs:sequence>

<xs:attribute name="version" type="StVers" use="optional"/>

</xs:complexType>

</xs:element>

<xs:element name="THEADER">

<xs:complexType>

<xs:sequence>

<xs:element ref="PackID" minOccurs="1" maxOccurs="1"/>

<xs:element ref="CreatePackDate" minOccurs="1" maxOccurs="1"/>

</xs:sequence>

</xs:complexType>

</xs:element>

<xs:element name="PackID" type="xs:positiveInteger"/>

<xs:element name="CreatePackDate" type="StDate"/>

<xs:element name="TBODY">

<xs:complexType>

<xs:sequence>

<xs:element ref="REQ" minOccurs="1" maxOccurs="unbounded"/>

</xs:sequence>

</xs:complexType>

</xs:element>

<xs:element name="REQ" type="CtREQ"/>

<xs:complexType name="CtREQ">

<xs:choice>

<xs:element name="SubjectInquiryBKI" type="CtInquiry"/>

<xs:element name="UserInquiryBKI" type="CtInquiry"/>

<xs:element name="FinancialInquiryBKI" type="CtInquiry"/>

<xs:element name="ChangeCode" type="CtCode"/>

<xs:element name="ProvisionalCode" type="CtCode"/>

<xs:element name="AnnulCode" type="CtAnnul"/>

</xs:choice>

<xs:attribute name="ID" type="xs:positiveInteger" use="required"/>

</xs:complexType>

<!-- </xs:element>-->

<xs:complexType name="CtInquiry">

<xs:all>

<xs:element name="KeyData" type="CtKey"/>

<xs:element ref="SubjectCode" minOccurs="0"/>

<xs:element ref="Email" minOccurs="0"/>

</xs:all>

</xs:complexType>

<xs:complexType name="CtCode">

<xs:all>

<xs:element name="KeyData" type="CtKey"/>

<xs:element ref="SubjectCode" minOccurs="0"/>

<xs:element ref="Email" minOccurs="0"/>

<xs:element ref="NewCode"/>

</xs:all>

</xs:complexType>

<xs:complexType name="CtAnnul">

<xs:all>

<xs:element name="KeyData" type="CtKey"/>

<xs:element ref="SubjectCode" minOccurs="0"/>

<xs:element ref="Email" minOccurs="0"/>

</xs:all>

</xs:complexType>

<xs:element name="SubjectCode" type="StSubjCode"/>

<xs:element name="Email" type="StStr1020"/>

<xs:element name="NewCode" type="StSubjCode"/>

<xs:complexType name="CtKey">

<xs:choice>

<xs:element ref="KEYLP"/>

<xs:element ref="KEYNP"/>

</xs:choice>

</xs:complexType>

<xs:element name="KEYLP">

<xs:complexType>

<xs:all>

<xs:element ref="Name" minOccurs="0"/>

<xs:element ref="EGRN" minOccurs="0"/>

<xs:element ref="INN" minOccurs="0"/>

</xs:all>

</xs:complexType>

</xs:element>

<xs:element name="Name" type="StStr1020"/>

<xs:element name="EGRN" type="StEGRN"/>

<xs:element name="INN" type="StINN"/>

<xs:element name="KEYNP">

<xs:complexType>

<xs:all>

<xs:element ref="FirstName"/>

<xs:element ref="LastName"/>

<xs:element ref="MiddleName" minOccurs="0"/>

<xs:element ref="DocNumber"/>

<xs:element ref="DocDelivDate" minOccurs="0"/>

</xs:all>

</xs:complexType>

</xs:element>

<xs:element name="FirstName" type="StStr60"/>

<xs:element name="LastName" type="StStr60"/>

<xs:element name="MiddleName" type="StStr060"/>

<xs:element name="DocNumber" type="StStr50"/>

<xs:element name="DocDelivDate" type="StDate"/>

<xs:simpleType name="StVers">

<xs:restriction base="xs:positiveInteger">

<xs:enumeration value="1"/>

</xs:restriction>

</xs:simpleType>

<xs:simpleType name="StDate">

<xs:restriction base="xs:string">

<xs:pattern value="\d{2}[.]\d{2}[.]\d{4}"/>

</xs:restriction>

</xs:simpleType>

<xs:simpleType name="StEGRN">

<xs:restriction base="xs:string">

<xs:minLength value="0"/>

<xs:maxLength value="1024"/>

</xs:restriction>

</xs:simpleType>

<xs:simpleType name="StINN">

<xs:restriction base="xs:string">

<xs:minLength value="0"/>

<xs:maxLength value="1024"/>

</xs:restriction>

</xs:simpleType>

<xs:simpleType name="StSubjCode">

<xs:restriction base="xs:string">

<xs:pattern value="[a-zA-Z0-9а-яА-ЯёЁ]{4,15}"/>

</xs:restriction>

</xs:simpleType>

<xs:simpleType name="StStr60">

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="60"/>

</xs:restriction>

</xs:simpleType>

<xs:simpleType name="StStr060">

<xs:restriction base="xs:string">

<xs:maxLength value="60"/>

</xs:restriction>

</xs:simpleType>

<xs:simpleType name="StStr50">

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="50"/>

</xs:restriction>

</xs:simpleType>

<xs:simpleType name="StStr1020">

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="1020"/>

</xs:restriction>

</xs:simpleType>

</xs:schema>