<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="webservices" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="webservices" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" xmlns:ns1="http://portal.emsesesl.com">
  <wsdl:types>
<xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="webservices" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="validarEFactura">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="cifProveedor" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="ficheroEFactura" nillable="true" type="xsd:base64Binary"/>
<xsd:element maxOccurs="1" minOccurs="0" name="txtFormato" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="validarEFacturaResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="0" name="listaIncidencias" nillable="true" type="ns1:ArrayOfIncidencia"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="registrarEFactura">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="cifProveedor" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="ficheroEFactura" nillable="true" type="xsd:base64Binary"/>
<xsd:element maxOccurs="1" minOccurs="1" name="txtFormato" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="cifEmpresaReceptora" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="fechaFacturaProveedor" nillable="true" type="xsd:dateTime"/>
<xsd:element maxOccurs="1" minOccurs="1" name="numeroFacturaProveedor" nillable="true" type="ns1:NumFactura"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="registrarEFacturaResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="0" name="listaIncidencias" nillable="true" type="ns1:ArrayOfIncidencia"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="consultaEFacturas">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="cifProveedor" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="fechaDesde" nillable="true" type="xsd:dateTime"/>
<xsd:element maxOccurs="1" minOccurs="1" name="fechaHasta" nillable="true" type="xsd:dateTime"/>
<xsd:element maxOccurs="1" minOccurs="1" name="cifEmpresaReceptora" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="situacion" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="consultaEFacturasResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="0" name="listaEFacturas" nillable="true" type="ns1:ArrayOfEFactura"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="consultaFacturas">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="cifProveedor" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="fechaDesde" nillable="true" type="xsd:dateTime"/>
<xsd:element maxOccurs="1" minOccurs="1" name="fechaHasta" nillable="true" type="xsd:dateTime"/>
<xsd:element maxOccurs="1" minOccurs="1" name="cifEmpresaReceptora" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="estado" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="consultaFacturasResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="0" name="listaFacturas" nillable="true" type="ns1:ArrayOfFactura"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://portal.emsesesl.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="Incidencia">
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="codigo" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="descripcion" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ArrayOfIncidencia">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="1" name="codigo" nillable="true" type="ns1:Incidencia"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ArrayOfFactura">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="Factura" nillable="true" type="ns1:Factura"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ArrayOfEFactura">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="EFactura" nillable="true" type="ns1:EFactura"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Factura">
<xsd:sequence>
<xsd:element minOccurs="1" name="numeroDocumento" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="referencia" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="1" name="fechaDocumento" type="xsd:dateTime"/>
<xsd:element minOccurs="0" name="fechaContabilizacion" type="xsd:dateTime"/>
<xsd:element minOccurs="1" name="estado" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="1" name="importeBruto" type="xsd:float"/>
<xsd:element minOccurs="1" name="importeTotal" type="xsd:float"/>
<xsd:element minOccurs="1" name="condicionesPago" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="EFactura">
<xsd:sequence>
<xsd:element minOccurs="1" name="numeroFactura" nillable="true" type="ns1:NumFactura"/>
<xsd:element minOccurs="1" name="fechaFactura" type="xsd:dateTime"/>
<xsd:element minOccurs="1" name="situacion" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="1" name="fechaRegistro" nillable="true" type="xsd:dateTime"/>
<xsd:element minOccurs="1" name="idLoteRegistro" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="1" name="importeBruto" type="xsd:float"/>
<xsd:element minOccurs="1" name="importeTotal" type="xsd:float"/>
<xsd:element minOccurs="0" name="datosFactura" nillable="true" type="ns1:Factura"/>
<xsd:element minOccurs="0" name="listaIncidencias" nillable="true" type="ns1:ArrayOfIncidencia"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
<xsd:complexType name="NumFactura">
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="numero" nillable="true" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="1" name="serie" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
  </wsdl:types>
  <wsdl:message name="validarEFacturaResponse">
    <wsdl:part name="parameters" element="tns:validarEFacturaResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="registrarEFacturaResponse">
    <wsdl:part name="parameters" element="tns:registrarEFacturaResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="consultaEFacturasResponse">
    <wsdl:part name="parameters" element="tns:consultaEFacturasResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="consultaFacturasResponse">
    <wsdl:part name="parameters" element="tns:consultaFacturasResponse">
    </wsdl:part>
  </wsdl:message>  
  <wsdl:message name="validarEFacturaRequest">
    <wsdl:part name="parameters" element="tns:validarEFactura">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="registrarEFacturaRequest">
    <wsdl:part name="parameters" element="tns:registrarEFactura">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="consultaEFacturasRequest">
    <wsdl:part name="parameters" element="tns:consultaEFacturas">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="consultaFacturasRequest">
    <wsdl:part name="parameters" element="tns:consultaFacturas">
    </wsdl:part>
  </wsdl:message>  
  <wsdl:portType name="FacturasWSPortType">
    <wsdl:operation name="validarEFactura">
      <wsdl:input name="validarEFacturaRequest" message="tns:validarEFacturaRequest">
    </wsdl:input>
      <wsdl:output name="validarEFacturaResponse" message="tns:validarEFacturaResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="registrarEFactura">
      <wsdl:input name="registrarEFacturaRequest" message="tns:registrarEFacturaRequest">
    </wsdl:input>
      <wsdl:output name="registrarEFacturaResponse" message="tns:registrarEFacturaResponse">
    </wsdl:output>
    </wsdl:operation>
	<wsdl:operation name="consultaEFacturas">
      <wsdl:input name="consultaEFacturasRequest" message="tns:consultaEFacturasRequest">
    </wsdl:input>
      <wsdl:output name="consultaEFacturasResponse" message="tns:consultaEFacturasResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="consultaFacturas">
      <wsdl:input name="consultaFacturasRequest" message="tns:consultaFacturasRequest">
    </wsdl:input>
      <wsdl:output name="consultaFacturasResponse" message="tns:consultaFacturasResponse">
    </wsdl:output>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="FacturasWSHttpBinding" type="tns:FacturasWSPortType">
    <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="validarEFactura">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="validarEFacturaRequest">
        <wsdlsoap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="validarEFacturaResponse">
        <wsdlsoap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="registrarEFactura">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="registrarEFacturaRequest">
        <wsdlsoap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="registrarEFacturaResponse">
        <wsdlsoap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="consulaEFacturas">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="consulaEFacturasRequest">
        <wsdlsoap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="consulaEFacturasResponse">
        <wsdlsoap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="consulaFacturas">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="consulaFacturasRequest">
        <wsdlsoap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="consulaFacturasResponse">
        <wsdlsoap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
	</wsdl:binding>
  <wsdl:service name="FacturasWS">
    <wsdl:port name="FacturasWSHttpPort" binding="tns:FacturasWSHttpBinding">
      <wsdlsoap:address location="http://www.emsesesl.com/portal/services/FacturasWS"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>
