<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:invoices" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:invoices" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <xsd:schema targetNamespace="urn:invoices">
      <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
      <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" />
    </xsd:schema>
  </wsdl:types>
  <wsdl:message name="updateProductsRequest">
    <wsdl:part name="xml" type="xsd:string" />
    <wsdl:part name="hash" type="xsd:string" />
  </wsdl:message>
  <wsdl:message name="updateProductsResponse">
    <wsdl:part name="return" type="xsd:string" />
  </wsdl:message>
  <wsdl:message name="updatePaymentsRequest">
    <wsdl:part name="xml" type="xsd:string" />
    <wsdl:part name="hash" type="xsd:string" />
  </wsdl:message>
  <wsdl:message name="updatePaymentsResponse">
    <wsdl:part name="return" type="xsd:string" />
  </wsdl:message>
  <wsdl:message name="productsRequest">
    <wsdl:part name="hash" type="xsd:string" />
  </wsdl:message>
  <wsdl:message name="productsResponse">
    <wsdl:part name="return" type="xsd:string" />
  </wsdl:message>
  <wsdl:message name="paymentsRequest">
    <wsdl:part name="hash" type="xsd:string" />
  </wsdl:message>
  <wsdl:message name="paymentsResponse">
    <wsdl:part name="return" type="xsd:string" />
  </wsdl:message>
  <wsdl:portType name="invoicesPortType">
    <wsdl:operation name="updateProducts">
      <documentation>Update the products with the ERP Id</documentation>
      <wsdl:input message="tns:updateProductsRequest" />
      <wsdl:output message="tns:updateProductsResponse" />
    </wsdl:operation>
    <wsdl:operation name="updatePayments">
      <documentation>Update the payments with the ERP Id</documentation>
      <wsdl:input message="tns:updatePaymentsRequest" />
      <wsdl:output message="tns:updatePaymentsResponse" />
    </wsdl:operation>
    <wsdl:operation name="products">
      <documentation>Return a list of products</documentation>
      <wsdl:input message="tns:productsRequest" />
      <wsdl:output message="tns:productsResponse" />
    </wsdl:operation>
    <wsdl:operation name="payments">
      <documentation>Return a list of payments</documentation>
      <wsdl:input message="tns:paymentsRequest" />
      <wsdl:output message="tns:paymentsResponse" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="invoicesBinding" type="tns:invoicesPortType">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" />
    <wsdl:operation name="updateProducts">
      <soap:operation soapAction="urn:invoices#updateProducts" style="rpc" />
      <wsdl:input>
        <soap:body use="encoded" namespace="urn:invoices" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="encoded" namespace="urn:invoices" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="updatePayments">
      <soap:operation soapAction="urn:invoices#updatePayments" style="rpc" />
      <wsdl:input>
        <soap:body use="encoded" namespace="urn:invoices" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="encoded" namespace="urn:invoices" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="products">
      <soap:operation soapAction="urn:invoices#products" style="rpc" />
      <wsdl:input>
        <soap:body use="encoded" namespace="urn:invoices" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="encoded" namespace="urn:invoices" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="payments">
      <soap:operation soapAction="urn:invoices#payments" style="rpc" />
      <wsdl:input>
        <soap:body use="encoded" namespace="urn:invoices" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="encoded" namespace="urn:invoices" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="invoices">
    <wsdl:port name="invoicesPort" binding="tns:invoicesBinding">
      <soap:address location="http://pub_central.klicksites.com.br/ws/invoices" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>