<?xml version="1.0"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="IwsFacturaElectronicaservice" targetNamespace="http://tempuri.org/" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="urn:ClasesWsFacturaElectronica">
  <types>
    <xs:schema targetNamespace="urn:ClasesWsFacturaElectronica" xmlns="urn:ClasesWsFacturaElectronica">
      <xs:complexType name="TComprobante">
        <sequence xmlns="http://www.w3.org/2001/XMLSchema">
          <xs:element name="EsAgentePercepcionIIBB" type="xs:string"/>
          <xs:element name="IdComprobante" type="xs:int"/>
          <xs:element name="PtoVenta" type="xs:string"/>
          <xs:element name="IdTipoComprobante" type="xs:int"/>
          <xs:element name="Letra" type="xs:string"/>
          <xs:element name="TipoComprobante" type="xs:string"/>
          <xs:element name="TipoDocumento" type="xs:string"/>
          <xs:element name="NroDocumento" type="xs:string"/>
          <xs:element name="NroComprobante" type="xs:string"/>
          <xs:element name="FechaComprobante" type="xs:anyType"/>
          <xs:element name="ImporteTotal" type="xs:double"/>
          <xs:element name="ImporteNeto" type="xs:double"/>
          <xs:element name="ImporteIva" type="xs:double"/>
          <xs:element name="Exento" type="xs:double"/>
          <xs:element name="NoGravado" type="xs:double"/>
          <xs:element name="RetPer" type="xs:double"/>
          <xs:element name="Percepcion" type="xs:double"/>
          <xs:element name="PercepcionIIBB_BaseImponible" type="xs:double"/>
          <xs:element name="PercepcionIIBB_Percepcion" type="xs:double"/>
          <xs:element name="ListaAlicuotasIVA" type="ns1:ArrayOfAlicuotasIVA"/>
          <xs:element name="ListaItems" type="ns1:ArrayOfItem"/>
        </sequence>
      </xs:complexType>
      <xs:complexType name="ArrayOfAlicuotasIVA">
        <xs:complexContent>
          <xs:restriction base="soapenc:Array">
            <sequence xmlns="http://www.w3.org/2001/XMLSchema"/>
            <xs:attribute ref="soapenc:arrayType" n1:arrayType="ns1:TAlicuota[]" xmlns:n1="http://schemas.xmlsoap.org/wsdl/"/>
          </xs:restriction>
        </xs:complexContent>
      </xs:complexType>
      <xs:complexType name="ArrayOfItem">
        <xs:complexContent>
          <xs:restriction base="soapenc:Array">
            <sequence xmlns="http://www.w3.org/2001/XMLSchema"/>
            <xs:attribute ref="soapenc:arrayType" n1:arrayType="ns1:TItem[]" xmlns:n1="http://schemas.xmlsoap.org/wsdl/"/>
          </xs:restriction>
        </xs:complexContent>
      </xs:complexType>
      <xs:complexType name="TAlicuota">
        <sequence xmlns="http://www.w3.org/2001/XMLSchema">
          <xs:element name="PjeIVA" type="xs:double"/>
          <xs:element name="Gravado" type="xs:double"/>
          <xs:element name="MontoIVA" type="xs:double"/>
        </sequence>
      </xs:complexType>
      <xs:complexType name="TItem">
        <sequence xmlns="http://www.w3.org/2001/XMLSchema">
          <xs:element name="Id_Venta_Articulo" type="xs:int"/>
          <xs:element name="Id_Venta" type="xs:int"/>
          <xs:element name="Id_Articulo" type="xs:int"/>
          <xs:element name="Cantidad" type="xs:double"/>
          <xs:element name="Precio_Costo_Neto" type="xs:double"/>
          <xs:element name="Precio_Neto" type="xs:double"/>
          <xs:element name="Precio_Final" type="xs:double"/>
          <xs:element name="CoeficienteNoGravado" type="xs:double"/>
          <xs:element name="PjeIVA" type="xs:double"/>
        </sequence>
      </xs:complexType>
      <xs:complexType name="TCAE">
        <sequence xmlns="http://www.w3.org/2001/XMLSchema">
          <xs:element name="NumeroComprobante" type="xs:string"/>
          <xs:element name="Numero" type="xs:string"/>
          <xs:element name="Vencimiento" type="xs:string"/>
          <xs:element name="Informado" type="xs:string"/>
          <xs:element name="Codigo" type="xs:int"/>
          <xs:element name="Descripcion" type="xs:string"/>
        </sequence>
      </xs:complexType>
    </xs:schema>
  </types>
  <message name="UltimoNroInformado0Request">
    <part name="pNroPtoVenta" type="xs:int"/>
    <part name="pIdTipoComprobante" type="xs:int"/>
    <part name="pLetraComprobante" type="xs:string"/>
    <part name="pTipoComprobante" type="xs:string"/>
  </message>
  <message name="UltimoNroInformado0Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="SolicitarCAE1Request">
    <part name="pComprobante" type="ns1:TComprobante"/>
  </message>
  <message name="SolicitarCAE1Response">
    <part name="return" type="ns1:TCAE"/>
  </message>
  <message name="ReinformarNroCae2Request">
    <part name="pComprobante" type="ns1:TComprobante"/>
  </message>
  <message name="ReinformarNroCae2Response">
    <part name="return" type="ns1:TCAE"/>
  </message>
  <message name="ConsultarCAE3Request">
    <part name="pNumeroComprobante" type="xs:string"/>
    <part name="pLetraComprobante" type="xs:string"/>
    <part name="pId_TipoComprobante" type="xs:int"/>
  </message>
  <message name="ConsultarCAE3Response">
    <part name="return" type="ns1:TCAE"/>
  </message>
  <message name="ConsultarComprobanteAFIP4Request">
    <part name="pNroPtoVenta" type="xs:int"/>
    <part name="pIdTipoComprobante" type="xs:int"/>
    <part name="pNroComprobante" type="xs:int"/>
    <part name="pLetraComprobante" type="xs:string"/>
    <part name="pTipoComprobante" type="xs:string"/>
  </message>
  <message name="ConsultarComprobanteAFIP4Response">
    <part name="return" type="xs:string"/>
  </message>
  <portType name="IwsFacturaElectronica">
    <operation name="UltimoNroInformado">
      <input message="tns:UltimoNroInformado0Request"/>
      <output message="tns:UltimoNroInformado0Response"/>
    </operation>
    <operation name="SolicitarCAE">
      <input message="tns:SolicitarCAE1Request"/>
      <output message="tns:SolicitarCAE1Response"/>
    </operation>
    <operation name="ReinformarNroCae">
      <input message="tns:ReinformarNroCae2Request"/>
      <output message="tns:ReinformarNroCae2Response"/>
    </operation>
    <operation name="ConsultarCAE">
      <input message="tns:ConsultarCAE3Request"/>
      <output message="tns:ConsultarCAE3Response"/>
    </operation>
    <operation name="ConsultarComprobanteAFIP">
      <input message="tns:ConsultarComprobanteAFIP4Request"/>
      <output message="tns:ConsultarComprobanteAFIP4Response"/>
    </operation>
  </portType>
  <binding name="IwsFacturaElectronicabinding" type="tns:IwsFacturaElectronica">
    <binding xmlns="http://schemas.xmlsoap.org/wsdl/soap/" style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="UltimoNroInformado">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:wsFacturaElectronicaIntf-IwsFacturaElectronica#UltimoNroInformado" style="rpc"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:wsFacturaElectronicaIntf-IwsFacturaElectronica"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:wsFacturaElectronicaIntf-IwsFacturaElectronica"/>
      </output>
    </operation>
    <operation name="SolicitarCAE">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:wsFacturaElectronicaIntf-IwsFacturaElectronica#SolicitarCAE" style="rpc"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:wsFacturaElectronicaIntf-IwsFacturaElectronica"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:wsFacturaElectronicaIntf-IwsFacturaElectronica"/>
      </output>
    </operation>
    <operation name="ReinformarNroCae">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:wsFacturaElectronicaIntf-IwsFacturaElectronica#ReinformarNroCae" style="rpc"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:wsFacturaElectronicaIntf-IwsFacturaElectronica"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:wsFacturaElectronicaIntf-IwsFacturaElectronica"/>
      </output>
    </operation>
    <operation name="ConsultarCAE">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:wsFacturaElectronicaIntf-IwsFacturaElectronica#ConsultarCAE" style="rpc"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:wsFacturaElectronicaIntf-IwsFacturaElectronica"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:wsFacturaElectronicaIntf-IwsFacturaElectronica"/>
      </output>
    </operation>
    <operation name="ConsultarComprobanteAFIP">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:wsFacturaElectronicaIntf-IwsFacturaElectronica#ConsultarComprobanteAFIP" style="rpc"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:wsFacturaElectronicaIntf-IwsFacturaElectronica"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:wsFacturaElectronicaIntf-IwsFacturaElectronica"/>
      </output>
    </operation>
  </binding>
  <service name="IwsFacturaElectronicaservice">
    <port name="IwsFacturaElectronicaPort" binding="tns:IwsFacturaElectronicabinding">
      <address xmlns="http://schemas.xmlsoap.org/wsdl/soap/" location="http://181.168.182.127:8079/soap/IwsFacturaElectronica"/>
    </port>
  </service>
</definitions>

