<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="urn:WashOut" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="retencion" targetNamespace="urn:WashOut">
  <types>
    <schema targetNamespace="urn:WashOut" xmlns="http://www.w3.org/2001/XMLSchema">
      <xsd:complexType name="timbrar_retencion_result">
        <xsd:sequence>
          <xsd:element name="xml" type="xsd:string" nillable="true"/>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="uuid">
        <xsd:sequence>
          <xsd:element name="Uuid" type="tns:Uuid" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="Uuid">
        <xsd:sequence>
          <xsd:element name="uuid" type="xsd:string" nillable="true"/>
          <xsd:element name="motivo" type="xsd:string" nillable="true"/>
          <xsd:element name="folio_sustituto" type="xsd:string" nillable="true"/>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="cancelar_retencion_result">
        <xsd:sequence>
          <xsd:element name="acuse_cancelacion" type="xsd:string" nillable="true"/>
          <xsd:element name="comprobantes_cancelados" type="xsd:string" nillable="true"/>
          <xsd:element name="estatus_cancelacion" type="xsd:string" nillable="true"/>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="cancelar_masivo_result">
        <xsd:sequence>
          <xsd:element name="acuse_cancelacion" type="xsd:string" nillable="true"/>
          <xsd:element name="folio_seguimiento" type="xsd:string" nillable="true"/>
          <xsd:element name="estatus_cancelacion" type="xsd:string" nillable="true"/>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="consulta_acuse_cancelacion_result">
        <xsd:sequence>
          <xsd:element name="acuse_cancelacion" type="xsd:string" nillable="true"/>
          <xsd:element name="comprobantes_cancelados" type="xsd:string" nillable="true"/>
        </xsd:sequence>
      </xsd:complexType>
    </schema>
  </types>
  <message name="timbrar_retencion">
    <part name="username" type="xsd:string" xsi:nillable="true"/>
    <part name="password" type="xsd:string" xsi:nillable="true"/>
    <part name="sxml" type="xsd:string" xsi:nillable="true"/>
  </message>
  <message name="timbrar_retencion_response">
    <part name="timbrar_retencion_result" type="tns:timbrar_retencion_result" xsi:nillable="true"/>
  </message>
  <message name="cancelar_retencion">
    <part name="username" type="xsd:string" xsi:nillable="true"/>
    <part name="password" type="xsd:string" xsi:nillable="true"/>
    <part name="rfcemisor" type="xsd:string" xsi:nillable="true"/>
    <part name="uuids" type="tns:uuid" xsi:nillable="true"/>
    <part name="cert_pem" type="xsd:string" xsi:nillable="true"/>
    <part name="llave_pem" type="xsd:string" xsi:nillable="true"/>
  </message>
  <message name="cancelar_retencion_response">
    <part name="cancelar_retencion_result" type="tns:cancelar_retencion_result" xsi:nillable="true"/>
  </message>
  <message name="cancelar_masivo">
    <part name="username" type="xsd:string" xsi:nillable="true"/>
    <part name="password" type="xsd:string" xsi:nillable="true"/>
    <part name="rfcemisor" type="xsd:string" xsi:nillable="true"/>
    <part name="uuids" type="tns:uuid" xsi:nillable="true"/>
    <part name="cert_pem" type="xsd:string" xsi:nillable="true"/>
    <part name="llave_pem" type="xsd:string" xsi:nillable="true"/>
  </message>
  <message name="cancelar_masivo_response">
    <part name="cancelar_masivo_result" type="tns:cancelar_masivo_result" xsi:nillable="true"/>
  </message>
  <message name="consulta_acuse_cancelacion">
    <part name="username" type="xsd:string" xsi:nillable="true"/>
    <part name="password" type="xsd:string" xsi:nillable="true"/>
    <part name="folioSeguimiento" type="xsd:string" xsi:nillable="true"/>
  </message>
  <message name="consulta_acuse_cancelacion_response">
    <part name="consulta_acuse_cancelacion_result" type="tns:consulta_acuse_cancelacion_result" xsi:nillable="true"/>
  </message>
  <portType name="retencion_port">
    <operation name="timbrar_retencion">
      <input message="tns:timbrar_retencion"/>
      <output message="tns:timbrar_retencion_response"/>
    </operation>
    <operation name="cancelar_retencion">
      <input message="tns:cancelar_retencion"/>
      <output message="tns:cancelar_retencion_response"/>
    </operation>
    <operation name="cancelar_masivo">
      <input message="tns:cancelar_masivo"/>
      <output message="tns:cancelar_masivo_response"/>
    </operation>
    <operation name="consulta_acuse_cancelacion">
      <input message="tns:consulta_acuse_cancelacion"/>
      <output message="tns:consulta_acuse_cancelacion_response"/>
    </operation>
  </portType>
  <binding name="retencion_binding" type="tns:retencion_port">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="timbrar_retencion">
      <soap:operation soapAction="timbrar_retencion"/>
      <input>
        <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WashOut"/>
      </input>
      <output>
        <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WashOut"/>
      </output>
    </operation>
    <operation name="cancelar_retencion">
      <soap:operation soapAction="cancelar_retencion"/>
      <input>
        <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WashOut"/>
      </input>
      <output>
        <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WashOut"/>
      </output>
    </operation>
    <operation name="cancelar_masivo">
      <soap:operation soapAction="cancelar_masivo"/>
      <input>
        <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WashOut"/>
      </input>
      <output>
        <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WashOut"/>
      </output>
    </operation>
    <operation name="consulta_acuse_cancelacion">
      <soap:operation soapAction="consulta_acuse_cancelacion"/>
      <input>
        <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WashOut"/>
      </input>
      <output>
        <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:WashOut"/>
      </output>
    </operation>
  </binding>
  <service name="service">
    <port name="retencion_port" binding="tns:retencion_binding">
      <soap:address location="https://staging.ws.timbox.com.mx/retencion/action"/>
    </port>
  </service>
</definitions>
