SOAP WSDL Generate Code

sfRequerimiento / RegFactuSistemaFacturacion

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 *CSV;
    const wchar_t *NIFPresentador;
    const wchar_t *TimestampPresentacion;
    const wchar_t *NombreRazon;
    const wchar_t *NIF;
    const wchar_t *FechaFinVeriFactu;
    const wchar_t *Incidencia;
    const wchar_t *RefRequerimiento;
    const wchar_t *TiempoEsperaEnvio;
    const wchar_t *EstadoEnvio;
    const wchar_t *IDEmisorFactura;
    const wchar_t *NumSerieFactura;
    const wchar_t *FechaExpedicionFactura;
    const wchar_t *EstadoRegistro;
    const wchar_t *CodigoErrorRegistro;
    const wchar_t *DescripcionErrorRegistro;
    const wchar_t *CSVRegistroDuplicado;
    const wchar_t *EstadoRegistroDuplicado;

    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:ds",L"http://www.w3.org/2000/09/xmldsig#");
    CkXmlW_AddAttribute(xml,L"xmlns:sfLR",L"https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/SuministroLR.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|sfLR:RegFactuSistemaFacturacion|sf:Cabecera|sf:ObligadoEmision|sf:NombreRazon",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sf:Cabecera|sf:ObligadoEmision|sf:NIF",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sf:Cabecera|sf:RemisionVoluntaria|sf:FechaFinVeriFactu",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sf:Cabecera|sf:RemisionVoluntaria|sf:Incidencia",L"S");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sf:Cabecera|sf:RemisionRequerimiento|sf:RefRequerimiento",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:IDVersion",L"1.0");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:IDFactura|sf:IDEmisorFactura",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:IDFactura|sf:NumSerieFactura",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:IDFactura|sf:FechaExpedicionFactura",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:NombreRazonEmisor",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:Subsanacion",L"S");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:RechazoPrevio",L"N");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:TipoFactura",L"F1");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:TipoRectificativa",L"S");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:FacturasRectificadas|sf:IDFacturaRectificada|sf:IDEmisorFactura",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:FacturasRectificadas|sf:IDFacturaRectificada|sf:NumSerieFactura",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:FacturasRectificadas|sf:IDFacturaRectificada|sf:FechaExpedicionFactura",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:FacturasSustituidas|sf:IDFacturasSustituida|sf:IDEmisorFactura",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:FacturasSustituidas|sf:IDFacturasSustituida|sf:NumSerieFactura",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:FacturasSustituidas|sf:IDFacturasSustituida|sf:FechaExpedicionFactura",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:ImporteRectificacion|sf:BaseRectificada",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:ImporteRectificacion|sf:CuotaRectificada",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:ImporteRectificacion|sf:CuotaRecargoRectificado",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:FechaOperacion",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:DescripcionOperacion",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:FacturaSimplificadaArt7273",L"S");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:FacturaSinIdentifDestinatarioArt61d",L"S");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:Macrodato",L"S");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:EmitidaPorTerceroODestinatario",L"D");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:Tercero|sf:NombreRazon",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:Tercero|sf:NIF",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:Destinatarios|sf:IDDestinatario|sf:NombreRazon",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:Destinatarios|sf:IDDestinatario|sf:NIF",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:Cupon",L"S");
    CkXmlW_UpdateChildContentInt(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:Desglose|sf:DetalleDesglose|sf:ClaveRegimen",01);
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:Desglose|sf:DetalleDesglose|sf:CalificacionOperacion",L"S1");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:Desglose|sf:DetalleDesglose|sf:TipoImpositivo",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:Desglose|sf:DetalleDesglose|sf:BaseImponibleOimporteNoSujeto",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:Desglose|sf:DetalleDesglose|sf:BaseImponibleACoste",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:Desglose|sf:DetalleDesglose|sf:CuotaRepercutida",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:Desglose|sf:DetalleDesglose|sf:TipoRecargoEquivalencia",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:Desglose|sf:DetalleDesglose|sf:CuotaRecargoEquivalencia",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:CuotaTotal",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:ImporteTotal",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:Encadenamiento",L"");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:SistemaInformatico|sf:NombreRazon",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:SistemaInformatico|sf:NIF",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:SistemaInformatico|sf:NombreSistemaInformatico",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:SistemaInformatico|sf:IdSistemaInformatico",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:SistemaInformatico|sf:Version",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:SistemaInformatico|sf:NumeroInstalacion",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:SistemaInformatico|sf:TipoUsoPosibleSoloVerifactu",L"S");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:SistemaInformatico|sf:TipoUsoPosibleMultiOT",L"S");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:SistemaInformatico|sf:IndicadorMultiplesOT",L"S");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:FechaHoraHusoGenRegistro",L"dateTime");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:NumRegistroAcuerdoFacturacion",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:IdAcuerdoSistemaInformatico",L"string");
    CkXmlW_UpdateChildContentInt(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:TipoHuella",01);
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|sf:Huella",L"string");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|ds:Signature",TRUE,L"Id",L"?");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|ds:Signature|ds:SignedInfo",TRUE,L"Id",L"?");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|ds:Signature|ds:SignedInfo|ds:CanonicalizationMethod",TRUE,L"Algorithm",L"?");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|ds:Signature|ds:SignedInfo|ds:SignatureMethod",TRUE,L"Algorithm",L"?");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|ds:Signature|ds:SignedInfo|ds:SignatureMethod|ds:HMACOutputLength",L"integer");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|ds:Signature|ds:SignedInfo|ds:Reference",TRUE,L"Id",L"?");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|ds:Signature|ds:SignedInfo|ds:Reference",TRUE,L"URI",L"?");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|ds:Signature|ds:SignedInfo|ds:Reference",TRUE,L"Type",L"?");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|ds:Signature|ds:SignedInfo|ds:Reference|ds:Transforms|ds:Transform",TRUE,L"Algorithm",L"?");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|ds:Signature|ds:SignedInfo|ds:Reference|ds:DigestMethod",TRUE,L"Algorithm",L"?");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|ds:Signature|ds:SignedInfo|ds:Reference|ds:DigestValue",L"BASE64_DATA");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|ds:Signature|ds:SignatureValue",L"...");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|ds:Signature|ds:KeyInfo",TRUE,L"Id",L"?");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|ds:Signature|ds:Object",TRUE,L"Id",L"?");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|ds:Signature|ds:Object",TRUE,L"MimeType",L"?");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|sfLR:RegFactuSistemaFacturacion|sfLR:RegistroFactura|sfLR:RegistroAlta|ds:Signature|ds:Object",TRUE,L"Encoding",L"?");

    // 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"xxxxxxxxxx";
    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).

    CSV = CkXmlW_getChildContent(responseXml,L"*:Body|*:RespuestaRegFactuSistemaFacturacion|*:CSV");
    NIFPresentador = CkXmlW_getChildContent(responseXml,L"*:Body|*:RespuestaRegFactuSistemaFacturacion|*:DatosPresentacion|*:NIFPresentador");
    TimestampPresentacion = CkXmlW_getChildContent(responseXml,L"*:Body|*:RespuestaRegFactuSistemaFacturacion|*:DatosPresentacion|*:TimestampPresentacion");
    NombreRazon = CkXmlW_getChildContent(responseXml,L"*:Body|*:RespuestaRegFactuSistemaFacturacion|*:Cabecera|*:ObligadoEmision|*:NombreRazon");
    NIF = CkXmlW_getChildContent(responseXml,L"*:Body|*:RespuestaRegFactuSistemaFacturacion|*:Cabecera|*:ObligadoEmision|*:NIF");
    FechaFinVeriFactu = CkXmlW_getChildContent(responseXml,L"*:Body|*:RespuestaRegFactuSistemaFacturacion|*:Cabecera|*:RemisionVoluntaria|*:FechaFinVeriFactu");
    Incidencia = CkXmlW_getChildContent(responseXml,L"*:Body|*:RespuestaRegFactuSistemaFacturacion|*:Cabecera|*:RemisionVoluntaria|*:Incidencia");
    RefRequerimiento = CkXmlW_getChildContent(responseXml,L"*:Body|*:RespuestaRegFactuSistemaFacturacion|*:Cabecera|*:RemisionRequerimiento|*:RefRequerimiento");
    TiempoEsperaEnvio = CkXmlW_getChildContent(responseXml,L"*:Body|*:RespuestaRegFactuSistemaFacturacion|*:TiempoEsperaEnvio");
    EstadoEnvio = CkXmlW_getChildContent(responseXml,L"*:Body|*:RespuestaRegFactuSistemaFacturacion|*:EstadoEnvio");
    IDEmisorFactura = CkXmlW_getChildContent(responseXml,L"*:Body|*:RespuestaRegFactuSistemaFacturacion|*:RespuestaLinea|*:IDFactura|*:IDEmisorFactura");
    NumSerieFactura = CkXmlW_getChildContent(responseXml,L"*:Body|*:RespuestaRegFactuSistemaFacturacion|*:RespuestaLinea|*:IDFactura|*:NumSerieFactura");
    FechaExpedicionFactura = CkXmlW_getChildContent(responseXml,L"*:Body|*:RespuestaRegFactuSistemaFacturacion|*:RespuestaLinea|*:IDFactura|*:FechaExpedicionFactura");
    EstadoRegistro = CkXmlW_getChildContent(responseXml,L"*:Body|*:RespuestaRegFactuSistemaFacturacion|*:RespuestaLinea|*:EstadoRegistro");
    CodigoErrorRegistro = CkXmlW_getChildContent(responseXml,L"*:Body|*:RespuestaRegFactuSistemaFacturacion|*:RespuestaLinea|*:CodigoErrorRegistro");
    DescripcionErrorRegistro = CkXmlW_getChildContent(responseXml,L"*:Body|*:RespuestaRegFactuSistemaFacturacion|*:RespuestaLinea|*:DescripcionErrorRegistro");
    CSVRegistroDuplicado = CkXmlW_getChildContent(responseXml,L"*:Body|*:RespuestaRegFactuSistemaFacturacion|*:RespuestaLinea|*:CSVRegistroDuplicado");
    EstadoRegistroDuplicado = CkXmlW_getChildContent(responseXml,L"*:Body|*:RespuestaRegFactuSistemaFacturacion|*:RespuestaLinea|*:EstadoRegistroDuplicado");


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

    }
Request XML
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:sfLR="https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/SuministroLR.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>
        <sfLR:RegFactuSistemaFacturacion>
            <sf:Cabecera>
                <sf:ObligadoEmision>
                    <sf:NombreRazon>string</sf:NombreRazon>
                    <sf:NIF>string</sf:NIF>
                </sf:ObligadoEmision>
                <sf:RemisionVoluntaria>
                    <sf:FechaFinVeriFactu>string</sf:FechaFinVeriFactu>
                    <sf:Incidencia>S</sf:Incidencia>
                </sf:RemisionVoluntaria>
                <sf:RemisionRequerimiento>
                    <sf:RefRequerimiento>string</sf:RefRequerimiento>
                </sf:RemisionRequerimiento>
            </sf:Cabecera>
            <sfLR:RegistroFactura>
                <sfLR:RegistroAlta>
                    <sf:IDVersion>1.0</sf:IDVersion>
                    <sf:IDFactura>
                        <sf:IDEmisorFactura>string</sf:IDEmisorFactura>
                        <sf:NumSerieFactura>string</sf:NumSerieFactura>
                        <sf:FechaExpedicionFactura>string</sf:FechaExpedicionFactura>
                    </sf:IDFactura>
                    <sf:NombreRazonEmisor>string</sf:NombreRazonEmisor>
                    <sf:Subsanacion>S</sf:Subsanacion>
                    <sf:RechazoPrevio>N</sf:RechazoPrevio>
                    <sf:TipoFactura>F1</sf:TipoFactura>
                    <sf:TipoRectificativa>S</sf:TipoRectificativa>
                    <sf:FacturasRectificadas>
                        <sf:IDFacturaRectificada>
                            <sf:IDEmisorFactura>string</sf:IDEmisorFactura>
                            <sf:NumSerieFactura>string</sf:NumSerieFactura>
                            <sf:FechaExpedicionFactura>string</sf:FechaExpedicionFactura>
                        </sf:IDFacturaRectificada>
                    </sf:FacturasRectificadas>
                    <sf:FacturasSustituidas>
                        <sf:IDFacturasSustituida>
                            <sf:IDEmisorFactura>string</sf:IDEmisorFactura>
                            <sf:NumSerieFactura>string</sf:NumSerieFactura>
                            <sf:FechaExpedicionFactura>string</sf:FechaExpedicionFactura>
                        </sf:IDFacturasSustituida>
                    </sf:FacturasSustituidas>
                    <sf:ImporteRectificacion>
                        <sf:BaseRectificada>string</sf:BaseRectificada>
                        <sf:CuotaRectificada>string</sf:CuotaRectificada>
                        <sf:CuotaRecargoRectificado>string</sf:CuotaRecargoRectificado>
                    </sf:ImporteRectificacion>
                    <sf:FechaOperacion>string</sf:FechaOperacion>
                    <sf:DescripcionOperacion>string</sf:DescripcionOperacion>
                    <sf:FacturaSimplificadaArt7273>S</sf:FacturaSimplificadaArt7273>
                    <sf:FacturaSinIdentifDestinatarioArt61d>S</sf:FacturaSinIdentifDestinatarioArt61d>
                    <sf:Macrodato>S</sf:Macrodato>
                    <sf:EmitidaPorTerceroODestinatario>D</sf:EmitidaPorTerceroODestinatario>
                    <sf:Tercero>
                        <sf:NombreRazon>string</sf:NombreRazon>
                        <sf:NIF>string</sf:NIF>
                    </sf:Tercero>
                    <sf:Destinatarios>
                        <sf:IDDestinatario>
                            <sf:NombreRazon>string</sf:NombreRazon>
                            <sf:NIF>string</sf:NIF>
                        </sf:IDDestinatario>
                    </sf:Destinatarios>
                    <sf:Cupon>S</sf:Cupon>
                    <sf:Desglose>
                        <sf:DetalleDesglose>
                            <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>
                    </sf:Desglose>
                    <sf:CuotaTotal>string</sf:CuotaTotal>
                    <sf:ImporteTotal>string</sf:ImporteTotal>
                    <sf:Encadenamiento/>
                    <sf: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>
                    </sf:SistemaInformatico>
                    <sf:FechaHoraHusoGenRegistro>dateTime</sf:FechaHoraHusoGenRegistro>
                    <sf:NumRegistroAcuerdoFacturacion>string</sf:NumRegistroAcuerdoFacturacion>
                    <sf:IdAcuerdoSistemaInformatico>string</sf:IdAcuerdoSistemaInformatico>
                    <sf:TipoHuella>01</sf:TipoHuella>
                    <sf:Huella>string</sf:Huella>
                    <ds:Signature Id="?">
                        <ds:SignedInfo Id="?">
                            <ds:CanonicalizationMethod Algorithm="?"/>
                            <ds:SignatureMethod Algorithm="?">
                                <ds:HMACOutputLength>integer</ds:HMACOutputLength>
                            </ds:SignatureMethod>
                            <ds:Reference Id="?" URI="?" Type="?">
                                <ds:Transforms>
                                    <ds:Transform Algorithm="?"/>
                                </ds:Transforms>
                                <ds:DigestMethod Algorithm="?"/>
                                <ds:DigestValue>BASE64_DATA</ds:DigestValue>
                            </ds:Reference>
                        </ds:SignedInfo>
                        <ds:SignatureValue>...</ds:SignatureValue>
                        <ds:KeyInfo Id="?"/>
                        <ds:Object Id="?" MimeType="?" Encoding="?"/>
                    </ds:Signature>
                </sfLR:RegistroAlta>
            </sfLR:RegistroFactura>
        </sfLR:RegFactuSistemaFacturacion>
    </soapenv:Body>
</soapenv:Envelope>
Response XML
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sfR="https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/RespuestaSuministro.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>
        <sfR:RespuestaRegFactuSistemaFacturacion>
            <sfR:CSV>string</sfR:CSV>
            <sfR:DatosPresentacion>
                <sf:NIFPresentador>string</sf:NIFPresentador>
                <sf:TimestampPresentacion>string</sf:TimestampPresentacion>
            </sfR:DatosPresentacion>
            <sfR:Cabecera>
                <sf:ObligadoEmision>
                    <sf:NombreRazon>string</sf:NombreRazon>
                    <sf:NIF>string</sf:NIF>
                </sf:ObligadoEmision>
                <sf:RemisionVoluntaria>
                    <sf:FechaFinVeriFactu>string</sf:FechaFinVeriFactu>
                    <sf:Incidencia>S</sf:Incidencia>
                </sf:RemisionVoluntaria>
                <sf:RemisionRequerimiento>
                    <sf:RefRequerimiento>string</sf:RefRequerimiento>
                </sf:RemisionRequerimiento>
            </sfR:Cabecera>
            <sfR:TiempoEsperaEnvio>string</sfR:TiempoEsperaEnvio>
            <sfR:EstadoEnvio>Correcto</sfR:EstadoEnvio>
            <sfR:RespuestaLinea>
                <sfR:IDFactura>
                    <sf:IDEmisorFactura>string</sf:IDEmisorFactura>
                    <sf:NumSerieFactura>string</sf:NumSerieFactura>
                    <sf:FechaExpedicionFactura>string</sf:FechaExpedicionFactura>
                </sfR:IDFactura>
                <sfR:EstadoRegistro>Correcto</sfR:EstadoRegistro>
                <sfR:CodigoErrorRegistro>integer</sfR:CodigoErrorRegistro>
                <sfR:DescripcionErrorRegistro>string</sfR:DescripcionErrorRegistro>
                <sfR:CSVRegistroDuplicado>string</sfR:CSVRegistroDuplicado>
                <sfR:EstadoRegistroDuplicado>Correcta</sfR:EstadoRegistroDuplicado>
            </sfR:RespuestaLinea>
        </sfR:RespuestaRegFactuSistemaFacturacion>
    </soapenv:Body>
</soapenv:Envelope>