<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by S³awomir Kubis (Systemy Komputerowe Glowka SA) -->
<!-- edited with XMLSpy v2019 sp2 (x64) (http://www.altova.com) by Róża Szwarga (SKG S.A.) -->
<xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:td="http://www.mf.gov.pl/schematy/SZPROT/Typy_eDecyzje/1.0.xsd" xmlns="http://www.mf.gov.pl/schematy/SZPROT/e-Decyzje/WDASP01/1.0.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.mf.gov.pl/schematy/SZPROT/e-Decyzje/WDASP01/1.0.xsd" targetNamespace="http://www.mf.gov.pl/schematy/SZPROT/e-Decyzje/WDASP01/1.0.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified">
  <!--Wniosek o udzielenie, zmianę i cofnięcie zezwolenia na prowadzenie składu podatkowego-->
  <xs:import namespace="http://www.mf.gov.pl/schematy/SZPROT/Typy_eDecyzje/1.0.xsd" schemaLocation="http://seap-intranet-ws:8080/seap_schematy/xsd?id=1022000"/>
  <xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="http://seap-intranet-ws:8080/seap_schematy/xsd?id=10125"/>
  <xs:element name="WDASP01">
    <xs:annotation>
      <xs:documentation source="rootName" xml:lang="pl">
        WDASP01
      </xs:documentation>
      <xs:documentation source="rootDoc" xml:lang="pl">
        Komunikat zawiera dane wniosku o udzielenie, zmianę i cofnięcie zezwolenia na prowadzenie składu podatkowego
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Element główny.
      </xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Wniosek" type="td:NaglowekWnioskuZezwolenieType">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Wybór wniosku 
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Dane ogólne wniosku
            </xs:documentation>
            <xs:documentation source="rule">
              R502
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="WnioskodawcaPodmiot">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Dane wnioskodawcy 
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Dane identyfikacyjne wnioskodawcy automatycznie pobranepobrane z PDR
            </xs:documentation>
            <xs:documentation source="rule">
              R2
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:complexContent>
              <xs:extension base="td:PodmiotZezwolenieAdresDoKorespondecjiType">
                <xs:attribute name="nrAkcPodmiotuProwadzacego" use="optional">
                  <xs:annotation>
                    <xs:documentation source="name" xml:lang="pl">
                      Numer akcyzowy prowadzącego skład podatkowy
                    </xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:length value="13"/>
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
                <xs:attribute name="nrCEiDG" type="xs:boolean" use="optional">
                  <xs:annotation>
                    <xs:documentation source="name" xml:lang="pl">
                      Podmiot jest zarejestrowany w CEIDG
                    </xs:documentation>
                    <xs:documentation source="doc" xml:lang="pl">
                      Informacja, że podmiot jest zarejestrowany w CEIDG.
                    </xs:documentation>
                  </xs:annotation>
                </xs:attribute>
              </xs:extension>
            </xs:complexContent>
          </xs:complexType>
        </xs:element>
        <xs:element name="PelnomocnikOsoba" type="td:PelnomocnikOsobaOPType" minOccurs="0" maxOccurs="9">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Pełnomocnik osoba fizyczna
            </xs:documentation>
            <xs:documentation source="rule">
              R2
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="DaneSzczegolowe">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Dane dotyczące zezwolenia
            </xs:documentation>
            <xs:documentation source="rule">
              R996, R998
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="WyrobTytoniowy" minOccurs="0" maxOccurs="99">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Wyroby tytoniowe
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:attribute name="wyrobTytoniowyKod" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Wyrób tytoniowy kod
                      </xs:documentation>
                      <xs:documentation source="list">
                        1570
                      </xs:documentation>
                      <xs:documentation source="rule">
                        R1001
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:length value="4"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="wyrobTytoniowyNazwa" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Wyrób tytoniowy
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="512"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="szacIlosc" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Szacunkowa ilość
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:decimal">
                        <xs:totalDigits value="16"/>
                        <xs:fractionDigits value="3"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="szacIloscProdukcja" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Szacunkowa ilość wyrobów dla produkcji
                      </xs:documentation>
                      <xs:documentation source="rule">
                        R1014
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:decimal">
                        <xs:totalDigits value="16"/>
                        <xs:fractionDigits value="3"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="szacIloscMagazynowanie" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Szacunkowa ilość wyrobów dla magazynowania
                      </xs:documentation>
                      <xs:documentation source="rule">
                        R1014
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:decimal">
                        <xs:totalDigits value="16"/>
                        <xs:fractionDigits value="3"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="szacIloscPrzeladowywanie" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Szacunkowa ilość wyrobów dla przeładowywania
                      </xs:documentation>
                      <xs:documentation source="rule">
                        R1014
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:decimal">
                        <xs:totalDigits value="16"/>
                        <xs:fractionDigits value="3"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="jedMiaryKod" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Jedostka miary kod
                      </xs:documentation>
                      <xs:documentation source="list">
                        1665
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="2"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="jedMiaryNazwa" use="optional">
                    <xs:annotation>
                      <xs:documentation source="nazwa" xml:lang="pl">
                        Jednostka miary
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="140"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
              <xs:element name="WyrobAlkoholowy" minOccurs="0" maxOccurs="99">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Wyroby alkoholowe
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:attribute name="wyrobAlkoholowyKod" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Wyrób alkoholowy kod
                      </xs:documentation>
                      <xs:documentation source="list">
                        1570
                      </xs:documentation>
                      <xs:documentation source="rule">
                        R1002
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:length value="4"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="wyrobAlkoholowyNazwa" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Wyrób alkoholowy
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="512"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="szacIlosc" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Szacunkowa ilość
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:decimal">
                        <xs:totalDigits value="16"/>
                        <xs:fractionDigits value="3"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="szacIloscProdukcja" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Szacunkowa ilość wyrobów dla produkcji
                      </xs:documentation>
                      <xs:documentation source="rule">
                        R1014
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:decimal">
                        <xs:totalDigits value="16"/>
                        <xs:fractionDigits value="3"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="szacIloscMagazynowanie" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Szacunkowa ilość wyrobów dla magazynowania
                      </xs:documentation>
                      <xs:documentation source="rule">
                        R1014
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:decimal">
                        <xs:totalDigits value="16"/>
                        <xs:fractionDigits value="3"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="szacIloscPrzeladowywanie" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Szacunkowa ilość wyrobów dla przeładowywania
                      </xs:documentation>
                      <xs:documentation source="rule">
                        R1014
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:decimal">
                        <xs:totalDigits value="16"/>
                        <xs:fractionDigits value="3"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="jedMiaryKod" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Jedostka miary kod
                      </xs:documentation>
                      <xs:documentation source="list">
                        1664
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="2"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="jedMiaryNazwa" use="optional">
                    <xs:annotation>
                      <xs:documentation source="nazwa" xml:lang="pl">
                        Jednostka miary
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="140"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
              <xs:element name="WyrobEnergetyczny" minOccurs="0" maxOccurs="99">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Wyroby energetyczne
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:attribute name="wyrobEnergetycznyKod" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Wyrób eneretyczny  kod
                      </xs:documentation>
                      <xs:documentation source="list">
                        1570
                      </xs:documentation>
                      <xs:documentation source="rule">
                        R1003
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:length value="4"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="wyrobEnergetycznyNazwa" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Wyrób energetyczny
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="512"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="szacIlosc" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Szacunkowa ilość
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:decimal">
                        <xs:totalDigits value="16"/>
                        <xs:fractionDigits value="3"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="szacIloscProdukcja" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Szacunkowa ilość wyrobów dla produkcji
                      </xs:documentation>
                      <xs:documentation source="rule">
                        R1014
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:decimal">
                        <xs:totalDigits value="16"/>
                        <xs:fractionDigits value="3"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="szacIloscMagazynowanie" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Szacunkowa ilość wyrobów dla magazynowania
                      </xs:documentation>
                      <xs:documentation source="rule">
                        R1014
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:decimal">
                        <xs:totalDigits value="16"/>
                        <xs:fractionDigits value="3"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="szacIloscPrzeladowywanie" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Szacunkowa ilość wyrobów dla przeładowywania
                      </xs:documentation>
                      <xs:documentation source="rule">
                        R1014
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:decimal">
                        <xs:totalDigits value="16"/>
                        <xs:fractionDigits value="3"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="jedMiaryKod" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Jedostka miary kod
                      </xs:documentation>
                      <xs:documentation source="list">
                        1666
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="2"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="jedMiaryNazwa" use="optional">
                    <xs:annotation>
                      <xs:documentation source="nazwa" xml:lang="pl">
                        Jednostka miary
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="140"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
              <xs:element name="WyrobInny" minOccurs="0" maxOccurs="99">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Wyroby inne
                  </xs:documentation>
                  <xs:documentation source="list">
                    1570
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:attribute name="wyrobInnyKod" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Wyróbi inny kod CN
                      </xs:documentation>
                      <xs:documentation source="list">
                        028F
                      </xs:documentation>
                      <xs:documentation source="rule">
                        R825, R1004
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="8"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="wyrobInnyNazwa" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Wyrób inny
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="1024"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="szacIlosc" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Szacunkowa ilość
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:decimal">
                        <xs:totalDigits value="16"/>
                        <xs:fractionDigits value="3"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="szacIloscProdukcja" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Szacunkowa ilość wyrobów dla produkcji
                      </xs:documentation>
                      <xs:documentation source="rule">
                        R1014
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:decimal">
                        <xs:totalDigits value="16"/>
                        <xs:fractionDigits value="3"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="szacIloscMagazynowanie" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Szacunkowa ilość wyrobów dla magazynowania
                      </xs:documentation>
                      <xs:documentation source="rule">
                        R1014
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:decimal">
                        <xs:totalDigits value="16"/>
                        <xs:fractionDigits value="3"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="szacIloscPrzeladowywanie" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Szacunkowa ilość wyrobów dla przeładowywania
                      </xs:documentation>
                      <xs:documentation source="rule">
                        R1014
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:decimal">
                        <xs:totalDigits value="16"/>
                        <xs:fractionDigits value="3"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="jedMiaryKod" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Jedostka miary kod
                      </xs:documentation>
                      <xs:documentation source="list">
                        1636
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="2"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="jedMiaryNazwa" use="optional">
                    <xs:annotation>
                      <xs:documentation source="nazwa" xml:lang="pl">
                        Jednostka miary
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="140"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
              <xs:element name="ZabezpieczeniaAkcyzowe" minOccurs="0" maxOccurs="99">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Zabezpiecznie akcyzowe
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:attribute name="formaZabezpieczeniaAkcyzowego" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Forma zabezpieczenia akcyzowego
                      </xs:documentation>
                      <xs:documentation source="list">
                        1572
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="adresHipoteki" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Adres nieruchomości z hipoteki
                      </xs:documentation>
                      <xs:documentation source="doc" xml:lang="pl">
                        Pole aktywne gdy wybrano hipotekę z listy
                      </xs:documentation>
                      <xs:documentation source="rule"/>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="1000"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="numerKsiegiWieczystej" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Numer księgi wieczystej
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="35"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="skladNieruchomosci" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Skład nieruchomości
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="300"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="powierzchniaNieruchomosci" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Powierzchnia nieruchomości
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
              <xs:element name="AdresSkladuPodatkowego" type="td:AdresBezDanychKomunikRequiredType">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Adres planowanej lokalizacji składu podatkowego
                  </xs:documentation>
                  <xs:documentation source="doc" xml:lang="pl">
                    Adres planowanej lokalizacji składu podatkowego
                  </xs:documentation>
                  <xs:documentation source="rule">
                    R2, R905
                  </xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="PlanowaneDzialania" maxOccurs="5">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Planowane działania
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:attribute name="rodzajPlanDzialSkladPodat" use="required">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Rodzaj działalności planowanej w składzie podatkowym
                      </xs:documentation>
                      <xs:documentation source="list">
                        1574
                      </xs:documentation>
                      <xs:documentation source="doc" xml:lang="pl">
                        Pole wielokrotnego wyboru. z listą z wartościami:
                        1- produkcja, 2- magazynowanie , 3- przeładowywanie, 4-wprowadzenie, 5-wyprowadzenie
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:length value="1"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="rodzajPlanDzialSkladPodatOpis" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Opis rodzaju planowanej dzialalności skladu podatkowego.
                      </xs:documentation>
                      <xs:documentation source="list">
                        1574
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="512"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="terminObowiazywania" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Termin obowiązywania
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Wybór z  listy proponowanego terminu obowiązywania zezwolenia :
                  nieoznaczony lub oznaczony.
                </xs:documentation>
                <xs:documentation source="list">
                  1564
                </xs:documentation>
                <xs:documentation source="rule">
                  R814
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="256"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="wazneOd" type="xs:date" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Wazne od
                </xs:documentation>
              </xs:annotation>
            </xs:attribute>
            <xs:attribute name="wazneDo" type="xs:date" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Ważne do
                </xs:documentation>
                <xs:documentation source="rule">
                  R814
                </xs:documentation>
              </xs:annotation>
            </xs:attribute>
            <xs:attribute name="infoOLiczbieZezw" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Informacja o liczbie posiadanych zezwoleń 
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Informacja o liczbie posiadanych przez wnioskodawcę zezwoleń na prowadzenie składu podatkowego.
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="3"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="rodzajZabezpieczeniaAkcyzowego" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Rodzaj zabezpieczenia akcyzowego
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Wybór z  listy wartości
                  -
                  1.Generalne
                  2.Ryczałtowe
                  3.Zwolnienie z obowiązku złożenia zabezpieczenia
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="1"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="wysokoscZabezpieczenia" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Wysokość zabezpiecznia
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:decimal">
                  <xs:totalDigits value="15"/>
                  <xs:fractionDigits value="2"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="Oswiadczenia" type="td:OswiadczenieType" minOccurs="0" maxOccurs="9">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Oświadczenia
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Osiadczenia jak w formularzach e-Klienta. Ggdy zaznaczono zabezpieczenie w formie hipoteki to rozszerzony zakres oświadczeń. 
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="InformacjaDodatkowa" type="td:InformacjaDodatkowaType" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Dodatkowe informacje 
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="Zalacznik" type="td:ZalacznikType" minOccurs="0" maxOccurs="99">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Załącznik
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Obowiązkowe deklarowane załączniki 
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="SkladajacyWniosek" type="td:SkladajacyWniosekType"/>
        <xs:element name="EMCS" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Komunikacja EMCS
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Reprezentanci" minOccurs="0" maxOccurs="999">
                <xs:annotation>
                  <xs:documentation source="doc" xml:lang="pl">
                    Reprezentanci.
                  </xs:documentation>
                  <xs:documentation source="list">
                    4000V1
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:attribute name="imie" use="required">
                    <xs:annotation>
                      <xs:documentation source="doc" xml:lang="pl">
                        Imię. Imię.
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:minLength value="0"/>
                        <xs:maxLength value="60"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="nazwisko" use="required">
                    <xs:annotation>
                      <xs:documentation source="doc" xml:lang="pl">
                        Nazwisko. Nazwisko.
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:minLength value="0"/>
                        <xs:maxLength value="90"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="idsiscROF" use="required">
                    <xs:annotation>
                      <xs:documentation source="doc" xml:lang="pl">
                        IdSISC_ROF. Identyfikator SISC reprezentanta będącego osobą fizyczną.
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:minLength value="0"/>
                        <xs:maxLength value="17"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="domyslnySposobKomunikacjiEmail" type="xs:boolean" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Domyślny sposób komunikacji E-mail
                </xs:documentation>
              </xs:annotation>
            </xs:attribute>
            <xs:attribute name="domyslnySposobKomunikacjiWebSer" type="xs:boolean" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Domyślny sposób komunikacji Webservice
                </xs:documentation>
              </xs:annotation>
            </xs:attribute>
            <xs:attribute name="podstawowyAdresEmail" use="optional">
              <xs:annotation>
                <xs:documentation source="doc" xml:lang="pl">
                  Podstawowy adres poczty elektronicznej (e-mail).
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:minLength value="0"/>
                  <xs:maxLength value="50"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="adresHTTPSUslugiWebservicePodm" use="optional">
              <xs:annotation>
                <xs:documentation source="doc" xml:lang="pl">
                  Adres HTTPS usługi webservice udostępnianej przez podmiot.
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:minLength value="0"/>
                  <xs:maxLength value="300"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="odciskPalcaCertyfikHTTPSUslugi" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Odcisk palca z certyfikatu HTTPS usługi.
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:minLength value="0"/>
                  <xs:maxLength value="70"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="login" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Login:
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:minLength value="0"/>
                  <xs:maxLength value="20"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="haslo" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Hasło:
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:minLength value="0"/>
                  <xs:maxLength value="20"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element ref="ds:Signature" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>