<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://sms-host.ru/" xmlns:s1="http://microsoft.com/wsdl/types/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://sms-host.ru/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Веб-сервис для отправки сообщений через сервер sms-host.ru</wsdl:documentation>
  <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://sms-host.ru/">
      <s:import namespace="http://microsoft.com/wsdl/types/" />
      <s:element name="SumbitSm">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="messageList" type="tns:ArrayOfWsSubmitSm" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="ArrayOfWsSubmitSm">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="WsSubmitSm" nillable="true" type="tns:WsSubmitSm" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="WsSubmitSm">
        <s:attribute name="ValidityPeriodSmpp" type="s:string" />
        <s:attribute name="MessageText" type="s:string" />
        <s:attribute name="SenderAddress" type="s:string" />
        <s:attribute name="ReceiverAddress" type="s:string" />
        <s:attribute name="MessageId" type="s1:guid" use="required" />
      </s:complexType>
      <s:element name="SumbitSmResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="SumbitSmResult" type="tns:ArrayOfWsSubmitSmResp" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="ArrayOfWsSubmitSmResp">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="WsSubmitSmResp" nillable="true" type="tns:WsSubmitSmResp" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="WsSubmitSmResp">
        <s:attribute name="ErrorDescription" type="s:string" />
        <s:attribute name="ErrorCode" type="s:int" use="required" />
        <s:attribute name="PartCount" type="s:unsignedByte" use="required" />
        <s:attribute name="MessageId" type="s1:guid" use="required" />
      </s:complexType>
      <s:element name="Authentication" type="tns:Authentication" />
      <s:complexType name="Authentication">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="1" name="User" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
        </s:sequence>
        <s:anyAttribute />
      </s:complexType>
      <s:element name="QuerySm">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="messageList" type="tns:ArrayOfWsQuerySm" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="ArrayOfWsQuerySm">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="WsQuerySm" nillable="true" type="tns:WsQuerySm" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="WsQuerySm">
        <s:attribute name="MessageId" type="s1:guid" use="required" />
      </s:complexType>
      <s:element name="QuerySmResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="QuerySmResult" type="tns:ArrayOfWsQuerySmResp" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="ArrayOfWsQuerySmResp">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="WsQuerySmResp" nillable="true" type="tns:WsQuerySmResp" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="WsQuerySmResp">
        <s:attribute name="EndTime" type="s:dateTime" use="required" />
        <s:attribute name="BeginTime" type="s:dateTime" use="required" />
        <s:attribute name="PartErrorCount" type="s:unsignedByte" use="required" />
        <s:attribute name="PartDeliveredCount" type="s:unsignedByte" use="required" />
        <s:attribute name="PartSendCount" type="s:unsignedByte" use="required" />
        <s:attribute name="StateName" type="s:string" />
        <s:attribute name="StateCode" type="s:int" use="required" />
        <s:attribute name="MessageId" type="s1:guid" use="required" />
      </s:complexType>
    </s:schema>
    <s:schema elementFormDefault="qualified" targetNamespace="http://microsoft.com/wsdl/types/">
      <s:simpleType name="guid">
        <s:restriction base="s:string">
          <s:pattern value="[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}" />
        </s:restriction>
      </s:simpleType>
    </s:schema>
  </wsdl:types>
  <wsdl:message name="SumbitSmSoapIn">
    <wsdl:part name="parameters" element="tns:SumbitSm" />
  </wsdl:message>
  <wsdl:message name="SumbitSmSoapOut">
    <wsdl:part name="parameters" element="tns:SumbitSmResponse" />
  </wsdl:message>
  <wsdl:message name="SumbitSmAuthentication">
    <wsdl:part name="Authentication" element="tns:Authentication" />
  </wsdl:message>
  <wsdl:message name="QuerySmSoapIn">
    <wsdl:part name="parameters" element="tns:QuerySm" />
  </wsdl:message>
  <wsdl:message name="QuerySmSoapOut">
    <wsdl:part name="parameters" element="tns:QuerySmResponse" />
  </wsdl:message>
  <wsdl:message name="QuerySmAuthentication">
    <wsdl:part name="Authentication" element="tns:Authentication" />
  </wsdl:message>
  <wsdl:portType name="SmsHostWsSoap">
    <wsdl:operation name="SumbitSm">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Отправляет коллекцию одиночных сообщений</wsdl:documentation>
      <wsdl:input message="tns:SumbitSmSoapIn" />
      <wsdl:output message="tns:SumbitSmSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="QuerySm">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Возвращает состояние сообщений, ранее отправленных с помощью метода SumbitSm</wsdl:documentation>
      <wsdl:input message="tns:QuerySmSoapIn" />
      <wsdl:output message="tns:QuerySmSoapOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="SmsHostWsSoap" type="tns:SmsHostWsSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="SumbitSm">
      <soap:operation soapAction="http://sms-host.ru/SumbitSm" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
        <soap:header message="tns:SumbitSmAuthentication" part="Authentication" use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="QuerySm">
      <soap:operation soapAction="http://sms-host.ru/QuerySm" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
        <soap:header message="tns:QuerySmAuthentication" part="Authentication" use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="SmsHostWsSoap12" type="tns:SmsHostWsSoap">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="SumbitSm">
      <soap12:operation soapAction="http://sms-host.ru/SumbitSm" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
        <soap12:header message="tns:SumbitSmAuthentication" part="Authentication" use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="QuerySm">
      <soap12:operation soapAction="http://sms-host.ru/QuerySm" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
        <soap12:header message="tns:QuerySmAuthentication" part="Authentication" use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="SmsHostWs">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Веб-сервис для отправки сообщений через сервер sms-host.ru</wsdl:documentation>
    <wsdl:port name="SmsHostWsSoap" binding="tns:SmsHostWsSoap">
      <soap:address location="https://sms-host.ru/Service/SmsHostWs.asmx" />
    </wsdl:port>
    <wsdl:port name="SmsHostWsSoap12" binding="tns:SmsHostWsSoap12">
      <soap12:address location="https://sms-host.ru/Service/SmsHostWs.asmx" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>