<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.mf.gov.pl/schematy/SZPROT/e-Klient/WPE0001/1.0.xsd" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:sz="http://www.mf.gov.pl/schematy/SZPROT/Typy/1.0.xsd" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.mf.gov.pl/schematy/SZPROT/e-Klient/WPE0001/1.0.xsd">
  <xs:import namespace="http://www.mf.gov.pl/schematy/SZPROT/Typy/1.0.xsd" schemaLocation="http://seap-intranet-ws:8080/seap_schematy/xsd?id=1021325"/>
  <xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="http://seap-intranet-ws:8080/seap_schematy/xsd?id=10125"/>
  <xs:element name="WPE0001">
    <xs:annotation>
      <xs:documentation source="rootName" xml:lang="pl">
        WPE0001
      </xs:documentation>
      <xs:documentation source="rootDoc" xml:lang="pl">
        Wniosek o rejestrację/aktualizację reprezentacji w SISC
      </xs:documentation>
      <xs:documentation source="rootDoc" xml:lang="pl">
        Komunikat jest przekazywany przez wnioskodawcę do SZPROT PLUS.
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Element główny.
      </xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Naglowek">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Nagłówek
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:complexContent>
              <xs:extension base="sz:NaglowekType"/>
            </xs:complexContent>
          </xs:complexType>
        </xs:element>
        <xs:element name="Reprezentowany" type="sz:PodmiotIdentyfikacjaType">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Reprezentowany
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Dane identyfikacyjne reprezentowanego podmiotu.
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="99" minOccurs="0" name="ReprezentacjaOsFiz" type="ReprezentacjaOsFizType">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Reprezentacja dla osoby fizycznej
            </xs:documentation>
            <xs:documentation source="rule">
              R82
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element minOccurs="0" name="ReprezentacjaPodmiot" type="ReprezentacjaPodmiotType">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Reprezentacja dla podmiotu
            </xs:documentation>
            <xs:documentation source="rule">
              R82
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element minOccurs="0" name="InfDodatkowe" type="sz:InfDodatkoweType">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Informacje dodatkowe
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="99" minOccurs="0" name="Zalacznik" type="sz:PlikType">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Załącznik
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Załączniki z dokumentami pełnomocnictw i powiązane (np. potwierdzenie dokonania opłaty skarbowej).
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="Wnioskodawca">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Wnioskodawca
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:complexContent>
              <xs:extension base="sz:WnioskodawcaType"/>
            </xs:complexContent>
          </xs:complexType>
        </xs:element>
        <xs:element minOccurs="0" ref="ds:Signature"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:complexType name="UprawnienieRozszerzoneType">
    <xs:attribute name="kod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod uprawnienia
        </xs:documentation>
        <xs:documentation source="list">
          1542
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Uprawnienie
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="UprawnienieDoCzynnosciType">
    <xs:attribute name="kod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod uprawnienia
        </xs:documentation>
        <xs:documentation source="list">
          1626
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Uprawnienie
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="opis" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Opis uprawnienia
        </xs:documentation>
        <xs:documentation source="rule">
          R84
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="1025"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="UprawnienieSystemoweType">
    <xs:attribute name="systemKod" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod systemu
        </xs:documentation>
        <xs:documentation source="list">
          1530
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="36"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="systemNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          System
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="przedstawicielstwoKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod rodzaju przedstawicielstwa
        </xs:documentation>
        <xs:documentation source="list">
          1543
        </xs:documentation>
        <xs:documentation source="rule">
          R85
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="przedstawicielstwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Rodzaj przedstawicielstwa
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wazneOd" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data początku obowiązywania
        </xs:documentation>
        <xs:documentation source="rule">
          R15, R86
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:date"/>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="wazneDo" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data końca obowiązywania
        </xs:documentation>
        <xs:documentation source="rule">
          R15, R87
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:date"/>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ReprezentacjaOsFizType">
    <xs:sequence>
      <xs:element name="Reprezentant" type="sz:OsobaFizycznaIdentyfikacjaType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Reprezentant
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Dane identyfikacyjne reprezentanta
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="UdzielajacySubstytucji" type="UdzielajacySubstytucjiType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Udzielający substytucji
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Dane identyfikacyjne udzielającego substytucji.
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element maxOccurs="99" minOccurs="0" name="UprawnienieRozszerzone" type="UprawnienieRozszerzoneType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Uprawnienie rozszerzone
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element maxOccurs="99" minOccurs="0" name="UprawnienieDoCzynnosci" type="UprawnienieDoCzynnosciType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Uprawnienie do czynności
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element maxOccurs="99" minOccurs="0" name="UprawnienieSystemowe" type="UprawnienieSystemoweType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Uprawnienie do systemu
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Uprawnienie do wysyłania komunikatów do systemu SISC
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="formaReprezentacji" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Forma reprezentacji
        </xs:documentation>
        <xs:documentation source="list">
          1500
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="waznaOd" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data początku obowiązywania
        </xs:documentation>
        <xs:documentation source="rule">
          R15
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:date"/>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="waznaDo" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data końca obowiązywania
        </xs:documentation>
        <xs:documentation source="rule">
          R15
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:date"/>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ReprezentacjaPodmiotType">
    <xs:sequence>
      <xs:element name="Reprezentant" type="sz:PodmiotIdentyfikacjaType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Reprezentant
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Dane identyfikacyjne reprezentanta
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="UdzielajacySubstytucji" type="UdzielajacySubstytucjiType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Udzielający substytucji
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Dane identyfikacyjne udzielającego substytucji.
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element maxOccurs="99" minOccurs="0" name="UprawnienieRozszerzone" type="UprawnienieRozszerzoneType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Uprawnienie rozszerzone
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element maxOccurs="99" minOccurs="0" name="UprawnienieDoCzynnosci" type="UprawnienieDoCzynnosciType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Uprawnienie do czynności
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element maxOccurs="99" minOccurs="0" name="UprawnienieSystemowe" type="UprawnienieSystemoweType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Uprawnienie do systemu
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Uprawnienie do wysyłania komunikatów do systemu SISC
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="formaReprezentacji" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Forma reprezentacji
        </xs:documentation>
        <xs:documentation source="list">
          1500
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="waznaOd" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data początku obowiązywania
        </xs:documentation>
        <xs:documentation source="rule">
          R15
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:date"/>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="waznaDo" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Data końca obowiązywania
        </xs:documentation>
        <xs:documentation source="rule">
          R15
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:date"/>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="UdzielajacySubstytucjiType">
    <xs:attribute name="rodzajOsoby" use="required">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Rodzaj osoby
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Możliwe wartości: "OF" (Osoba fizyczna), "PG" (Podmiot gospodarczy, organizacja, instytucja)
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
          <xs:enumeration value="OF"/>
          <xs:enumeration value="PG"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="idsisc" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          ID SISIC
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaPelna" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa pełna
        </xs:documentation>
        <xs:documentation source="rule">
          R89
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="512"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nazwaSkrocona" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwa skrócona
        </xs:documentation>
        <xs:documentation source="rule">
          R89
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="70"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nip" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          NIP
        </xs:documentation>
        <xs:documentation source="rule">
          R89
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="10"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="regon" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          REGON
        </xs:documentation>
        <xs:documentation source="rule">
          R89
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="14"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="eori" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer EORI
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrTc" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer TC 
        </xs:documentation>
        <xs:documentation source="rule">
          R89
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrVatUe" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Numer VAT UE
        </xs:documentation>
        <xs:documentation source="rule">
          R89
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="17"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="obywatelstwoKod" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kod kraju obywatelstwa
        </xs:documentation>
        <xs:documentation source="list">
          007
        </xs:documentation>
        <xs:documentation source="rule">
          R89
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="obywatelstwoNazwa" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Kraj obywatelstwa
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="140"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="pesel" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          PESEL
        </xs:documentation>
        <xs:documentation source="rule">
          R89
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="11"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="nrIdentyfikacyjny" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nr identyfikacyjny
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
          Identyfikator osoby zagranicznej.
        </xs:documentation>
        <xs:documentation source="rule">
          R89
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="35"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="imie" use="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Imię
        </xs:documentation>
        <xs:documentation source="rule">
          R89
        </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="optional">
      <xs:annotation>
        <xs:documentation source="name" xml:lang="pl">
          Nazwisko
        </xs:documentation>
        <xs:documentation source="rule">
          R89
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:maxLength value="90"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
</xs:schema>