<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2019 sp2 (x64) (http://www.altova.com) by Róża Szwarga (SKG S.A.) -->
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by S³awomir Kubis (Systemy Komputerowe Glowka SA) -->
<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/WDAPP01/1.0.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.mf.gov.pl/schematy/SZPROT/e-Decyzje/WDAPP01/1.0.xsd" targetNamespace="http://www.mf.gov.pl/schematy/SZPROT/e-Decyzje/WDAPP01/1.0.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified">
  <!--Wniosek o wydanie, zmianę lub cofnięcie zezwolenia na prowadzenie działalności jako podmiot pośredniczący-->
  <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="WDAPP01">
    <xs:annotation>
      <xs:documentation source="rootName" xml:lang="pl">
        WDAPP01
      </xs:documentation>
      <xs:documentation source="rootDoc" xml:lang="pl">
        Komunikat zawiera dane wniosku o udzielenie, zmianę i cofnięcie zezwolenia na  prowadzenie działalności jako podmiot pośredniczący.
      </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 pobrane 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="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 szczegółowe wniosku
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="DaneWyrobowAkcyzowych" maxOccurs="99">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Dane dotyczące wyrobów akcyzowych
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:attribute name="wyrobAkcyzowyKod" use="required">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Wyrób akcyzowy kod
                      </xs:documentation>
                      <xs:documentation source="doc" xml:lang="pl">
                        Rodzaje wyrobów podlegających zwolnieniu od akcyzy ze względu na przeznaczenie
                      </xs:documentation>
                      <xs:documentation source="list">
                        1570
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="4"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="wyrobAkcyzowyNazwa" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Nazwa wyrobu podlegających zwolnieniu od akcyzy ze względu na przeznaczenie
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="512"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="kodCnWyrobowAkcKod" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Kod CN wyrobów akcyzowych 
                      </xs:documentation>
                      <xs:documentation source="list">
                        028
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="8"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="kodCnWyrobowAkcNazwa" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Kod CN wyrobów akcyzowych
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="255"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="szacowanaIloscMiesiecznie" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Szacowana ilość miesięczna
                      </xs:documentation>
                      <xs:documentation source="rule" xml:lang="pl">
                        R1020
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:decimal">
                        <xs:totalDigits value="6"/>
                        <xs:fractionDigits value="3"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="jednostkaMiaryKod" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Jednostka miary kod
                      </xs:documentation>
                      <xs:documentation source="list">
                        1666
                      </xs:documentation>
                      <xs:documentation source="rule" xml:lang="pl">
                        R1020
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="2"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="jednostkaMiaryNazwa" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" 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" 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:documentation source="rule" xml:lang="pl">
                        R1020
                      </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: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">
                  Ważne 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="rodzajZabezpieczeniaAkcyzowego" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Rodzaj zabezpieczenia akcyzowego
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Kod rodzaju zabezpieczenia. 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="256"/>
                </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:documentation source="rule" xml:lang="pl">
                  R1020
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:decimal">
                  <xs:totalDigits value="16"/>
                  <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:annotation>
        </xs:element>
        <xs:element name="EMCS" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" 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="name" 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="name" xml:lang="pl">
                        Imię
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="60"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="nazwisko" use="required">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Nazwisko.
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="idsiscROF" use="required">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Identyfikator SISC reprezentanta będącego osobą fizyczną.
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <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="name" xml:lang="pl">
                  Podstawowy adres poczty elektronicznej (e-mail).
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="50"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="adresHTTPSUslugiWebservicePodm" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Adres HTTPS usługi webservice udostępnianej przez podmiot.
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <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: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: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:maxLength value="20"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="SkladajacyWniosek" type="td:SkladajacyWniosekType">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Osoba składająca wniosek
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Dane osoby wnioskującej (podpisującej wniosek).
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element ref="ds:Signature" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>
