<?php echo "<?xml version='1.0' encoding='UTF-8'?>";?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/" 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:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://tempuri.org/">
  <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
      <s:element name="revenueReport">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="username" type="s:string"/>
            <s:element minOccurs="1" maxOccurs="1" name="password" type="s:string"/>
            <s:element minOccurs="1" maxOccurs="1" name="fromDate" type="s:string"/>
            <s:element minOccurs="0" maxOccurs="1" name="toDate" type="s:string"/>            
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="revenueReportResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="return" type="s:string"/>
            <s:element minOccurs="0" maxOccurs="1" name="success" type="s:string"/>
            <s:element minOccurs="0" maxOccurs="1" name="receiveTime" type="s:string"/>
          </s:sequence>
        </s:complexType>       
      </s:element>
      <!-- subscribersReport -->
      <s:element name="subscribersReport">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="username" type="s:string"/>
            <s:element minOccurs="1" maxOccurs="1" name="password" type="s:string"/>
            <s:element minOccurs="1" maxOccurs="1" name="fromDate" type="s:string"/>
            <s:element minOccurs="0" maxOccurs="1" name="toDate" type="s:string"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="subscribersReportResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="return" type="s:string"/>
            <s:element minOccurs="0" maxOccurs="1" name="success" type="s:string"/>
            <s:element minOccurs="0" maxOccurs="1" name="receiveTime" type="s:string"/>
          </s:sequence>
        </s:complexType>
      </s:element>
    </s:schema>
  </wsdl:types>
  <wsdl:message name="revenueReportSoapIn">
    <wsdl:part name="parameters" element="tns:revenueReport"/>
  </wsdl:message>
  <wsdl:message name="revenueReportSoapOut">
    <wsdl:part name="parameters" element="tns:revenueReportResponse"/>
  </wsdl:message>
  
  <wsdl:message name="subscribersReportSoapIn">
    <wsdl:part name="parameters" element="tns:subscribersReport"/>
  </wsdl:message>
  <wsdl:message name="subscribersReportSoapOut">
    <wsdl:part name="parameters" element="tns:subscribersReportResponse"/>
  </wsdl:message>
      
  <wsdl:portType name="reportReceiver">
    <wsdl:operation name="revenueReport">
      <wsdl:input message="tns:revenueReportSoapIn"/>
      <wsdl:output message="tns:revenueReportSoapOut"/>
    </wsdl:operation>
    <wsdl:operation name="subscribersReport">
      <wsdl:input message="tns:subscribersReportSoapIn"/>
      <wsdl:output message="tns:subscribersReportSoapOut"/>
    </wsdl:operation>    
  </wsdl:portType>
  <!-- subscribersReport -->

  <wsdl:binding name="reportReceiver" type="tns:reportReceiver">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="revenueReport">
      <soap:operation soapAction="http://tempuri.org/revenueReport" style="document"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>    
    <wsdl:operation name="subscribersReport">
      <soap:operation soapAction="http://tempuri.org/subscribersReport" style="document"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>    
  </wsdl:binding>
  <wsdl:service name="reportReceiver">
    <wsdl:port name="reportReceiver" binding="tns:reportReceiver">
      <soap:address location="<?php echo base_url();?>violetservice/report/getreport"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>