<definitions name="BillingServiceWSService" targetNamespace="http://ws.external.push.adapter.billing.integration.iptv.oss.cti.ru/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://ws.external.push.adapter.billing.integration.iptv.oss.cti.ru/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 <types>
  <xs:schema targetNamespace="http://ws.external.push.adapter.billing.integration.iptv.oss.cti.ru/" version="1.0" xmlns:tns="http://ws.external.push.adapter.billing.integration.iptv.oss.cti.ru/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
   <xs:element name="BillingException" type="tns:BillingException"/>
   <xs:element name="queryAvailableServicesByAN" type="tns:queryAvailableServicesByAN"/>
   <xs:element name="queryAvailableServicesByANAndST" type="tns:queryAvailableServicesByANAndST"/>
   <xs:element name="queryAvailableServicesByANAndSTResponse" type="tns:queryAvailableServicesByANAndSTResponse"/>
   <xs:element name="queryAvailableServicesByANResponse" type="tns:queryAvailableServicesByANResponse"/>
   <xs:element name="queryBillingEntries" type="tns:queryBillingEntries"/>
   <xs:element name="queryBillingEntriesByANAndTF" type="tns:queryBillingEntriesByANAndTF"/>
   <xs:element name="queryBillingEntriesByANAndTFResponse" type="tns:queryBillingEntriesByANAndTFResponse"/>
   <xs:element name="queryBillingEntriesResponse" type="tns:queryBillingEntriesResponse"/>
   <xs:element name="queryCustomerAccountInfo" type="tns:queryCustomerAccountInfo"/>
   <xs:element name="queryCustomerAccountInfoResponse" type="tns:queryCustomerAccountInfoResponse"/>
   <xs:element name="queryReserve" type="tns:queryReserve"/>
   <xs:element name="queryReserveResponse" type="tns:queryReserveResponse"/>
   <xs:element name="querySummByService" type="tns:querySummByService"/>
   <xs:element name="querySummByServiceResponse" type="tns:querySummByServiceResponse"/>
   <xs:complexType name="queryBillingEntries">
    <xs:sequence>
     <xs:element minOccurs="0" name="arg0" type="xs:string"/>
     <xs:element minOccurs="0" name="arg1" type="tns:serviceSpecification"/>
     <xs:element minOccurs="0" name="arg2" type="tns:timeFrame"/>
    </xs:sequence>
   </xs:complexType>
   <xs:complexType name="serviceSpecification">
    <xs:sequence>
     <xs:element minOccurs="0" name="description" type="xs:string"/>
     <xs:element minOccurs="0" name="id" type="xs:long"/>
     <xs:element minOccurs="0" name="name" type="xs:string"/>
     <xs:element name="status" type="xs:int"/>
     <xs:element minOccurs="0" name="type" type="xs:string"/>
    </xs:sequence>
   </xs:complexType>
   <xs:complexType name="timeFrame">
    <xs:sequence>
     <xs:element minOccurs="0" name="endTime" type="xs:dateTime"/>
     <xs:element minOccurs="0" name="startTime" type="xs:dateTime"/>
    </xs:sequence>
   </xs:complexType>
   <xs:complexType name="queryBillingEntriesResponse">
    <xs:sequence>
     <xs:element maxOccurs="unbounded" minOccurs="0" name="return" type="tns:billingEntry"/>
    </xs:sequence>
   </xs:complexType>
   <xs:complexType name="billingEntry">
    <xs:sequence>
     <xs:element minOccurs="0" name="accountNumber" type="xs:string"/>
     <xs:element minOccurs="0" name="date" type="xs:dateTime"/>
     <xs:element minOccurs="0" name="description" type="xs:string"/>
     <xs:element minOccurs="0" name="id" type="xs:long"/>
     <xs:element minOccurs="0" name="price" type="xs:double"/>
     <xs:element minOccurs="0" name="resource" type="tns:resource"/>
     <xs:element minOccurs="0" name="service" type="tns:service"/>
    </xs:sequence>
   </xs:complexType>
   <xs:complexType name="resource">
    <xs:sequence>
     <xs:element minOccurs="0" name="description" type="xs:string"/>
     <xs:element minOccurs="0" name="id" type="xs:long"/>
     <xs:element minOccurs="0" name="name" type="xs:string"/>
    </xs:sequence>
   </xs:complexType>
   <xs:complexType name="service">
    <xs:sequence>
     <xs:element name="additionalParameters">
      <xs:complexType>
       <xs:sequence>
        <xs:element maxOccurs="unbounded" minOccurs="0" name="entry">
         <xs:complexType>
          <xs:sequence>
           <xs:element minOccurs="0" name="key" type="xs:anyType"/>
           <xs:element minOccurs="0" name="value" type="xs:anyType"/>
          </xs:sequence>
         </xs:complexType>
        </xs:element>
       </xs:sequence>
      </xs:complexType>
     </xs:element>
     <xs:element minOccurs="0" name="description" type="xs:string"/>
     <xs:element minOccurs="0" name="id" type="xs:long"/>
     <xs:element minOccurs="0" name="name" type="xs:string"/>
     <xs:element minOccurs="0" name="resource" type="tns:resource"/>
     <xs:element minOccurs="0" name="serviceSpecification" type="tns:serviceSpecification"/>
     <xs:element minOccurs="0" name="validFor" type="tns:timeFrame"/>
    </xs:sequence>
   </xs:complexType>
   <xs:complexType name="BillingException">
    <xs:sequence>
     <xs:element minOccurs="0" name="message" type="xs:string"/>
    </xs:sequence>
   </xs:complexType>
   <xs:complexType name="queryReserve">
    <xs:sequence>
     <xs:element minOccurs="0" name="arg0" type="xs:string"/>
     <xs:element minOccurs="0" name="arg1" type="tns:timeFrame"/>
    </xs:sequence>
   </xs:complexType>
   <xs:complexType name="queryReserveResponse">
    <xs:sequence>
     <xs:element maxOccurs="unbounded" minOccurs="0" name="return" type="tns:billingEntry"/>
    </xs:sequence>
   </xs:complexType>
   <xs:complexType name="querySummByService">
    <xs:sequence>
     <xs:element minOccurs="0" name="arg0" type="xs:string"/>
     <xs:element minOccurs="0" name="arg1" type="tns:serviceSpecification"/>
     <xs:element minOccurs="0" name="arg2" type="tns:timeFrame"/>
    </xs:sequence>
   </xs:complexType>
   <xs:complexType name="querySummByServiceResponse">
    <xs:sequence>
     <xs:element minOccurs="0" name="return" type="xs:decimal"/>
    </xs:sequence>
   </xs:complexType>
   <xs:complexType name="queryCustomerAccountInfo">
    <xs:sequence>
     <xs:element minOccurs="0" name="arg0" type="xs:string"/>
    </xs:sequence>
   </xs:complexType>
   <xs:complexType name="queryCustomerAccountInfoResponse">
    <xs:sequence>
     <xs:element minOccurs="0" name="return" type="tns:customerAccountInfo"/>
    </xs:sequence>
   </xs:complexType>
   <xs:complexType name="customerAccountInfo">
    <xs:sequence>
     <xs:element minOccurs="0" name="accountNumber" type="xs:string"/>
     <xs:element name="balance" type="xs:double"/>
     <xs:element name="creditLimit" type="xs:double"/>
    </xs:sequence>
   </xs:complexType>
   <xs:complexType name="queryAvailableServicesByAN">
    <xs:sequence>
     <xs:element minOccurs="0" name="arg0" type="xs:string"/>
    </xs:sequence>
   </xs:complexType>
   <xs:complexType name="queryAvailableServicesByANResponse">
    <xs:sequence>
     <xs:element maxOccurs="unbounded" minOccurs="0" name="return" type="tns:serviceSpecification"/>
    </xs:sequence>
   </xs:complexType>
   <xs:complexType name="queryAvailableServicesByANAndST">
    <xs:sequence>
     <xs:element minOccurs="0" name="arg0" type="xs:string"/>
     <xs:element minOccurs="0" name="arg1" type="xs:string"/>
    </xs:sequence>
   </xs:complexType>
   <xs:complexType name="queryAvailableServicesByANAndSTResponse">
    <xs:sequence>
     <xs:element maxOccurs="unbounded" minOccurs="0" name="return" type="tns:serviceSpecification"/>
    </xs:sequence>
   </xs:complexType>
   <xs:complexType name="queryBillingEntriesByANAndTF">
    <xs:sequence>
     <xs:element minOccurs="0" name="arg0" type="xs:string"/>
     <xs:element minOccurs="0" name="arg1" type="tns:timeFrame"/>
    </xs:sequence>
   </xs:complexType>
   <xs:complexType name="queryBillingEntriesByANAndTFResponse">
    <xs:sequence>
     <xs:element maxOccurs="unbounded" minOccurs="0" name="return" type="tns:billingEntry"/>
    </xs:sequence>
   </xs:complexType>
  </xs:schema>
 </types>
 <message name="BillingServiceWS_queryAvailableServicesByAN">
  <part element="tns:queryAvailableServicesByAN" name="queryAvailableServicesByAN"/>
 </message>
 <message name="BillingServiceWS_querySummByServiceResponse">
  <part element="tns:querySummByServiceResponse" name="querySummByServiceResponse"/>
 </message>
 <message name="BillingServiceWS_queryCustomerAccountInfoResponse">
  <part element="tns:queryCustomerAccountInfoResponse" name="queryCustomerAccountInfoResponse"/>
 </message>
 <message name="BillingException">
  <part element="tns:BillingException" name="BillingException"/>
 </message>
 <message name="BillingServiceWS_queryAvailableServicesByANAndSTResponse">
  <part element="tns:queryAvailableServicesByANAndSTResponse" name="queryAvailableServicesByANAndSTResponse"/>
 </message>
 <message name="BillingServiceWS_queryBillingEntriesResponse">
  <part element="tns:queryBillingEntriesResponse" name="queryBillingEntriesResponse"/>
 </message>
 <message name="BillingServiceWS_querySummByService">
  <part element="tns:querySummByService" name="querySummByService"/>
 </message>
 <message name="BillingServiceWS_queryBillingEntriesByANAndTFResponse">
  <part element="tns:queryBillingEntriesByANAndTFResponse" name="queryBillingEntriesByANAndTFResponse"/>
 </message>
 <message name="BillingServiceWS_queryReserveResponse">
  <part element="tns:queryReserveResponse" name="queryReserveResponse"/>
 </message>
 <message name="BillingServiceWS_queryAvailableServicesByANAndST">
  <part element="tns:queryAvailableServicesByANAndST" name="queryAvailableServicesByANAndST"/>
 </message>
 <message name="BillingServiceWS_queryBillingEntries">
  <part element="tns:queryBillingEntries" name="queryBillingEntries"/>
 </message>
 <message name="BillingServiceWS_queryReserve">
  <part element="tns:queryReserve" name="queryReserve"/>
 </message>
 <message name="BillingServiceWS_queryBillingEntriesByANAndTF">
  <part element="tns:queryBillingEntriesByANAndTF" name="queryBillingEntriesByANAndTF"/>
 </message>
 <message name="BillingServiceWS_queryAvailableServicesByANResponse">
  <part element="tns:queryAvailableServicesByANResponse" name="queryAvailableServicesByANResponse"/>
 </message>
 <message name="BillingServiceWS_queryCustomerAccountInfo">
  <part element="tns:queryCustomerAccountInfo" name="queryCustomerAccountInfo"/>
 </message>
 <portType name="BillingServiceWS">
  <operation name="queryAvailableServicesByAN" parameterOrder="queryAvailableServicesByAN">
   <input message="tns:BillingServiceWS_queryAvailableServicesByAN"/>
   <output message="tns:BillingServiceWS_queryAvailableServicesByANResponse"/>
   <fault message="tns:BillingException" name="BillingException"/>
  </operation>
  <operation name="queryAvailableServicesByANAndST" parameterOrder="queryAvailableServicesByANAndST">
   <input message="tns:BillingServiceWS_queryAvailableServicesByANAndST"/>
   <output message="tns:BillingServiceWS_queryAvailableServicesByANAndSTResponse"/>
   <fault message="tns:BillingException" name="BillingException"/>
  </operation>
  <operation name="queryBillingEntries" parameterOrder="queryBillingEntries">
   <input message="tns:BillingServiceWS_queryBillingEntries"/>
   <output message="tns:BillingServiceWS_queryBillingEntriesResponse"/>
   <fault message="tns:BillingException" name="BillingException"/>
  </operation>
  <operation name="queryBillingEntriesByANAndTF" parameterOrder="queryBillingEntriesByANAndTF">
   <input message="tns:BillingServiceWS_queryBillingEntriesByANAndTF"/>
   <output message="tns:BillingServiceWS_queryBillingEntriesByANAndTFResponse"/>
   <fault message="tns:BillingException" name="BillingException"/>
  </operation>
  <operation name="queryCustomerAccountInfo" parameterOrder="queryCustomerAccountInfo">
   <input message="tns:BillingServiceWS_queryCustomerAccountInfo"/>
   <output message="tns:BillingServiceWS_queryCustomerAccountInfoResponse"/>
   <fault message="tns:BillingException" name="BillingException"/>
  </operation>
  <operation name="queryReserve" parameterOrder="queryReserve">
   <input message="tns:BillingServiceWS_queryReserve"/>
   <output message="tns:BillingServiceWS_queryReserveResponse"/>
   <fault message="tns:BillingException" name="BillingException"/>
  </operation>
  <operation name="querySummByService" parameterOrder="querySummByService">
   <input message="tns:BillingServiceWS_querySummByService"/>
   <output message="tns:BillingServiceWS_querySummByServiceResponse"/>
   <fault message="tns:BillingException" name="BillingException"/>
  </operation>
 </portType>
 <binding name="BillingServiceWSBinding" type="tns:BillingServiceWS">
  <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
  <operation name="queryAvailableServicesByAN">
   <soap:operation soapAction=""/>
   <input>
    <soap:body use="literal"/>
   </input>
   <output>
    <soap:body use="literal"/>
   </output>
   <fault name="BillingException">
    <soap:fault name="BillingException" use="literal"/>
   </fault>
  </operation>
  <operation name="queryAvailableServicesByANAndST">
   <soap:operation soapAction=""/>
   <input>
    <soap:body use="literal"/>
   </input>
   <output>
    <soap:body use="literal"/>
   </output>
   <fault name="BillingException">
    <soap:fault name="BillingException" use="literal"/>
   </fault>
  </operation>
  <operation name="queryBillingEntries">
   <soap:operation soapAction=""/>
   <input>
    <soap:body use="literal"/>
   </input>
   <output>
    <soap:body use="literal"/>
   </output>
   <fault name="BillingException">
    <soap:fault name="BillingException" use="literal"/>
   </fault>
  </operation>
  <operation name="queryBillingEntriesByANAndTF">
   <soap:operation soapAction=""/>
   <input>
    <soap:body use="literal"/>
   </input>
   <output>
    <soap:body use="literal"/>
   </output>
   <fault name="BillingException">
    <soap:fault name="BillingException" use="literal"/>
   </fault>
  </operation>
  <operation name="queryCustomerAccountInfo">
   <soap:operation soapAction=""/>
   <input>
    <soap:body use="literal"/>
   </input>
   <output>
    <soap:body use="literal"/>
   </output>
   <fault name="BillingException">
    <soap:fault name="BillingException" use="literal"/>
   </fault>
  </operation>
  <operation name="queryReserve">
   <soap:operation soapAction=""/>
   <input>
    <soap:body use="literal"/>
   </input>
   <output>
    <soap:body use="literal"/>
   </output>
   <fault name="BillingException">
    <soap:fault name="BillingException" use="literal"/>
   </fault>
  </operation>
  <operation name="querySummByService">
   <soap:operation soapAction=""/>
   <input>
    <soap:body use="literal"/>
   </input>
   <output>
    <soap:body use="literal"/>
   </output>
   <fault name="BillingException">
    <soap:fault name="BillingException" use="literal"/>
   </fault>
  </operation>
 </binding>
 <service name="BillingServiceWSService">
  <port binding="tns:BillingServiceWSBinding" name="BillingServiceWSPort">
   <soap:address location="http://82.199.96.130:8089"/>
  </port>
 </service>
</definitions>
