<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.mf.gov.pl/SENT/2017/12/08/SENT_450.xsd" xmlns:tp="http://www.mf.gov.pl/SENT/2017/12/08/STypes.xsd" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.mf.gov.pl/SENT/2017/12/08/SENT_450.xsd">
  <xs:import namespace="http://www.mf.gov.pl/SENT/2017/12/08/STypes.xsd" schemaLocation="STypes.xsd"/>
  <xs:annotation>
    <xs:appinfo>
      SENT
    </xs:appinfo>
    <xs:documentation source="doc" xml:lang="pl">
      SENT450 - REJESTRACJA UŻYTKOWNIKA SYSTEMOWEGO PODMIOTU (DLA POTRZEB KANAŁU WS-DIRECT)
    </xs:documentation>
    <xs:documentation source="doc" xml:lang="pl">
      Podstawa prawna: Ustawa z dnia 9 marca 2017r. o systemie monitorowania drogowego i kolejowego przewozu towarów (Dz. U. poz. 708, z późn. zm.)
    </xs:documentation>
    <xs:documentation source="doc" xml:lang="en">
      REGISTRATION OF THE SYSTEM USER OF THE ENTITY (FOR WS-DIRECT CHANNEL)
    </xs:documentation>
    <xs:documentation source="doc" xml:lang="en">
      Legal basis: Act of 9 March 2017 on the road and rail transport monitoring system (Journal of Laws, item 708, with subsequest amendments)
    </xs:documentation>
  </xs:annotation>
  <xs:element name="SENT_450">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Element główny komunikatu
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Main element of the message
      </xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="1" minOccurs="1" name="WsSystemTrader" type="tp:Trader">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacje o podmiocie rejestrującym konto systemowe podmiotu
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Information about the entity registering the entity's system account
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="1" name="WsSystemUser">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacje o użytkowniku systemowym podmiotu uwierzytelniającym się w SISC dla potrzeb kanału WS-DIRECT
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Information about the entity's system user authentication to SISC for the purposes of the WS-DIRECT channel
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="1" minOccurs="1" name="FirstName" type="tp:FirstName"/>
              <xs:element maxOccurs="1" minOccurs="1" name="LastName" type="tp:LastName"/>
              <xs:element maxOccurs="1" minOccurs="1" name="UserName" type="tp:Email"/>
              <xs:element maxOccurs="1" minOccurs="1" name="IdSeap" type="xs:string"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="1" name="WebServiceChannel">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacje o zwrotnym kanale Web service podmiotu, na które będą kierowane zwrotnie komunikaty przesyłane na kanał WS-DIRECT
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Information about the feedback channel of the entity's Web service that will be directed back to the WS-DIRECT channel
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="1" minOccurs="1" name="UrlAddress" type="tp:Url"/>
              <xs:element maxOccurs="1" minOccurs="0" name="Username" type="tp:UserName"/>
              <xs:element maxOccurs="1" minOccurs="0" name="UserPassword" type="tp:UserPassword"/>
              <xs:element maxOccurs="1" minOccurs="0" name="AuthenticationKey" type="tp:AuthenticationKey"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="1" name="AdministratorServices">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacje kontaktowe do administratora usługi Web service podmiotu
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Contact information for the entity's Web service service administrator
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="1" minOccurs="1" name="AdminPhoneNumber" type="xs:string"/>
              <xs:element maxOccurs="1" minOccurs="1" name="AdminEmail" type="tp:Email"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="0" name="Comments" type="tp:Comments">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacje dodatkowe
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Additional information
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="0" name="DocumentId" type="tp:DocumentSelfNumber">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Numer własny dokumentu
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Own document number
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="0" name="ResponseAddress" type="tp:ResponseAddress">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Kanały komunikacji zwrotnej
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Feedback communication channel
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="1" name="Statements" type="tp:Statements">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Oświadczenie o posiadaniu upoważnienia do działania w imieniu podmiotu zobowiązanego do wypełnienia i przesłania zgłoszenia
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Declaration on having the authorization to act on behalf of the entity obliged to complete and send the message
            </xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>