InfoVersionTTN.xsd — различия между версиями

Материал из Фабиус wiki
Перейти к: навигация, поиск
м (ВЕРСИЯ 3)
м
 
(не показано 6 промежуточных версий этого же участника)
Строка 1: Строка 1:
= ВЕРСИЯ 3 =
+
<?xml version = "1.0" encoding = "utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
+
  <xs:schema version = "1.0"
  <xs:schema version="1.0"
+
  xmlns:ns         = "http://fsrar.ru/WEGAIS/InfoVersionTTN"
          xmlns:ns="http://fsrar.ru/WEGAIS/InfoVersionTTN"
+
  targetNamespace   = "http://fsrar.ru/WEGAIS/InfoVersionTTN"
          targetNamespace="http://fsrar.ru/WEGAIS/InfoVersionTTN"
+
  xmlns:c           = "http://fsrar.ru/WEGAIS/Common"           
          xmlns:c="http://fsrar.ru/WEGAIS/Common"           
+
  xmlns:xs         = "http://www.w3.org/2001/XMLSchema"
          xmlns:xs="http://www.w3.org/2001/XMLSchema"
+
  elementFormDefault = "qualified"
          elementFormDefault="qualified"
+
  attributeFormDefault = "unqualified">
          attributeFormDefault="unqualified">
+
  <xs:import namespace = "http://fsrar.ru/WEGAIS/Common" schemaLocation = "EGCommon.xsd"/>
  <xs:import namespace="http://fsrar.ru/WEGAIS/Common" schemaLocation="EGCommon.xsd"/>
+
 
  <xs:complexType name="InfoVersionTTN">
+
  <xs:complexType name = "InfoVersionTTN">
 +
  <xs:annotation>
 +
    <xs:documentation>'''Информация о''' используемой '''версии формата''' ТТН</xs:documentation>
 +
  </xs:annotation>
 +
  <xs:all>
 +
 
 +
    <xs:element name = "ClientId" type = "c:NoEmptyString50" nillable = "false" minOccurs = "1" maxOccurs = "1">
 
     <xs:annotation>
 
     <xs:annotation>
      <xs:documentation>Информация о используемой версии формата ТТН</xs:documentation>
+
      <xs:documentation>Код клиента (грузополучателя)</xs:documentation>
 
     </xs:annotation>
 
     </xs:annotation>
    <xs:all>
+
    </xs:element>
      <xs:element name="ClientId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
+
        <xs:annotation>
+
          <xs:documentation>Код клиента (грузополучателя)</xs:documentation>
+
        </xs:annotation>
+
      </xs:element>
+
      <xs:element name="WBTypeUsed" type="ns:FormatType" nillable="false" minOccurs="1" maxOccurs="1">
+
        <xs:annotation>
+
          <xs:documentation>Поддерживаемая клиентом версия формата ТТН</xs:documentation>
+
        </xs:annotation>
+
      </xs:element>
+
    </xs:all>
+
  </xs:complexType>
+
  <xs:simpleType name="FormatType">
+
    <xs:restriction base="c:NoEmptyString50">
+
      <xs:enumeration value="WayBill"></xs:enumeration>
+
      <xs:enumeration value="WayBill_v2"></xs:enumeration>
+
      <xs:enumeration value="<span style="color:#FF0000">WayBill_v3</span>"></xs:enumeration>
+
    </xs:restriction>
+
  </xs:simpleType>
+
</xs:schema>
+
  
= ВЕРСИЯ 2 =
+
    <xs:element name = "WBTypeUsed" type = "ns:FormatType" nillable = "false" minOccurs = "1" maxOccurs = "1">
<?xml version="1.0" encoding="utf-8"?>
+
<xs:schema version="1.0"
+
          xmlns:ns="http://fsrar.ru/WEGAIS/InfoVersionTTN"
+
          targetNamespace="http://fsrar.ru/WEGAIS/InfoVersionTTN"
+
          xmlns:c="http://fsrar.ru/WEGAIS/Common"          
+
          xmlns:xs="http://www.w3.org/2001/XMLSchema"
+
          elementFormDefault="qualified"
+
          attributeFormDefault="unqualified">
+
  <xs:import namespace="http://fsrar.ru/WEGAIS/Common" schemaLocation="EGCommon.xsd"/>
+
  <xs:complexType name="InfoVersionTTN">
+
 
     <xs:annotation>
 
     <xs:annotation>
      <xs:documentation>Информация о используемой версии формата ТТН</xs:documentation>
+
      <xs:documentation>Поддерживаемая клиентом версия формата ТТН</xs:documentation>
 
     </xs:annotation>
 
     </xs:annotation>
    <xs:all>
+
    </xs:element>
      <xs:element name="ClientId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
+
 
        <xs:annotation>
+
  </xs:all>
          <xs:documentation>Код клиента (грузополучателя)</xs:documentation>
+
  </xs:complexType>
        </xs:annotation>
+
 
      </xs:element>
+
  <xs:simpleType name = "FormatType">
      <xs:element name="WBTypeUsed" type="ns:FormatType" nillable="false" minOccurs="1" maxOccurs="1">
+
  <xs:restriction base = "c:NoEmptyString50">
        <xs:annotation>
+
    <xs:enumeration value = "WayBill"></xs:enumeration>
          <xs:documentation>Поддерживаемая клиентом версия формата ТТН</xs:documentation>
+
    <xs:enumeration value = "WayBill_v2"></xs:enumeration>
        </xs:annotation>
+
    <xs:enumeration value = "WayBill_v3"></xs:enumeration>
      </xs:element>
+
    <xs:enumeration value = "WayBill_v4"></xs:enumeration>
    </xs:all>
+
    <xs:enumeration value = "UniversalTransferDocument"></xs:enumeration>
  </xs:complexType>
+
  </xs:restriction>
  <xs:simpleType name="FormatType">
+
  </xs:simpleType>  
    <xs:restriction base="c:NoEmptyString50">
+
      <xs:enumeration value="WayBill"></xs:enumeration>
+
      <xs:enumeration value="WayBill_v2"></xs:enumeration>
+
    </xs:restriction>
+
  </xs:simpleType>  
+
 
  </xs:schema>
 
  </xs:schema>
 +
 +
= Смотрите также =
 +
[[Документы и их типы для отправки ( версия 4 )]]

Текущая версия на 10:00, 27 апреля 2021

<?xml version = "1.0" encoding = "utf-8"?>

<xs:schema version = "1.0"
 xmlns:ns          = "http://fsrar.ru/WEGAIS/InfoVersionTTN"
 targetNamespace   = "http://fsrar.ru/WEGAIS/InfoVersionTTN"
 xmlns:c           = "http://fsrar.ru/WEGAIS/Common"           
 xmlns:xs          = "http://www.w3.org/2001/XMLSchema"
 elementFormDefault = "qualified"
 attributeFormDefault = "unqualified">
 <xs:import namespace = "http://fsrar.ru/WEGAIS/Common" schemaLocation = "EGCommon.xsd"/>
 
 <xs:complexType name = "InfoVersionTTN">
  <xs:annotation>
   <xs:documentation>Информация о используемой версии формата ТТН</xs:documentation>
  </xs:annotation>
  <xs:all>
   <xs:element name = "ClientId" type = "c:NoEmptyString50" nillable = "false" minOccurs = "1" maxOccurs = "1">
    <xs:annotation>
     <xs:documentation>Код клиента (грузополучателя)</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name = "WBTypeUsed" type = "ns:FormatType" nillable = "false" minOccurs = "1" maxOccurs = "1">
    <xs:annotation>
     <xs:documentation>Поддерживаемая клиентом версия формата ТТН</xs:documentation>
    </xs:annotation>
   </xs:element>
  </xs:all>
 </xs:complexType>
 <xs:simpleType name = "FormatType">
  <xs:restriction base = "c:NoEmptyString50">
   <xs:enumeration value = "WayBill"></xs:enumeration>
   <xs:enumeration value = "WayBill_v2"></xs:enumeration>
   <xs:enumeration value = "WayBill_v3"></xs:enumeration>
   <xs:enumeration value = "WayBill_v4"></xs:enumeration>
   <xs:enumeration value = "UniversalTransferDocument"></xs:enumeration>
  </xs:restriction>
 </xs:simpleType> 
</xs:schema>

Смотрите также

Документы и их типы для отправки ( версия 4 )