Приложение Д

ФОРМАТ

ЭЛЕКТРОННОГО ДОКУМЕНТА "ОДИНОЧНЫЙ ЗАПРОС ИНФОРМАЦИИ О БКИ,

В КОТОРЫХ ХРАНИТСЯ КРЕДИТНАЯ ИСТОРИЯ СУБЪЕКТА

КРЕДИТНОЙ ИСТОРИИ"

Сообщение передается в кодировке 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="INQ">

<xs:complexType>

<xs:sequence>

<xs:element ref="THEADER"/>

<xs:element ref="TBODY"/>

</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="RequestID" minOccurs="0"/>

<xs:element ref="CreateDate"/>

</xs:sequence>

</xs:complexType>

</xs:element>

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

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

<xs:element name="TBODY">

<xs:complexType>

<xs:choice>

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

</xs:choice>

</xs:complexType>

</xs:element>

<xs:complexType name="CtInquiry">

<xs:all>

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

</xs:all>

</xs:complexType>

<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="StStr060">

<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>