<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" name="smsbull" targetNamespace="http://www.smsbull.com/myNameSpace" xmlns:tns="http://www.smsbull.com/myNameSpace" xmlns:impl="http://www.smsbull.com/myNameSpace" xmlns:xsd1="http://www.smsbull.com/myNameSpace" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.smsbull.com/myNameSpace">
      <complexType name="ArrayOfstring">
        <complexContent>
          <restriction base="soapenc:Array">
            <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/>
          </restriction>
        </complexContent>
      </complexType>
      <complexType name="ArrayOfhistoryMessage">
        <complexContent>
          <restriction base="soapenc:Array">
            <attribute ref="soapenc:arrayType" wsdl:arrayType="tns:historyMessage[]"/>
          </restriction>
        </complexContent>
      </complexType>
      <complexType name="historyMessage">
        <sequence>
          <element name="msgId" type="xsd:string"/>
          <element name="date" type="xsd:string"/>
          <element name="text" type="xsd:string"/>
          <element name="sender" type="xsd:string"/>
        </sequence>
      </complexType>
      <complexType name="HistoryMessageDetails">
        <sequence>
          <element name="msgId" type="xsd:string"/>
          <element name="date" type="xsd:string"/>
          <element name="text" type="xsd:string"/>
          <element name="sender" type="xsd:string"/>
          <element name="receivers" type="tns:ArrayOfReceiverDetails"/>
        </sequence>
      </complexType>
      <complexType name="ArrayOfReceiverDetails">
        <complexContent>
          <restriction base="soapenc:Array">
            <attribute ref="soapenc:arrayType" wsdl:arrayType="tns:ReceiverDetails[]"/>
          </restriction>
        </complexContent>
      </complexType>
      <complexType name="ReceiverDetails">
        <sequence>
          <element name="receiver" type="xsd:string"/>
          <element name="status" type="xsd:int"/>
        </sequence>
      </complexType>
    </schema>
  </types>
  <portType name="smsbullPortType">
    <operation name="login" parameterOrder="login pass">
      <input message="tns:LoginRequest"/>
      <output message="tns:LoginResponse"/>
    </operation>
    <operation name="accountGetCredit">
      <input message="tns:AccountGetCreditRequest"/>
      <output message="tns:AccountGetCreditResponse"/>
    </operation>
    <operation name="smsSend" parameterOrder="receivers text sender hide">
      <input message="tns:SmsSendRequest"/>
      <output message="tns:SmsSendResponse"/>
    </operation>
    <operation name="historyGetNbMessages">
      <input message="tns:HistoryGetNbMessagesRequest"/>
      <output message="tns:HistoryGetNbMessagesResponse"/>
    </operation>
    <operation name="historyGetMessages" parameterOrder="offset limit">
      <input message="tns:HistoryGetMessagesRequest"/>
      <output message="tns:HistoryGetMessagesResponse"/>
    </operation>
    <operation name="historyGetMessage" parameterOrder="msgId">
      <input message="tns:HistoryGetMessageRequest"/>
      <output message="tns:HistoryGetMessageResponse"/>
    </operation>
    <operation name="sendersList">
      <input message="tns:SendersListRequest"/>
      <output message="tns:SendersListResponse"/>
    </operation>
  </portType>
  <binding name="smsbullBinding" type="tns:smsbullPortType">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="login">
      <soap:operation soapAction="urn:smsbull#smsbullServer#login"/>
      <input>
        <soap:body parts="login pass" use="encoded" namespace="http://www.smsbull.com/myNameSpace" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </input>
      <output>
        <soap:body parts="return" use="encoded" namespace="http://www.smsbull.com/myNameSpace" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </output>
    </operation>
    <operation name="accountGetCredit">
      <soap:operation soapAction="urn:smsbull#smsbullServer#accountGetCredit"/>
      <input>
        <soap:body use="encoded" namespace="http://www.smsbull.com/myNameSpace" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </input>
      <output>
        <soap:body parts="return" use="encoded" namespace="http://www.smsbull.com/myNameSpace" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </output>
    </operation>
    <operation name="smsSend">
      <soap:operation soapAction="urn:smsbull#smsbullServer#smsSend"/>
      <input>
        <soap:body parts="receivers text sender hide" use="encoded" namespace="http://www.smsbull.com/myNameSpace" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </input>
      <output>
        <soap:body parts="return" use="encoded" namespace="http://www.smsbull.com/myNameSpace" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </output>
    </operation>
    <operation name="historyGetNbMessages">
      <soap:operation soapAction="urn:smsbull#smsbullServer#historyGetNbMessages"/>
      <input>
        <soap:body use="encoded" namespace="http://www.smsbull.com/myNameSpace" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </input>
      <output>
        <soap:body parts="return" use="encoded" namespace="http://www.smsbull.com/myNameSpace" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </output>
    </operation>
    <operation name="historyGetMessages">
      <soap:operation soapAction="urn:smsbull#smsbullServer#historyGetMessages"/>
      <input>
        <soap:body parts="offset limit" use="encoded" namespace="http://www.smsbull.com/myNameSpace" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </input>
      <output>
        <soap:body parts="return" use="encoded" namespace="http://www.smsbull.com/myNameSpace" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </output>
    </operation>
    <operation name="historyGetMessage">
      <soap:operation soapAction="urn:smsbull#smsbullServer#historyGetMessage"/>
      <input>
        <soap:body parts="msgId" use="encoded" namespace="http://www.smsbull.com/myNameSpace" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </input>
      <output>
        <soap:body parts="return" use="encoded" namespace="http://www.smsbull.com/myNameSpace" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </output>
    </operation>
    <operation name="sendersList">
      <soap:operation soapAction="urn:smsbull#smsbullServer#sendersList"/>
      <input>
        <soap:body use="encoded" namespace="http://www.smsbull.com/myNameSpace" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </input>
      <output>
        <soap:body parts="return" use="encoded" namespace="http://www.smsbull.com/myNameSpace" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
      </output>
    </operation>
  </binding>
  <message name="LoginRequest">
    <part name="login" type="xsd:string"/>
    <part name="pass" type="xsd:string"/>
  </message>
  <message name="LoginResponse">
    <part name="return" type="xsd:boolean"/>
  </message>
  <message name="AccountGetCreditRequest"/>
  <message name="AccountGetCreditResponse">
    <part name="return" type="xsd:int"/>
  </message>
  <message name="SmsSendRequest">
    <part name="receivers" type="tns:ArrayOfstring"/>
    <part name="text" type="xsd:string"/>
    <part name="sender" type="xsd:string"/>
    <part name="hide" type="xsd:boolean"/>
  </message>
  <message name="SmsSendResponse">
    <part name="return" type="xsd:string"/>
  </message>
  <message name="HistoryGetNbMessagesRequest"/>
  <message name="HistoryGetNbMessagesResponse">
    <part name="return" type="xsd:int"/>
  </message>
  <message name="HistoryGetMessagesRequest">
    <part name="offset" type="xsd:int"/>
    <part name="limit" type="xsd:int"/>
  </message>
  <message name="HistoryGetMessagesResponse">
    <part name="return" type="tns:ArrayOfhistoryMessage"/>
  </message>
  <message name="HistoryGetMessageRequest">
    <part name="msgId" type="xsd:string"/>
  </message>
  <message name="HistoryGetMessageResponse">
    <part name="return" type="tns:HistoryMessageDetails"/>
  </message>
  <message name="SendersListRequest"/>
  <message name="SendersListResponse">
    <part name="return" type="tns:ArrayOfstring"/>
  </message>
  <service name="smsbullService">
    <port name="smsbullPort" binding="tns:smsbullBinding">
      <soap:address location="http://www.smsbull.com/webservices.php?_p=smsbull"/>
    </port>
  </service>
</definitions>
