SOAP WSDL Generate Code

sfVerifactu / ConsultaFactuSistemaFacturacion

ASP AutoIt C C (Unicode) C++ C++ (Unicode) C# DataFlex Delphi Foxpro Go Java Node.js Objective-C Perl PHP Extension PowerBuilder Powershell PureBasic Python CkPython Ruby SQL Server Swift TCL VB.NET VB6 VBScript Xojo
var os = require('os');
if (os.platform() == 'win32') {  
    if (os.arch() == 'ia32') {
        var chilkat = require('@chilkat/ck-node21-win-ia32');
    } else {
        var chilkat = require('@chilkat/ck-node21-win64'); 
    }
} else if (os.platform() == 'linux') {
    if (os.arch() == 'arm') {
        var chilkat = require('@chilkat/ck-node21-arm');
    } else if (os.arch() == 'x86') {
        var chilkat = require('@chilkat/ck-node21-linux32');
    } else {
        var chilkat = require('@chilkat/ck-node21-linux64');
    }
} else if (os.platform() == 'darwin') {
    if (os.arch() == 'arm64') {
        var chilkat = require('@chilkat/ck-node21-mac-m1');
    } else {
        var chilkat = require('@chilkat/ck-node21-macosx');
    }
}


function chilkatExample() {

    var xml = new chilkat.Xml();
    xml.Tag = "soapenv:Envelope";
    xml.AddAttribute("xmlns:soapenv","http://schemas.xmlsoap.org/soap/envelope/");
    xml.AddAttribute("xmlns:sfLRC","https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/ConsultaLR.xsd");
    xml.AddAttribute("xmlns:sf","https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/SuministroInformacion.xsd");
    xml.UpdateChildContent("soapenv:Header","");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:IDVersion","1.0");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:ObligadoEmision|sf:NombreRazon","string");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:ObligadoEmision|sf:NIF","string");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:IndicadorRepresentante","S");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:PeriodoImputacion|sf:Ejercicio","string");
    xml.UpdateChildContentInt("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:PeriodoImputacion|sf:Periodo",01);
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:NumSerieFactura","string");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:Contraparte|sf:NombreRazon","string");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:Contraparte|sf:NIF","string");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:FechaExpedicionFactura","");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NombreRazon","string");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NIF","string");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NombreSistemaInformatico","string");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:IdSistemaInformatico","string");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:Version","string");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NumeroInstalacion","string");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:TipoUsoPosibleSoloVerifactu","S");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:TipoUsoPosibleMultiOT","S");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:IndicadorMultiplesOT","S");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:RefExterna","string");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:ClavePaginacion|sf:IDEmisorFactura","string");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:ClavePaginacion|sf:NumSerieFactura","string");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:ClavePaginacion|sf:FechaExpedicionFactura","string");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:DatosAdicionalesRespuesta|sfLRC:MostrarNombreRazonEmisor","S");
    xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:DatosAdicionalesRespuesta|sfLRC:MostrarSistemaInformatico","S");

    // In a SOAP HTTP request, including the XML declaration (<?xml version="1.0" encoding="UTF-8"?>) in the XML body is generally not required. 
    xml.EmitXmlDecl = false;
    var soapRequestBody = xml.GetXml();

    var endpoint = "https://www1.agenciatributaria.gob.es/wlpl/TIKE-CONT/ws/SistemaFacturacion/VerifactuSOAP";
    var soapAction = "";
    //  For SOAP requests, the standard Content-Type is usually set to "text/xml" or "application/soap+xml"
    var contentType = "text/xml";

    var http = new chilkat.Http();

    http.ClearHeaders();
    http.SetRequestHeader("Content-Type",contentType);
    http.SetRequestHeader("SOAPAction",soapAction);

    // resp: HttpResponse
    var resp = http.PostXml(endpoint,soapRequestBody,"utf-8");
    if (http.LastMethodSuccess == false) {
        console.log(http.LastErrorText);
        console.log("Failed to send SOAP request.");
        return;
    }

    // Get the XML response body.
    var responseXml = new chilkat.Xml();
    resp.GetBodyXml(responseXml);

    var statusCode = resp.StatusCode;
    console.log("response status code: " + statusCode);

    // If the status code does not indicate succcess, then show the response XML,
    // which probably contains error information.
    if (statusCode !== 200) {
        console.log(responseXml.GetXml());
        return;
    }

    console.log(responseXml.GetXml());

    // Parse the successful SOAP response XML.

    // This is a sample of the response XML, but the namespace prefixes will be different.
    // We can parse the result using "*" for the namespace prefixes (see below).

    var IDVersion = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:Cabecera|*:IDVersion");
    var NombreRazon = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:Cabecera|*:ObligadoEmision|*:NombreRazon");
    var NIF = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:Cabecera|*:ObligadoEmision|*:NIF");
    var IndicadorRepresentante = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:Cabecera|*:IndicadorRepresentante");
    var Ejercicio = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:PeriodoImputacion|*:Ejercicio");
    var Periodo = responseXml.GetChildIntValue("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:PeriodoImputacion|*:Periodo");
    var IndicadorPaginacion = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:IndicadorPaginacion");
    var ResultadoConsulta = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:ResultadoConsulta");
    var IDEmisorFactura = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:IDFactura|*:IDEmisorFactura");
    var NumSerieFactura = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:IDFactura|*:NumSerieFactura");
    var FechaExpedicionFactura = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:IDFactura|*:FechaExpedicionFactura");
    var NombreRazonEmisor = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:NombreRazonEmisor");
    var RefExterna = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:RefExterna");
    var Subsanacion = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Subsanacion");
    var RechazoPrevio = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:RechazoPrevio");
    var SinRegistroPrevio = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SinRegistroPrevio");
    var GeneradoPor = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:GeneradoPor");
    NombreRazon = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Generador|*:NombreRazon");
    NIF = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Generador|*:NIF");
    var TipoFactura = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:TipoFactura");
    var TipoRectificativa = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:TipoRectificativa");
    IDEmisorFactura = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasRectificadas|*:IDFacturaRectificada|*:IDEmisorFactura");
    NumSerieFactura = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasRectificadas|*:IDFacturaRectificada|*:NumSerieFactura");
    FechaExpedicionFactura = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasRectificadas|*:IDFacturaRectificada|*:FechaExpedicionFactura");
    IDEmisorFactura = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasSustituidas|*:IDFacturaSustituida|*:IDEmisorFactura");
    NumSerieFactura = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasSustituidas|*:IDFacturaSustituida|*:NumSerieFactura");
    FechaExpedicionFactura = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasSustituidas|*:IDFacturaSustituida|*:FechaExpedicionFactura");
    var BaseRectificada = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:ImporteRectificacion|*:BaseRectificada");
    var CuotaRectificada = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:ImporteRectificacion|*:CuotaRectificada");
    var CuotaRecargoRectificado = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:ImporteRectificacion|*:CuotaRecargoRectificado");
    var FechaOperacion = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FechaOperacion");
    var DescripcionOperacion = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:DescripcionOperacion");
    var FacturaSimplificadaArt7273 = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturaSimplificadaArt7273");
    var FacturaSinIdentifDestinatarioArt61d = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturaSinIdentifDestinatarioArt61d");
    var Macrodato = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Macrodato");
    var EmitidaPorTerceroODestinatario = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:EmitidaPorTerceroODestinatario");
    NombreRazon = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Tercero|*:NombreRazon");
    NIF = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Tercero|*:NIF");
    NombreRazon = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Destinatarios|*:IDDestinatario|*:NombreRazon");
    NIF = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Destinatarios|*:IDDestinatario|*:NIF");
    var Cupon = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Cupon");
    var Impuesto = responseXml.GetChildIntValue("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:Impuesto");
    var ClaveRegimen = responseXml.GetChildIntValue("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:ClaveRegimen");
    var CalificacionOperacion = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:CalificacionOperacion");
    var TipoImpositivo = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:TipoImpositivo");
    var BaseImponibleOimporteNoSujeto = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:BaseImponibleOimporteNoSujeto");
    var BaseImponibleACoste = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:BaseImponibleACoste");
    var CuotaRepercutida = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:CuotaRepercutida");
    var TipoRecargoEquivalencia = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:TipoRecargoEquivalencia");
    var CuotaRecargoEquivalencia = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:CuotaRecargoEquivalencia");
    var CuotaTotal = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:CuotaTotal");
    var ImporteTotal = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:ImporteTotal");
    NombreRazon = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:NombreRazon");
    NIF = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:NIF");
    var NombreSistemaInformatico = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:NombreSistemaInformatico");
    var IdSistemaInformatico = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:IdSistemaInformatico");
    var Version = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:Version");
    var NumeroInstalacion = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:NumeroInstalacion");
    var TipoUsoPosibleSoloVerifactu = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:TipoUsoPosibleSoloVerifactu");
    var TipoUsoPosibleMultiOT = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:TipoUsoPosibleMultiOT");
    var IndicadorMultiplesOT = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:IndicadorMultiplesOT");
    var FechaHoraHusoGenRegistro = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FechaHoraHusoGenRegistro");
    var NumRegistroAcuerdoFacturacion = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:NumRegistroAcuerdoFacturacion");
    var IdAcuerdoSistemaInformatico = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:IdAcuerdoSistemaInformatico");
    var TipoHuella = responseXml.GetChildIntValue("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:TipoHuella");
    var Huella = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Huella");
    var NifRepresentante = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:NifRepresentante");
    var FechaFinVeriFactu = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FechaFinVeriFactu");
    var Incidencia = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Incidencia");
    var NIFPresentador = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosPresentacion|*:NIFPresentador");
    var TimestampPresentacion = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosPresentacion|*:TimestampPresentacion");
    var IdPeticion = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosPresentacion|*:IdPeticion");
    var TimestampUltimaModificacion = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:EstadoRegistro|*:TimestampUltimaModificacion");
    var EstadoRegistro = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:EstadoRegistro|*:EstadoRegistro");
    var CodigoErrorRegistro = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:EstadoRegistro|*:CodigoErrorRegistro");
    var DescripcionErrorRegistro = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:EstadoRegistro|*:DescripcionErrorRegistro");
    IDEmisorFactura = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:ClavePaginacion|*:IDEmisorFactura");
    NumSerieFactura = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:ClavePaginacion|*:NumSerieFactura");
    FechaExpedicionFactura = responseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:ClavePaginacion|*:FechaExpedicionFactura");

}

chilkatExample();
Request XML
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sfLRC="https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/ConsultaLR.xsd" xmlns:sf="https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/SuministroInformacion.xsd">
    <soapenv:Header/>
    <soapenv:Body>
        <sfLRC:ConsultaFactuSistemaFacturacion>
            <sfLRC:Cabecera>
                <sf:IDVersion>1.0</sf:IDVersion>
                <sf:ObligadoEmision>
                    <sf:NombreRazon>string</sf:NombreRazon>
                    <sf:NIF>string</sf:NIF>
                </sf:ObligadoEmision>
                <sf:IndicadorRepresentante>S</sf:IndicadorRepresentante>
            </sfLRC:Cabecera>
            <sfLRC:FiltroConsulta>
                <sfLRC:PeriodoImputacion>
                    <sf:Ejercicio>string</sf:Ejercicio>
                    <sf:Periodo>01</sf:Periodo>
                </sfLRC:PeriodoImputacion>
                <sfLRC:NumSerieFactura>string</sfLRC:NumSerieFactura>
                <sfLRC:Contraparte>
                    <sf:NombreRazon>string</sf:NombreRazon>
                    <sf:NIF>string</sf:NIF>
                </sfLRC:Contraparte>
                <sfLRC:FechaExpedicionFactura/>
                <sfLRC:SistemaInformatico>
                    <sf:NombreRazon>string</sf:NombreRazon>
                    <sf:NIF>string</sf:NIF>
                    <sf:NombreSistemaInformatico>string</sf:NombreSistemaInformatico>
                    <sf:IdSistemaInformatico>string</sf:IdSistemaInformatico>
                    <sf:Version>string</sf:Version>
                    <sf:NumeroInstalacion>string</sf:NumeroInstalacion>
                    <sf:TipoUsoPosibleSoloVerifactu>S</sf:TipoUsoPosibleSoloVerifactu>
                    <sf:TipoUsoPosibleMultiOT>S</sf:TipoUsoPosibleMultiOT>
                    <sf:IndicadorMultiplesOT>S</sf:IndicadorMultiplesOT>
                </sfLRC:SistemaInformatico>
                <sfLRC:RefExterna>string</sfLRC:RefExterna>
                <sfLRC:ClavePaginacion>
                    <sf:IDEmisorFactura>string</sf:IDEmisorFactura>
                    <sf:NumSerieFactura>string</sf:NumSerieFactura>
                    <sf:FechaExpedicionFactura>string</sf:FechaExpedicionFactura>
                </sfLRC:ClavePaginacion>
            </sfLRC:FiltroConsulta>
            <sfLRC:DatosAdicionalesRespuesta>
                <sfLRC:MostrarNombreRazonEmisor>S</sfLRC:MostrarNombreRazonEmisor>
                <sfLRC:MostrarSistemaInformatico>S</sfLRC:MostrarSistemaInformatico>
            </sfLRC:DatosAdicionalesRespuesta>
        </sfLRC:ConsultaFactuSistemaFacturacion>
    </soapenv:Body>
</soapenv:Envelope>
Response XML
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sfLRRC="https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/RespuestaConsultaLR.xsd" xmlns:sf="https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/SuministroInformacion.xsd">
    <soapenv:Header/>
    <soapenv:Body>
        <sfLRRC:RespuestaConsultaFactuSistemaFacturacion>
            <sfLRRC:Cabecera>
                <sf:IDVersion>1.0</sf:IDVersion>
                <sf:ObligadoEmision>
                    <sf:NombreRazon>string</sf:NombreRazon>
                    <sf:NIF>string</sf:NIF>
                </sf:ObligadoEmision>
                <sf:IndicadorRepresentante>S</sf:IndicadorRepresentante>
            </sfLRRC:Cabecera>
            <sfLRRC:PeriodoImputacion>
                <sfLRRC:Ejercicio>string</sfLRRC:Ejercicio>
                <sfLRRC:Periodo>01</sfLRRC:Periodo>
            </sfLRRC:PeriodoImputacion>
            <sfLRRC:IndicadorPaginacion>S</sfLRRC:IndicadorPaginacion>
            <sfLRRC:ResultadoConsulta>ConDatos</sfLRRC:ResultadoConsulta>
            <sfLRRC:RegistroRespuestaConsultaFactuSistemaFacturacion>
                <sfLRRC:IDFactura>
                    <sf:IDEmisorFactura>string</sf:IDEmisorFactura>
                    <sf:NumSerieFactura>string</sf:NumSerieFactura>
                    <sf:FechaExpedicionFactura>string</sf:FechaExpedicionFactura>
                </sfLRRC:IDFactura>
                <sfLRRC:DatosRegistroFacturacion>
                    <sfLRRC:NombreRazonEmisor>string</sfLRRC:NombreRazonEmisor>
                    <sfLRRC:RefExterna>string</sfLRRC:RefExterna>
                    <sfLRRC:Subsanacion>S</sfLRRC:Subsanacion>
                    <sfLRRC:RechazoPrevio>N</sfLRRC:RechazoPrevio>
                    <sfLRRC:SinRegistroPrevio>S</sfLRRC:SinRegistroPrevio>
                    <sfLRRC:GeneradoPor>E</sfLRRC:GeneradoPor>
                    <sfLRRC:Generador>
                        <sf:NombreRazon>string</sf:NombreRazon>
                        <sf:NIF>string</sf:NIF>
                    </sfLRRC:Generador>
                    <sfLRRC:TipoFactura>F1</sfLRRC:TipoFactura>
                    <sfLRRC:TipoRectificativa>S</sfLRRC:TipoRectificativa>
                    <sfLRRC:FacturasRectificadas>
                        <sfLRRC:IDFacturaRectificada>
                            <sf:IDEmisorFactura>string</sf:IDEmisorFactura>
                            <sf:NumSerieFactura>string</sf:NumSerieFactura>
                            <sf:FechaExpedicionFactura>string</sf:FechaExpedicionFactura>
                        </sfLRRC:IDFacturaRectificada>
                    </sfLRRC:FacturasRectificadas>
                    <sfLRRC:FacturasSustituidas>
                        <sfLRRC:IDFacturaSustituida>
                            <sf:IDEmisorFactura>string</sf:IDEmisorFactura>
                            <sf:NumSerieFactura>string</sf:NumSerieFactura>
                            <sf:FechaExpedicionFactura>string</sf:FechaExpedicionFactura>
                        </sfLRRC:IDFacturaSustituida>
                    </sfLRRC:FacturasSustituidas>
                    <sfLRRC:ImporteRectificacion>
                        <sf:BaseRectificada>string</sf:BaseRectificada>
                        <sf:CuotaRectificada>string</sf:CuotaRectificada>
                        <sf:CuotaRecargoRectificado>string</sf:CuotaRecargoRectificado>
                    </sfLRRC:ImporteRectificacion>
                    <sfLRRC:FechaOperacion>string</sfLRRC:FechaOperacion>
                    <sfLRRC:DescripcionOperacion>string</sfLRRC:DescripcionOperacion>
                    <sfLRRC:FacturaSimplificadaArt7273>S</sfLRRC:FacturaSimplificadaArt7273>
                    <sfLRRC:FacturaSinIdentifDestinatarioArt61d>S</sfLRRC:FacturaSinIdentifDestinatarioArt61d>
                    <sfLRRC:Macrodato>S</sfLRRC:Macrodato>
                    <sfLRRC:EmitidaPorTerceroODestinatario>D</sfLRRC:EmitidaPorTerceroODestinatario>
                    <sfLRRC:Tercero>
                        <sf:NombreRazon>string</sf:NombreRazon>
                        <sf:NIF>string</sf:NIF>
                    </sfLRRC:Tercero>
                    <sfLRRC:Destinatarios>
                        <sfLRRC:IDDestinatario>
                            <sf:NombreRazon>string</sf:NombreRazon>
                            <sf:NIF>string</sf:NIF>
                        </sfLRRC:IDDestinatario>
                    </sfLRRC:Destinatarios>
                    <sfLRRC:Cupon>S</sfLRRC:Cupon>
                    <sfLRRC:Desglose>
                        <sf:DetalleDesglose>
                            <sf:Impuesto>01</sf:Impuesto>
                            <sf:ClaveRegimen>01</sf:ClaveRegimen>
                            <sf:CalificacionOperacion>S1</sf:CalificacionOperacion>
                            <sf:TipoImpositivo>string</sf:TipoImpositivo>
                            <sf:BaseImponibleOimporteNoSujeto>string</sf:BaseImponibleOimporteNoSujeto>
                            <sf:BaseImponibleACoste>string</sf:BaseImponibleACoste>
                            <sf:CuotaRepercutida>string</sf:CuotaRepercutida>
                            <sf:TipoRecargoEquivalencia>string</sf:TipoRecargoEquivalencia>
                            <sf:CuotaRecargoEquivalencia>string</sf:CuotaRecargoEquivalencia>
                        </sf:DetalleDesglose>
                    </sfLRRC:Desglose>
                    <sfLRRC:CuotaTotal>string</sfLRRC:CuotaTotal>
                    <sfLRRC:ImporteTotal>string</sfLRRC:ImporteTotal>
                    <sfLRRC:Encadenamiento/>
                    <sfLRRC:SistemaInformatico>
                        <sf:NombreRazon>string</sf:NombreRazon>
                        <sf:NIF>string</sf:NIF>
                        <sf:NombreSistemaInformatico>string</sf:NombreSistemaInformatico>
                        <sf:IdSistemaInformatico>string</sf:IdSistemaInformatico>
                        <sf:Version>string</sf:Version>
                        <sf:NumeroInstalacion>string</sf:NumeroInstalacion>
                        <sf:TipoUsoPosibleSoloVerifactu>S</sf:TipoUsoPosibleSoloVerifactu>
                        <sf:TipoUsoPosibleMultiOT>S</sf:TipoUsoPosibleMultiOT>
                        <sf:IndicadorMultiplesOT>S</sf:IndicadorMultiplesOT>
                    </sfLRRC:SistemaInformatico>
                    <sfLRRC:FechaHoraHusoGenRegistro>dateTime</sfLRRC:FechaHoraHusoGenRegistro>
                    <sfLRRC:NumRegistroAcuerdoFacturacion>string</sfLRRC:NumRegistroAcuerdoFacturacion>
                    <sfLRRC:IdAcuerdoSistemaInformatico>string</sfLRRC:IdAcuerdoSistemaInformatico>
                    <sfLRRC:TipoHuella>01</sfLRRC:TipoHuella>
                    <sfLRRC:Huella>string</sfLRRC:Huella>
                    <sfLRRC:NifRepresentante>string</sfLRRC:NifRepresentante>
                    <sfLRRC:FechaFinVeriFactu>string</sfLRRC:FechaFinVeriFactu>
                    <sfLRRC:Incidencia>S</sfLRRC:Incidencia>
                </sfLRRC:DatosRegistroFacturacion>
                <sfLRRC:DatosPresentacion>
                    <sf:NIFPresentador>string</sf:NIFPresentador>
                    <sf:TimestampPresentacion>dateTime</sf:TimestampPresentacion>
                    <sf:IdPeticion>string</sf:IdPeticion>
                </sfLRRC:DatosPresentacion>
                <sfLRRC:EstadoRegistro>
                    <sfLRRC:TimestampUltimaModificacion>dateTime</sfLRRC:TimestampUltimaModificacion>
                    <sfLRRC:EstadoRegistro>Correcta</sfLRRC:EstadoRegistro>
                    <sfLRRC:CodigoErrorRegistro>integer</sfLRRC:CodigoErrorRegistro>
                    <sfLRRC:DescripcionErrorRegistro>string</sfLRRC:DescripcionErrorRegistro>
                </sfLRRC:EstadoRegistro>
            </sfLRRC:RegistroRespuestaConsultaFactuSistemaFacturacion>
            <sfLRRC:ClavePaginacion>
                <sf:IDEmisorFactura>string</sf:IDEmisorFactura>
                <sf:NumSerieFactura>string</sf:NumSerieFactura>
                <sf:FechaExpedicionFactura>string</sf:FechaExpedicionFactura>
            </sfLRRC:ClavePaginacion>
        </sfLRRC:RespuestaConsultaFactuSistemaFacturacion>
    </soapenv:Body>
</soapenv:Envelope>