<?xml version="1.0"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ILoginDSservice" 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:btbDSLServerIntf" xmlns:ns2="urn:LoginClasses" xmlns:ns3="urn:CryptoClasses">
  <types>
    <xs:schema targetNamespace="urn:btbDSLServerIntf">
      <xs:complexType name="TTraderData">
        <sequence xmlns="http://www.w3.org/2001/XMLSchema">
          <xs:element name="IDTrader" type="xs:int"/>
          <xs:element name="IDFirm" type="xs:int"/>
          <xs:element name="Role" type="xs:int"/>
          <xs:element name="SessionKey" type="xs:string"/>
          <xs:element name="ErrorCode" type="xs:int"/>
          <xs:element name="WarningMessage" type="xs:string"/>
        </sequence>
      </xs:complexType>
      <xs:complexType name="TUserTraderData">
        <sequence xmlns="http://www.w3.org/2001/XMLSchema">
          <xs:element name="Location" type="xs:string"/>
          <xs:element name="ClientSoftwareGUID" type="xs:string"/>
          <xs:element name="ClientSoftwareVersion" type="xs:string"/>
          <xs:element name="ClientHardwareID" type="xs:string"/>
          <xs:element name="ClientLocalIP" type="xs:string"/>
        </sequence>
      </xs:complexType>
      <xs:complexType name="TUserCertificateInfo">
        <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="ns1: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="ns1: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>
    <xs:schema targetNamespace="urn:LoginClasses">
      <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="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="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: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="ns3:TArrayOfCertificateOIDs"/>
          <xs:element name="IssuerInfo" type="ns3: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="ns3: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="GetTempKey0Request">
    <part name="TempKey" type="xs:string"/>
  </message>
  <message name="GetTempKey0Response">
    <part name="TempKey" type="xs:string"/>
  </message>
  <message name="GetServerUTCDateTime1Request">
    <part name="ServerDateTime" type="xs:double"/>
  </message>
  <message name="GetServerUTCDateTime1Response">
    <part name="ServerDateTime" type="xs:double"/>
  </message>
  <message name="LogInTrader2Request">
    <part name="TempKey" type="xs:string"/>
    <part name="TempKeySignature" type="xs:string"/>
    <part name="TraderData" type="ns1:TTraderData"/>
    <part name="UserTraderData" type="ns1:TUserTraderData"/>
  </message>
  <message name="LogInTrader2Response">
    <part name="TraderData" type="ns1:TTraderData"/>
    <part name="UserTraderData" type="ns1:TUserTraderData"/>
  </message>
  <message name="LogInByEDS3Request">
    <part name="TempKey" type="xs:string"/>
    <part name="TempKeySignature" type="xs:string"/>
    <part name="TraderData" type="ns1:TTraderData"/>
    <part name="UserTraderData" type="ns1:TUserTraderData"/>
    <part name="UserCertificateInfo" type="ns1:TUserCertificateInfo"/>
  </message>
  <message name="LogInByEDS3Response">
    <part name="TraderData" type="ns1:TTraderData"/>
    <part name="UserTraderData" type="ns1:TUserTraderData"/>
    <part name="UserCertificateInfo" type="ns1:TUserCertificateInfo"/>
  </message>
  <message name="LoginByElectronicSignature4Request">
    <part name="AuthorisationData" type="ns2:TAuthorisationDataEDS"/>
    <part name="AuthorizedUserData" type="ns2:TAuthorizedUserData"/>
    <part name="SignerCertificateData" type="ns3:TSignerCertificateData"/>
  </message>
  <message name="LoginByElectronicSignature4Response">
    <part name="AuthorizedUserData" type="ns2:TAuthorizedUserData"/>
    <part name="SignerCertificateData" type="ns3: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="LogInByTelephone6Request">
    <part name="AIDTrader" type="xs:int"/>
    <part name="ASmsCode" type="xs:string"/>
    <part name="ATraderData" type="ns1:TTraderData"/>
    <part name="AUserTraderData" type="ns1:TUserTraderData"/>
  </message>
  <message name="LogInByTelephone6Response">
    <part name="ATraderData" type="ns1:TTraderData"/>
    <part name="AUserTraderData" type="ns1:TUserTraderData"/>
  </message>
  <message name="LogInBySMSCode7Request">
    <part name="AuthorisationData" type="ns2:TAuthorisationDataPhone"/>
    <part name="AuthorizedUserData" type="ns2:TAuthorizedUserData"/>
  </message>
  <message name="LogInBySMSCode7Response">
    <part name="AuthorizedUserData" type="ns2:TAuthorizedUserData"/>
  </message>
  <portType name="ILoginDS">
    <operation name="GetTempKey">
      <input message="tns:GetTempKey0Request"/>
      <output message="tns:GetTempKey0Response"/>
    </operation>
    <operation name="GetServerUTCDateTime">
      <input message="tns:GetServerUTCDateTime1Request"/>
      <output message="tns:GetServerUTCDateTime1Response"/>
    </operation>
    <operation name="LogInTrader">
      <input message="tns:LogInTrader2Request"/>
      <output message="tns:LogInTrader2Response"/>
    </operation>
    <operation name="LogInByEDS">
      <input message="tns:LogInByEDS3Request"/>
      <output message="tns:LogInByEDS3Response"/>
    </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="LogInByTelephone">
      <input message="tns:LogInByTelephone6Request"/>
      <output message="tns:LogInByTelephone6Response"/>
    </operation>
    <operation name="LogInBySMSCode">
      <input message="tns:LogInBySMSCode7Request"/>
      <output message="tns:LogInBySMSCode7Response"/>
    </operation>
  </portType>
  <binding name="ILoginDSbinding" type="tns:ILoginDS">
    <binding xmlns="http://schemas.xmlsoap.org/wsdl/soap/" style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="GetTempKey">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:btbDSLServerIntf-IDSLogin#GetTempKey" style="rpc"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:btbDSLServerIntf-IDSLogin"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:btbDSLServerIntf-IDSLogin"/>
      </output>
    </operation>
    <operation name="GetServerUTCDateTime">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:btbDSLServerIntf-IDSLogin#GetServerUTCDateTime" style="rpc"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:btbDSLServerIntf-IDSLogin"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:btbDSLServerIntf-IDSLogin"/>
      </output>
    </operation>
    <operation name="LogInTrader">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:btbDSLServerIntf-IDSLogin#LogInTrader" style="rpc"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:btbDSLServerIntf-IDSLogin"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:btbDSLServerIntf-IDSLogin"/>
      </output>
    </operation>
    <operation name="LogInByEDS">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:btbDSLServerIntf-IDSLogin#LogInByEDS" style="rpc"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:btbDSLServerIntf-IDSLogin"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:btbDSLServerIntf-IDSLogin"/>
      </output>
    </operation>
    <operation name="LoginByElectronicSignature">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:btbDSLServerIntf-IDSLogin#LoginByElectronicSignature" style="rpc"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:btbDSLServerIntf-IDSLogin"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:btbDSLServerIntf-IDSLogin"/>
      </output>
    </operation>
    <operation name="GetTempCode">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:btbDSLServerIntf-IDSLogin#GetTempCode" style="rpc"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:btbDSLServerIntf-IDSLogin"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:btbDSLServerIntf-IDSLogin"/>
      </output>
    </operation>
    <operation name="LogInByTelephone">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:btbDSLServerIntf-IDSLogin#LogInByTelephone" style="rpc"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:btbDSLServerIntf-IDSLogin"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:btbDSLServerIntf-IDSLogin"/>
      </output>
    </operation>
    <operation name="LogInBySMSCode">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:btbDSLServerIntf-IDSLogin#LogInBySMSCode" style="rpc"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:btbDSLServerIntf-IDSLogin"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:btbDSLServerIntf-IDSLogin"/>
      </output>
    </operation>
  </binding>
  <service name="ILoginDSservice">
    <port name="ILoginDSPort" binding="tns:ILoginDSbinding">
      <address xmlns="http://schemas.xmlsoap.org/wsdl/soap/" location="http://ts.butb.by/scripts/LoginSrv.dll/soap/ILoginDS"/>
    </port>
  </service>
</definitions>

