jueves, 12 de abril de 2018

Consulta Avanzada Estado DTE

Documentación: http://www.sii.cl/factura_electronica/OIFE2006_QueryEstDteAv_MDE.pdf

urlws certificación: https://maullin.sii.cl/DTEWS/services/QueryEstDteAv?wsdl
urlws producción: https://palena.sii.cl/DTEWS/services/QueryEstDteAv?wsdl

Ejemplo xml entrada:

<SOAP-ENV:Envelope
xmlns:SOAP-ENV ="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<m:getEstDteAv xmlns:m="http://DefaultNamespace" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<RutEmpresa xsi:type="xsd:string">String</RutEmpresa>
<DvEmpresa xsi:type="xsd:string">String</DvEmpresa>
<RutReceptor xsi:type="xsd:string">String</RutReceptor>
<DvReceptor xsi:type="xsd:string">String</DvReceptor>
<TipoDte xsi:type="xsd:string">String</TipoDte>
<FolioDte xsi:type="xsd:string">String</FolioDte>
<FechaEmisionDte xsi:type="xsd:string">String</FechaEmisionDte>
<MontoDte xsi:type="xsd:string">String</MontoDte>
<FirmaDte xsi:type="xsd:string">String</FirmaDte>
<Token xsi:type="xsd:string">String</Token>
</m:getEstDteAv>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

xml de entrada validado en:
https://www.xmlvalidation.com/
https://www.freeformatter.com/xml-validator-xsd.html

Respuesta ws:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:getEstDteAvResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://DefaultNamespace">
<ns1:getEstDteAvReturn xsi:type="xsd:string">
<?xml version="1.0" encoding="UTF-8"?>
<SII:RESPUESTA xmlns:SII="http://www.sii.cl/XMLSchema">
<SII:RESP_HDR>
<SII:ESTADO>0</SII:ESTADO>
</SII:RESP_HDR>
<SII:RESP_BODY>
<RECIBIDO>SI</RECIBIDO>
<ESTADO>DOK</ESTADO>
<GLOSA>Documento Recibido por el SII. Datos Coinciden con los Registrados</GLOSA>
<TRACKID>1234567890</TRACKID>
<NUMATENCION>999991 [09/04/2013 13:10:44]</NUMATENCION>
</SII:RESP_BODY>
</SII:RESPUESTA>
</ns1:getEstDteAvReturn>
</ns1:getEstDteAvResponse>
</soapenv:Body>
</soapenv:Envelope>


Referencias:
http://www.sii.cl/factura_electronica/doc_emp_aut.htm
http://www.sii.cl/factura_electronica/factura_mercado/instructivo.htm

No hay comentarios.:

Publicar un comentario