<?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="manifiesto" targetNamespace="urn:WashOut">
  <types>
    <schema targetNamespace="urn:WashOut" xmlns="http://www.w3.org/2001/XMLSchema">
      <xsd:complexType name="firma_manifiesto_result">
        <xsd:sequence>
          <xsd:element name="code" type="xsd:string" nillable="true"/>
          <xsd:element name="message" type="xsd:string" nillable="true"/>
          <xsd:element name="manifiesto" type="tns:manifiesto" nillable="true"/>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="manifiesto">
        <xsd:sequence>
          <xsd:element name="encabezado" type="tns:encabezado" nillable="true"/>
          <xsd:element name="contenido" type="xsd:string" nillable="true"/>
          <xsd:element name="firma" type="xsd:string" nillable="true"/>
          <xsd:element name="cadena_original" type="xsd:string" nillable="true"/>
          <xsd:element name="certificado" type="tns:certificado" nillable="true"/>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="encabezado">
        <xsd:sequence>
          <xsd:element name="rfc" type="xsd:string" nillable="true"/>
          <xsd:element name="fecha" type="xsd:string" nillable="true"/>
          <xsd:element name="asunto" type="xsd:string" nillable="true"/>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="certificado">
        <xsd:sequence>
          <xsd:element name="emito_a" type="xsd:string" nillable="true"/>
          <xsd:element name="emito_por" type="xsd:string" nillable="true"/>
          <xsd:element name="no_serie" type="xsd:string" nillable="true"/>
          <xsd:element name="validez" type="xsd:string" nillable="true"/>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="firmar_manifiesto_sello_result">
        <xsd:sequence>
          <xsd:element name="code" type="xsd:string" nillable="true"/>
          <xsd:element name="message" type="xsd:string" nillable="true"/>
          <xsd:element name="manifiesto_sello" type="tns:manifiesto_sello" nillable="true"/>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="manifiesto_sello">
        <xsd:sequence>
          <xsd:element name="encabezado_firma" type="tns:encabezado_firma" nillable="true"/>
          <xsd:element name="contenido" type="xsd:string" nillable="true"/>
          <xsd:element name="firma" type="xsd:string" nillable="true"/>
          <xsd:element name="cadena_original" type="xsd:string" nillable="true"/>
          <xsd:element name="certificado_firma" type="tns:certificado_firma" nillable="true"/>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="encabezado_firma">
        <xsd:sequence>
          <xsd:element name="rfc" type="xsd:string" nillable="true"/>
          <xsd:element name="fecha" type="xsd:string" nillable="true"/>
          <xsd:element name="asunto" type="xsd:string" nillable="true"/>
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="certificado_firma">
        <xsd:sequence>
          <xsd:element name="emito_a" type="xsd:string" nillable="true"/>
          <xsd:element name="emito_por" type="xsd:string" nillable="true"/>
          <xsd:element name="no_serie" type="xsd:string" nillable="true"/>
          <xsd:element name="validez" type="xsd:string" nillable="true"/>
        </xsd:sequence>
      </xsd:complexType>
    </schema>
  </types>
  <message name="firmar_manifiesto">
    <part name="username" type="xsd:string" xsi:nillable="true"/>
    <part name="password" type="xsd:string" xsi:nillable="true"/>
    <part name="rfc" type="xsd:string" xsi:nillable="true"/>
    <part name="razon_social" type="xsd:string" xsi:nillable="true"/>
    <part name="email" type="xsd:string" 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="firmar_manifiesto_response">
    <part name="firma_manifiesto_result" type="tns:firma_manifiesto_result" xsi:nillable="true"/>
  </message>
  <message name="firmar_manifiesto_sello">
    <part name="username" type="xsd:string" xsi:nillable="true"/>
    <part name="password" type="xsd:string" xsi:nillable="true"/>
    <part name="email" type="xsd:string" xsi:nillable="true"/>
    <part name="cadena" type="xsd:string" xsi:nillable="true"/>
    <part name="sello" type="xsd:string" xsi:nillable="true"/>
    <part name="certificado" type="xsd:string" xsi:nillable="true"/>
  </message>
  <message name="firmar_manifiesto_sello_response">
    <part name="firmar_manifiesto_sello_result" type="tns:firmar_manifiesto_sello_result" xsi:nillable="true"/>
  </message>
  <portType name="manifiesto_port">
    <operation name="firmar_manifiesto">
      <input message="tns:firmar_manifiesto"/>
      <output message="tns:firmar_manifiesto_response"/>
    </operation>
    <operation name="firmar_manifiesto_sello">
      <input message="tns:firmar_manifiesto_sello"/>
      <output message="tns:firmar_manifiesto_sello_response"/>
    </operation>
  </portType>
  <binding name="manifiesto_binding" type="tns:manifiesto_port">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="firmar_manifiesto">
      <soap:operation soapAction="firmar_manifiesto"/>
      <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="firmar_manifiesto_sello">
      <soap:operation soapAction="firmar_manifiesto_sello"/>
      <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="manifiesto_port" binding="tns:manifiesto_binding">
      <soap:address location="https://staging.ws.timbox.com.mx/manifiesto/action"/>
    </port>
  </service>
</definitions>
