<?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:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.2sms.com/WebServices/2.2/Complex/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://www.2sms.com/WebServices/2.2/Complex/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">This web service provides methods that allow you to report upon the status of contacts in an emergency.</wsdl:documentation>
  <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://www.2sms.com/WebServices/2.2/Complex/">
      <s:element name="ByAccount">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="Username" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" name="ReportType" type="s:int" />
            <s:element minOccurs="0" maxOccurs="1" name="Shared" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" name="GroupType" type="s:int" />
            <s:element minOccurs="0" maxOccurs="1" name="Group" type="tns:ArrayOfString" />
            <s:element minOccurs="1" maxOccurs="1" name="StartDate" type="s:dateTime" />
            <s:element minOccurs="1" maxOccurs="1" name="EndDate" type="s:dateTime" />
            <s:element minOccurs="0" maxOccurs="1" name="ReportArray" type="tns:ArrayOfArrayOfString" />
            <s:element minOccurs="0" maxOccurs="1" name="ResultText" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="Code" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="ArrayOfString">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="string" nillable="true" type="s:string" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="ArrayOfArrayOfString">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="ArrayOfString" nillable="true" type="tns:ArrayOfString" />
        </s:sequence>
      </s:complexType>
      <s:element name="ByAccountResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="ByAccountResult" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="ReportArray" type="tns:ArrayOfArrayOfString" />
            <s:element minOccurs="0" maxOccurs="1" name="ResultText" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="Code" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="ByNumber">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="Username" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" name="ReportType" type="s:int" />
            <s:element minOccurs="0" maxOccurs="1" name="Shared" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="InboundNumber" type="tns:ArrayOfString" />
            <s:element minOccurs="1" maxOccurs="1" name="StartDate" type="s:dateTime" />
            <s:element minOccurs="0" maxOccurs="1" name="ReportArray" type="tns:ArrayOfArrayOfString" />
            <s:element minOccurs="0" maxOccurs="1" name="ResultText" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="Code" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="ByNumberResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="ByNumberResult" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="ReportArray" type="tns:ArrayOfArrayOfString" />
            <s:element minOccurs="0" maxOccurs="1" name="ResultText" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="Code" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
    </s:schema>
  </wsdl:types>
  <wsdl:message name="ByAccountSoapIn">
    <wsdl:part name="parameters" element="tns:ByAccount" />
  </wsdl:message>
  <wsdl:message name="ByAccountSoapOut">
    <wsdl:part name="parameters" element="tns:ByAccountResponse" />
  </wsdl:message>
  <wsdl:message name="ByNumberSoapIn">
    <wsdl:part name="parameters" element="tns:ByNumber" />
  </wsdl:message>
  <wsdl:message name="ByNumberSoapOut">
    <wsdl:part name="parameters" element="tns:ByNumberResponse" />
  </wsdl:message>
  <wsdl:portType name="EPSoap">
    <wsdl:operation name="ByAccount">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Reports messages received from address book contacts by group name or group ID.&lt;br /&gt;&lt;br /&gt;&lt;table border=1 width=900px&gt;&lt;tr&gt;&lt;td align=center width=135&gt;&lt;h5&gt;Parameter&lt;/h5&gt;&lt;/td&gt;&lt;td align=center&gt;&lt;h5&gt;Notes&lt;/h5&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=top&gt;Username:&lt;/td&gt;&lt;td valign=top&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=top&gt;Password:&lt;/td&gt;&lt;td valign=top&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=top&gt;ReportType:&lt;/td&gt;&lt;td valign=top&gt;Provide a valid integer representing one of the report types. The following shows the integers and their corresponding report types: &lt;ul&gt;&lt;li&gt;10 = ByAccount.&lt;/li&gt;&lt;li&gt;11 = ByAccountBetweenDates.&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=top&gt;Shared:&lt;/td&gt;&lt;td valign=top&gt;Provide a string value of 'True' or 'False'. Set this parameter to 'True' if you are stating that you are using a shared 2-way number. Set this parameter to 'False' if you are stating that you are using a private 2-way number.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=top&gt;GroupType:&lt;/td&gt;&lt;td valign=top&gt;Provide a valid integer group type. This can be set to one of the following: &lt;ul&gt;&lt;li&gt;1 = GroupID.&lt;/li&gt;&lt;li&gt;2 = GroupName.&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=top&gt;Group:&lt;/td&gt;&lt;td valign=top&gt;Provide an array of strings containing valid group names or group IDs from your address book.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=top&gt;StartDate:&lt;/td&gt;&lt;td valign=top&gt;Provide a valid date/time object that represents the start date/time of the report. If you select the report type ByAccount you can set this parameter to null.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=top&gt;EndDate:&lt;/td&gt;&lt;td valign=top&gt;Provide a valid date/time object that represents the end date/time of the report. If you select the report type ByAccount you can set this parameter to null.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=top&gt;ReportArray:&lt;/td&gt;&lt;td valign=top&gt;Provide a string jagged array (e.g. string[][]) output parameter. This will be populated with elements containing information about all of contacts that have sent a message to the emergency planning number.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=top&gt;ResultText:&lt;/td&gt;&lt;td valign=top&gt;E.g. 3 records were returned.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=top&gt;Code:&lt;/td&gt;&lt;td valign=top&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</wsdl:documentation>
      <wsdl:input message="tns:ByAccountSoapIn" />
      <wsdl:output message="tns:ByAccountSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="ByNumber">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Reports messages received from a string array of specified number since a specified date/time.&lt;br /&gt;&lt;br /&gt;&lt;table border=1 width=900px&gt;&lt;tr&gt;&lt;td align=center width=135&gt;&lt;h5&gt;Parameter&lt;/h5&gt;&lt;/td&gt;&lt;td align=center&gt;&lt;h5&gt;Notes&lt;/h5&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=top&gt;Username:&lt;/td&gt;&lt;td valign=top&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=top&gt;Password:&lt;/td&gt;&lt;td valign=top&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=top&gt;ReportType:&lt;/td&gt;&lt;td valign=top&gt;Provide a valid integer representing one of the report types. The following shows the integers and their corresponding report types: &lt;ul&gt;&lt;li&gt;12 = ByNumber.&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=top&gt;Shared:&lt;/td&gt;&lt;td valign=top&gt;Provide a boolean string value of 'True' or 'False'. Set this parameter to 'True' if you are stating that you are using a shared 2-way number. Set this parameter to 'False' if you are stating that you are using a private 2-way number.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=top&gt;InboundNumber:&lt;/td&gt;&lt;td valign=top&gt;Provide an array of strings containing valid mobile device numbers. This should be a mobile device number you think has sent messages to your 2-way number.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=top&gt;StartDate:&lt;/td&gt;&lt;td valign=top&gt;Provide a valid date/time object that represents the start date/time of the report.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=top&gt;ReportArray:&lt;/td&gt;&lt;td valign=top&gt;Provide a string jagged array (e.g. string[][]) output parameter. This will be populated with elements containing information about all of contacts that have sent a message to the emergency planning number.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=top&gt;ResultText:&lt;/td&gt;&lt;td valign=top&gt;E.g. 3 records were returned.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=top&gt;Code:&lt;/td&gt;&lt;td valign=top&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</wsdl:documentation>
      <wsdl:input message="tns:ByNumberSoapIn" />
      <wsdl:output message="tns:ByNumberSoapOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="EPSoap" type="tns:EPSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="ByAccount">
      <soap:operation soapAction="http://www.2sms.com/WebServices/2.2/Complex/ByAccount" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="ByNumber">
      <soap:operation soapAction="http://www.2sms.com/WebServices/2.2/Complex/ByNumber" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="EPSoap12" type="tns:EPSoap">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="ByAccount">
      <soap12:operation soapAction="http://www.2sms.com/WebServices/2.2/Complex/ByAccount" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="ByNumber">
      <soap12:operation soapAction="http://www.2sms.com/WebServices/2.2/Complex/ByNumber" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="EP">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">This web service provides methods that allow you to report upon the status of contacts in an emergency.</wsdl:documentation>
    <wsdl:port name="EPSoap" binding="tns:EPSoap">
      <soap:address location="https://www.2sms.com/WebServices/2.2/Complex/EP.asmx" />
    </wsdl:port>
    <wsdl:port name="EPSoap12" binding="tns:EPSoap12">
      <soap12:address location="https://www.2sms.com/WebServices/2.2/Complex/EP.asmx" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>