<?xml version="1.0"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ILoginservice" targetNamespace="http://tempuri.org/" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="urn:LoginClasses" xmlns:ns2="urn:CryptoClasses">
  <types>
    <xs:schema targetNamespace="urn:LoginClasses">
      <xs:complexType name="TAuthorisationData">
        <sequence xmlns="http://www.w3.org/2001/XMLSchema">
          <xs:element name="Login" type="xs:string"/>
          <xs:element name="Password" type="xs:string"/>
          <xs:element name="IDApplication" type="xs:string"/>
          <xs:element name="ApplicationVersion" type="xs:string"/>
        </sequence>
      </xs:complexType>
      <xs:complexType name="TAuthorizedUserData">
        <sequence xmlns="http://www.w3.org/2001/XMLSchema">
          <xs:element name="SessionKey" type="xs:string"/>
          <xs:element name="IDTrader" type="xs:int"/>
          <xs:element name="IDFirm" type="xs:int"/>
          <xs:element name="IDRole" type="xs:int"/>
          <xs:element name="ErrorCode" type="xs:int"/>
          <xs:element name="WarningMessage" type="xs:string"/>
          <xs:element name="IDLanguage" type="xs:string"/>
          <xs:element name="IsConsentedGDPR" type="xs:boolean"/>
        </sequence>
      </xs:complexType>
      <xs:complexType name="TAuthorisationDataEDS">
        <sequence xmlns="http://www.w3.org/2001/XMLSchema">
          <xs:element name="TempKey" type="xs:string"/>
          <xs:element name="TempKeySignature" type="xs:string"/>
          <xs:element name="IDApplication" type="xs:string"/>
          <xs:element name="ApplicationVersion" type="xs:string"/>
        </sequence>
      </xs:complexType>
      <xs:complexType name="TAuthorisationDataPhone">
        <sequence xmlns="http://www.w3.org/2001/XMLSchema">
          <xs:element name="IDTrader" type="xs:int"/>
          <xs:element name="SMSCode" type="xs:string"/>
          <xs:element name="IDApplication" type="xs:string"/>
        </sequence>
      </xs:complexType>
      <xs:complexType name="TAuthorisationDataPhoneInd">
        <sequence xmlns="http://www.w3.org/2001/XMLSchema">
          <xs:element name="TelephoneForSMS" type="xs:string"/>
          <xs:element name="SMSCode" type="xs:string"/>
          <xs:element name="IDApplication" type="xs:string"/>
        </sequence>
      </xs:complexType>
      <xs:complexType name="TAuthorizedUserDataInd">
        <sequence xmlns="http://www.w3.org/2001/XMLSchema">
          <xs:element name="SessionKey" type="xs:string"/>
          <xs:element name="IDIndividual" type="xs:int"/>
        </sequence>
      </xs:complexType>
    </xs:schema>
    <xs:schema targetNamespace="urn:CryptoClasses">
      <xs:complexType name="TSignerCertificateData">
        <sequence xmlns="http://www.w3.org/2001/XMLSchema">
          <xs:element name="SerialNumber" type="xs:string"/>
          <xs:element name="PublicKey" type="xs:string"/>
          <xs:element name="ValidFrom" type="xs:double"/>
          <xs:element name="ValidTo" type="xs:double"/>
          <xs:element name="ProviderType" type="xs:int"/>
          <xs:element name="SubjectInfo" type="ns2:TArrayOfCertificateOIDs"/>
          <xs:element name="IssuerInfo" type="ns2:TArrayOfCertificateOIDs"/>
        </sequence>
      </xs:complexType>
      <xs:complexType name="TArrayOfCertificateOIDs">
        <xs:complexContent>
          <xs:restriction base="soapenc:Array">
            <sequence xmlns="http://www.w3.org/2001/XMLSchema"/>
            <xs:attribute ref="soapenc:arrayType" n1:arrayType="ns2:TCertificateOIDRec[]" xmlns:n1="http://schemas.xmlsoap.org/wsdl/"/>
          </xs:restriction>
        </xs:complexContent>
      </xs:complexType>
      <xs:complexType name="TCertificateOIDRec">
        <sequence xmlns="http://www.w3.org/2001/XMLSchema">
          <xs:element name="OIDName" type="xs:string"/>
          <xs:element name="OIDValue" type="xs:string"/>
        </sequence>
      </xs:complexType>
    </xs:schema>
  </types>
  <message name="GetServerDateTime0Request"/>
  <message name="GetServerDateTime0Response">
    <part name="return" type="xs:double"/>
  </message>
  <message name="LoginByPassword1Request">
    <part name="AuthorisationData" type="ns1:TAuthorisationData"/>
    <part name="AuthorizedUserData" type="ns1:TAuthorizedUserData"/>
  </message>
  <message name="LoginByPassword1Response">
    <part name="AuthorizedUserData" type="ns1:TAuthorizedUserData"/>
  </message>
  <message name="GetTempKey2Request">
    <part name="TempKey" type="xs:string"/>
  </message>
  <message name="GetTempKey2Response">
    <part name="TempKey" type="xs:string"/>
  </message>
  <message name="GetServerUTCDateTime3Request">
    <part name="ServerDateTime" type="xs:double"/>
  </message>
  <message name="GetServerUTCDateTime3Response">
    <part name="ServerDateTime" type="xs:double"/>
  </message>
  <message name="LoginByElectronicSignature4Request">
    <part name="AuthorisationData" type="ns1:TAuthorisationDataEDS"/>
    <part name="AuthorizedUserData" type="ns1:TAuthorizedUserData"/>
    <part name="SignerCertificateData" type="ns2:TSignerCertificateData"/>
  </message>
  <message name="LoginByElectronicSignature4Response">
    <part name="AuthorizedUserData" type="ns1:TAuthorizedUserData"/>
    <part name="SignerCertificateData" type="ns2:TSignerCertificateData"/>
  </message>
  <message name="GetTempCode5Request">
    <part name="ALogin" type="xs:string"/>
    <part name="APasswordHash" type="xs:string"/>
    <part name="AIDTrader" type="xs:int"/>
  </message>
  <message name="GetTempCode5Response">
    <part name="AIDTrader" type="xs:int"/>
  </message>
  <message name="LogInBySMSCode6Request">
    <part name="AuthorisationData" type="ns1:TAuthorisationDataPhone"/>
    <part name="AuthorizedUserData" type="ns1:TAuthorizedUserData"/>
  </message>
  <message name="LogInBySMSCode6Response">
    <part name="AuthorizedUserData" type="ns1:TAuthorizedUserData"/>
  </message>
  <message name="GetTempCodeIndividual7Request">
    <part name="ATelephoneForSMS" type="xs:string"/>
    <part name="AIDApplication" type="xs:string"/>
  </message>
  <message name="GetTempCodeIndividual7Response"/>
  <message name="LogInBySMSCodeIndividual8Request">
    <part name="AuthorisationData" type="ns1:TAuthorisationDataPhoneInd"/>
    <part name="AuthorizedUserData" type="ns1:TAuthorizedUserDataInd"/>
  </message>
  <message name="LogInBySMSCodeIndividual8Response">
    <part name="AuthorizedUserData" type="ns1:TAuthorizedUserDataInd"/>
  </message>
  <portType name="ILogin">
    <operation name="GetServerDateTime">
      <input message="tns:GetServerDateTime0Request"/>
      <output message="tns:GetServerDateTime0Response"/>
    </operation>
    <operation name="LoginByPassword">
      <input message="tns:LoginByPassword1Request"/>
      <output message="tns:LoginByPassword1Response"/>
    </operation>
    <operation name="GetTempKey">
      <input message="tns:GetTempKey2Request"/>
      <output message="tns:GetTempKey2Response"/>
    </operation>
    <operation name="GetServerUTCDateTime">
      <input message="tns:GetServerUTCDateTime3Request"/>
      <output message="tns:GetServerUTCDateTime3Response"/>
    </operation>
    <operation name="LoginByElectronicSignature">
      <input message="tns:LoginByElectronicSignature4Request"/>
      <output message="tns:LoginByElectronicSignature4Response"/>
    </operation>
    <operation name="GetTempCode">
      <input message="tns:GetTempCode5Request"/>
      <output message="tns:GetTempCode5Response"/>
    </operation>
    <operation name="LogInBySMSCode">
      <input message="tns:LogInBySMSCode6Request"/>
      <output message="tns:LogInBySMSCode6Response"/>
    </operation>
    <operation name="GetTempCodeIndividual">
      <input message="tns:GetTempCodeIndividual7Request"/>
      <output message="tns:GetTempCodeIndividual7Response"/>
    </operation>
    <operation name="LogInBySMSCodeIndividual">
      <input message="tns:LogInBySMSCodeIndividual8Request"/>
      <output message="tns:LogInBySMSCodeIndividual8Response"/>
    </operation>
  </portType>
  <binding name="ILoginbinding" type="tns:ILogin">
    <binding xmlns="http://schemas.xmlsoap.org/wsdl/soap/" style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="GetServerDateTime">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:LoginIntf-ILogin#GetServerDateTime" style="rpc"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:LoginIntf-ILogin"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:LoginIntf-ILogin"/>
      </output>
    </operation>
    <operation name="LoginByPassword">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:LoginIntf-ILogin#LoginByPassword" style="rpc"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:LoginIntf-ILogin"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:LoginIntf-ILogin"/>
      </output>
    </operation>
    <operation name="GetTempKey">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:LoginIntf-ILogin#GetTempKey" style="rpc"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:LoginIntf-ILogin"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:LoginIntf-ILogin"/>
      </output>
    </operation>
    <operation name="GetServerUTCDateTime">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:LoginIntf-ILogin#GetServerUTCDateTime" style="rpc"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:LoginIntf-ILogin"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:LoginIntf-ILogin"/>
      </output>
    </operation>
    <operation name="LoginByElectronicSignature">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:LoginIntf-ILogin#LoginByElectronicSignature" style="rpc"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:LoginIntf-ILogin"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:LoginIntf-ILogin"/>
      </output>
    </operation>
    <operation name="GetTempCode">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:LoginIntf-ILogin#GetTempCode" style="rpc"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:LoginIntf-ILogin"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:LoginIntf-ILogin"/>
      </output>
    </operation>
    <operation name="LogInBySMSCode">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:LoginIntf-ILogin#LogInBySMSCode" style="rpc"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:LoginIntf-ILogin"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:LoginIntf-ILogin"/>
      </output>
    </operation>
    <operation name="GetTempCodeIndividual">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:LoginIntf-ILogin#GetTempCodeIndividual" style="rpc"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:LoginIntf-ILogin"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:LoginIntf-ILogin"/>
      </output>
    </operation>
    <operation name="LogInBySMSCodeIndividual">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:LoginIntf-ILogin#LogInBySMSCodeIndividual" style="rpc"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:LoginIntf-ILogin"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:LoginIntf-ILogin"/>
      </output>
    </operation>
  </binding>
  <service name="ILoginservice">
    <port name="ILoginPort" binding="tns:ILoginbinding">
      <address xmlns="http://schemas.xmlsoap.org/wsdl/soap/" location="http://ts.butb.by/scripts/LoginSrv.dll/soap/ILogin"/>
    </port>
  </service>
</definitions>

