Saltar al contenido principal

Método: ObtenerPDFCedible

Retorna XML de documento específico.

Parámetros

NombreTipoObligatorio
sistemaString
rutString
usuarioString
claveString (codificado en base64)
tipo_dteInteger
folioInteger

¿Cómo consumir?

El XML de entrada sería algo como:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cls="http://cls.DTEIntegrado/">
<soapenv:Header/>
<soapenv:Body>
<cls:ObtenerPDFCedible>
<sistema>erpfull</sistema>
<rut>24232221-5</rut>
<usuario>integrado_erpfull</usuario>
<clave>ZXJwZnVsbDIwMjE=</clave>
<tipo_dte>33</tipo_dte>
<folio>2266</folio>
</cls:ObtenerPDFCedible>
</soapenv:Body>
</soapenv:Envelope>
curl --request POST \
--header 'Content-Type: text/xml;charset=UTF-8' \
--data '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cls="http://cls.DTEIntegrado/"><soapenv:Header/><soapenv:Body><cls:ObtenerPDFCedible><sistema>erpfull</sistema><rut>24232221-5</rut><usuario>integrado_erpfull</usuario><clave>ZXJwZnVsbDIwMjE=</clave><tipo_dte>33</tipo_dte><folio>2266</folio></cls:ObtenerPDFCedible></soapenv:Body></soapenv:Envelope>' \
https://hades.dtemite.cl/WSDTEIntegrado/WSDTEInt

¿Qué me devuelve?

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:ObtenerPDFCedibleResponse xmlns:ns2="http://cls.DTEIntegrado/">
<return>
<resultado>true</resultado>
<sRetorno><![CDATA[<Resultado><Folio>2266</Folio><TipoDTE>33</TipoDTE><PDF>JVBERi0xLjQKJeLjz9MKNSAwIG9iaiA8PC9UeXBlL1hPYmplY3QvQ29sb3JTcGFjZS9EZXZpY2VS...Zjg4MzA5N2Q+XS9JbmZvIDEyIDAgUi9TaXplIDEzPj4Kc3RhcnR4cmVmCjEwMzc4MwolJUVPRgo=</PDF></Resultado>]]></sRetorno>
</return>
</ns2:ObtenerPDFCedibleResponse>
</S:Body>
</S:Envelope>