<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 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:tns="urn:wsuady"
             xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
             xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:wsuady">
    <types>
        <xsd:schema targetNamespace="urn:wsuady">
            <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
            <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
            <xsd:complexType name="item_docto">
                <xsd:all>
                    <xsd:element name="uuid" type="xsd:string"/>
                    <xsd:element name="estado" type="xsd:string" minOccurs="0"/>
                    <xsd:element name="estado_sat" type="xsd:string" minOccurs="0"/>
                    <xsd:element name="tipo_comprobante" type="xsd:string" minOccurs="0"/>
                    <xsd:element name="dependencia" type="xsd:string" minOccurs="0"/>
                    <xsd:element name="xml" type="xsd:string" minOccurs="0"/>
                </xsd:all>
            </xsd:complexType>
            <xsd:complexType name="lista_doctos">
                <xsd:complexContent>
                    <xsd:restriction base="SOAP-ENC:Array">
                        <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:item_docto[]"/>
                    </xsd:restriction>
                </xsd:complexContent>
            </xsd:complexType>
            <xsd:complexType name="response_gral">
                <xsd:all>
                    <xsd:element name="codigo" type="xsd:int"/>
                    <xsd:element name="mensaje" type="xsd:string"/>
                    <xsd:element name="uuid" type="xsd:string" minOccurs="0"/>
                    <xsd:element name="xml" type="xsd:string" minOccurs="0"/>
                    <xsd:element name="evidencia" type="xsd:string" minOccurs="0"/>
                    <xsd:element name="documentos" type="tns:lista_doctos" minOccurs="0"/>
                    <xsd:element name="pertenecen_a_otra_dependencia" type="tns:lista_doctos" minOccurs="0"/>
                </xsd:all>
            </xsd:complexType>
        </xsd:schema>
    </types>
    <message name="consultar">
        <part name="usuario" type="xsd:string"/>
        <part name="contrasena" type="xsd:string"/>
        <part name="dependencia" type="xsd:string"/>
        <part name="uuids" type="xsd:string"/>
    </message>
    <message name="consultar_cfdiResponse">
        <part name="return" type="tns:response_gral"/>
    </message>
    <portType name="wsuadyPortType">
        <operation name="consultar">
            <documentation>Consulta de comprobante</documentation>
            <input message="tns:consultar"/>
            <output message="tns:consultar_cfdiResponse"/>
        </operation>
    </portType>
    <binding name="wsuadyBinding" type="tns:wsuadyPortType">
        <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="consultar">
            <soap:operation soapAction="urn:wsuady#consultar" style="rpc"/>
            <input>
                <soap:body use="encoded" namespace="urn:wsuady"
                           encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </input>
            <output>
                <soap:body use="encoded" namespace="urn:wsuady"
                           encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </output>
        </operation>
    </binding>
    <service name="wsuady">
        <port name="wsuadyPort" binding="tns:wsuadyBinding">
            <soap:address location="https://internal.ws-test.kihone.com/servicio.php"/>
        </port>
    </service>
</definitions>
