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
#include <C_CkXmlW.h>
#include <C_CkHttpW.h>
#include <C_CkHttpResponseW.h>

void ChilkatSample(void)
    {
    HCkXmlW xml;
    const wchar_t *soapRequestBody;
    const wchar_t *endpoint;
    const wchar_t *soapAction;
    const wchar_t *contentType;
    HCkHttpW http;
    HCkHttpResponseW resp;
    HCkXmlW responseXml;
    int statusCode;
    const wchar_t *IDVersion;
    const wchar_t *NombreRazon;
    const wchar_t *NIF;
    const wchar_t *IndicadorRepresentante;
    const wchar_t *Ejercicio;
    int Periodo;
    const wchar_t *IndicadorPaginacion;
    const wchar_t *ResultadoConsulta;
    const wchar_t *IDEmisorFactura;
    const wchar_t *NumSerieFactura;
    const wchar_t *FechaExpedicionFactura;
    const wchar_t *NombreRazonEmisor;
    const wchar_t *RefExterna;
    const wchar_t *Subsanacion;
    const wchar_t *RechazoPrevio;
    const wchar_t *SinRegistroPrevio;
    const wchar_t *GeneradoPor;
    const wchar_t *TipoFactura;
    const wchar_t *TipoRectificativa;
    const wchar_t *BaseRectificada;
    const wchar_t *CuotaRectificada;
    const wchar_t *CuotaRecargoRectificado;
    const wchar_t *FechaOperacion;
    const wchar_t *DescripcionOperacion;
    const wchar_t *FacturaSimplificadaArt7273;
    const wchar_t *FacturaSinIdentifDestinatarioArt61d;
    const wchar_t *Macrodato;
    const wchar_t *EmitidaPorTerceroODestinatario;
    const wchar_t *Cupon;
    int Impuesto;
    int ClaveRegimen;
    const wchar_t *CalificacionOperacion;
    const wchar_t *TipoImpositivo;
    const wchar_t *BaseImponibleOimporteNoSujeto;
    const wchar_t *BaseImponibleACoste;
    const wchar_t *CuotaRepercutida;
    const wchar_t *TipoRecargoEquivalencia;
    const wchar_t *CuotaRecargoEquivalencia;
    const wchar_t *CuotaTotal;
    const wchar_t *ImporteTotal;
    const wchar_t *NombreSistemaInformatico;
    const wchar_t *IdSistemaInformatico;
    const wchar_t *Version;
    const wchar_t *NumeroInstalacion;
    const wchar_t *TipoUsoPosibleSoloVerifactu;
    const wchar_t *TipoUsoPosibleMultiOT;
    const wchar_t *IndicadorMultiplesOT;
    const wchar_t *FechaHoraHusoGenRegistro;
    const wchar_t *NumRegistroAcuerdoFacturacion;
    const wchar_t *IdAcuerdoSistemaInformatico;
    int TipoHuella;
    const wchar_t *Huella;
    const wchar_t *NifRepresentante;
    const wchar_t *FechaFinVeriFactu;
    const wchar_t *Incidencia;
    const wchar_t *NIFPresentador;
    const wchar_t *TimestampPresentacion;
    const wchar_t *IdPeticion;
    const wchar_t *TimestampUltimaModificacion;
    const wchar_t *EstadoRegistro;
    const wchar_t *CodigoErrorRegistro;
    const wchar_t *DescripcionErrorRegistro;

    xml = CkXmlW_Create();
    CkXmlW_putTag(xml,L"soapenv:Envelope");
    CkXmlW_AddAttribute(xml,L"xmlns:soapenv",L"http://schemas.xmlsoap.org/soap/envelope/");
    CkXmlW_AddAttribute(xml,L"xmlns:sfLRC",L"https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/ConsultaLR.xsd");
    CkXmlW_AddAttribute(xml,L"xmlns:sf",L"https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/SuministroInformacion.xsd");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Header",L"");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:IDVersion",L"1.0");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:ObligadoEmision|sf:NombreRazon",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:ObligadoEmision|sf:NIF",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:IndicadorRepresentante",L"S");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:PeriodoImputacion|sf:Ejercicio",L"string");
    CkXmlW_UpdateChildContentInt(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:PeriodoImputacion|sf:Periodo",01);
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:NumSerieFactura",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:Contraparte|sf:NombreRazon",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:Contraparte|sf:NIF",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:FechaExpedicionFactura",L"");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NombreRazon",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NIF",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NombreSistemaInformatico",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:IdSistemaInformatico",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:Version",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NumeroInstalacion",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:TipoUsoPosibleSoloVerifactu",L"S");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:TipoUsoPosibleMultiOT",L"S");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:IndicadorMultiplesOT",L"S");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:RefExterna",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:ClavePaginacion|sf:IDEmisorFactura",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:ClavePaginacion|sf:NumSerieFactura",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:ClavePaginacion|sf:FechaExpedicionFactura",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:DatosAdicionalesRespuesta|sfLRC:MostrarNombreRazonEmisor",L"S");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:DatosAdicionalesRespuesta|sfLRC:MostrarSistemaInformatico",L"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. 
    CkXmlW_putEmitXmlDecl(xml,FALSE);
    soapRequestBody = CkXmlW_getXml(xml);

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

    http = CkHttpW_Create();

    CkHttpW_ClearHeaders(http);
    CkHttpW_SetRequestHeader(http,L"Content-Type",contentType);
    CkHttpW_SetRequestHeader(http,L"SOAPAction",soapAction);

    resp = CkHttpW_PostXml(http,endpoint,soapRequestBody,L"utf-8");
    if (CkHttpW_getLastMethodSuccess(http) == FALSE) {
        wprintf(L"%s\n",CkHttpW_lastErrorText(http));
        wprintf(L"Failed to send SOAP request.\n");
        CkXmlW_Dispose(xml);
        CkHttpW_Dispose(http);
        return;
    }

    // Get the XML response body.
    responseXml = CkXmlW_Create();
    CkHttpResponseW_GetBodyXml(resp,responseXml);

    statusCode = CkHttpResponseW_getStatusCode(resp);
    wprintf(L"response status code: %d\n",statusCode);

    CkHttpResponseW_Dispose(resp);

    // If the status code does not indicate succcess, then show the response XML,
    // which probably contains error information.
    if (statusCode != 200) {
        wprintf(L"%s\n",CkXmlW_getXml(responseXml));
        CkXmlW_Dispose(xml);
        CkHttpW_Dispose(http);
        CkXmlW_Dispose(responseXml);
        return;
    }

    wprintf(L"%s\n",CkXmlW_getXml(responseXml));

    // 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).

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


    CkXmlW_Dispose(xml);
    CkHttpW_Dispose(http);
    CkXmlW_Dispose(responseXml);

    }
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>