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 <CkXmlW.h>
#include <CkHttpW.h>
#include <CkHttpResponseW.h>
void ChilkatSample(void)
{
CkXmlW xml;
xml.put_Tag(L"soapenv:Envelope");
xml.AddAttribute(L"xmlns:soapenv",L"http://schemas.xmlsoap.org/soap/envelope/");
xml.AddAttribute(L"xmlns:sfLRC",L"https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/ConsultaLR.xsd");
xml.AddAttribute(L"xmlns:sf",L"https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/SuministroInformacion.xsd");
xml.UpdateChildContent(L"soapenv:Header",L"");
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:IDVersion",L"1.0");
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:ObligadoEmision|sf:NombreRazon",L"string");
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:ObligadoEmision|sf:NIF",L"string");
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:IndicadorRepresentante",L"S");
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:PeriodoImputacion|sf:Ejercicio",L"string");
xml.UpdateChildContentInt(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:PeriodoImputacion|sf:Periodo",01);
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:NumSerieFactura",L"string");
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:Contraparte|sf:NombreRazon",L"string");
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:Contraparte|sf:NIF",L"string");
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:FechaExpedicionFactura",L"");
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NombreRazon",L"string");
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NIF",L"string");
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NombreSistemaInformatico",L"string");
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:IdSistemaInformatico",L"string");
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:Version",L"string");
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NumeroInstalacion",L"string");
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:TipoUsoPosibleSoloVerifactu",L"S");
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:TipoUsoPosibleMultiOT",L"S");
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:IndicadorMultiplesOT",L"S");
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:RefExterna",L"string");
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:ClavePaginacion|sf:IDEmisorFactura",L"string");
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:ClavePaginacion|sf:NumSerieFactura",L"string");
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:ClavePaginacion|sf:FechaExpedicionFactura",L"string");
xml.UpdateChildContent(L"soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:DatosAdicionalesRespuesta|sfLRC:MostrarNombreRazonEmisor",L"S");
xml.UpdateChildContent(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.
xml.put_EmitXmlDecl(false);
const wchar_t *soapRequestBody = xml.getXml();
const wchar_t *endpoint = L"https://www1.agenciatributaria.gob.es/wlpl/TIKE-CONT/ws/SistemaFacturacion/VerifactuSOAP";
const wchar_t *soapAction = L"";
// For SOAP requests, the standard Content-Type is usually set to "text/xml" or "application/soap+xml"
const wchar_t *contentType = L"text/xml";
CkHttpW http;
http.ClearHeaders();
http.SetRequestHeader(L"Content-Type",contentType);
http.SetRequestHeader(L"SOAPAction",soapAction);
CkHttpResponseW *resp = http.PostXml(endpoint,soapRequestBody,L"utf-8");
if (http.get_LastMethodSuccess() == false) {
wprintf(L"%s\n",http.lastErrorText());
wprintf(L"Failed to send SOAP request.\n");
return;
}
// Get the XML response body.
CkXmlW responseXml;
resp->GetBodyXml(responseXml);
int statusCode = resp->get_StatusCode();
wprintf(L"response status code: %d\n",statusCode);
delete 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",responseXml.getXml());
return;
}
wprintf(L"%s\n",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).
const wchar_t *IDVersion = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:Cabecera|*:IDVersion");
const wchar_t *NombreRazon = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:Cabecera|*:ObligadoEmision|*:NombreRazon");
const wchar_t *NIF = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:Cabecera|*:ObligadoEmision|*:NIF");
const wchar_t *IndicadorRepresentante = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:Cabecera|*:IndicadorRepresentante");
const wchar_t *Ejercicio = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:PeriodoImputacion|*:Ejercicio");
int Periodo = responseXml.GetChildIntValue(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:PeriodoImputacion|*:Periodo");
const wchar_t *IndicadorPaginacion = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:IndicadorPaginacion");
const wchar_t *ResultadoConsulta = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:ResultadoConsulta");
const wchar_t *IDEmisorFactura = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:IDFactura|*:IDEmisorFactura");
const wchar_t *NumSerieFactura = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:IDFactura|*:NumSerieFactura");
const wchar_t *FechaExpedicionFactura = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:IDFactura|*:FechaExpedicionFactura");
const wchar_t *NombreRazonEmisor = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:NombreRazonEmisor");
const wchar_t *RefExterna = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:RefExterna");
const wchar_t *Subsanacion = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Subsanacion");
const wchar_t *RechazoPrevio = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:RechazoPrevio");
const wchar_t *SinRegistroPrevio = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SinRegistroPrevio");
const wchar_t *GeneradoPor = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:GeneradoPor");
NombreRazon = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Generador|*:NombreRazon");
NIF = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Generador|*:NIF");
const wchar_t *TipoFactura = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:TipoFactura");
const wchar_t *TipoRectificativa = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:TipoRectificativa");
IDEmisorFactura = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasRectificadas|*:IDFacturaRectificada|*:IDEmisorFactura");
NumSerieFactura = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasRectificadas|*:IDFacturaRectificada|*:NumSerieFactura");
FechaExpedicionFactura = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasRectificadas|*:IDFacturaRectificada|*:FechaExpedicionFactura");
IDEmisorFactura = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasSustituidas|*:IDFacturaSustituida|*:IDEmisorFactura");
NumSerieFactura = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasSustituidas|*:IDFacturaSustituida|*:NumSerieFactura");
FechaExpedicionFactura = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasSustituidas|*:IDFacturaSustituida|*:FechaExpedicionFactura");
const wchar_t *BaseRectificada = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:ImporteRectificacion|*:BaseRectificada");
const wchar_t *CuotaRectificada = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:ImporteRectificacion|*:CuotaRectificada");
const wchar_t *CuotaRecargoRectificado = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:ImporteRectificacion|*:CuotaRecargoRectificado");
const wchar_t *FechaOperacion = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FechaOperacion");
const wchar_t *DescripcionOperacion = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:DescripcionOperacion");
const wchar_t *FacturaSimplificadaArt7273 = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturaSimplificadaArt7273");
const wchar_t *FacturaSinIdentifDestinatarioArt61d = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturaSinIdentifDestinatarioArt61d");
const wchar_t *Macrodato = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Macrodato");
const wchar_t *EmitidaPorTerceroODestinatario = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:EmitidaPorTerceroODestinatario");
NombreRazon = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Tercero|*:NombreRazon");
NIF = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Tercero|*:NIF");
NombreRazon = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Destinatarios|*:IDDestinatario|*:NombreRazon");
NIF = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Destinatarios|*:IDDestinatario|*:NIF");
const wchar_t *Cupon = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Cupon");
int Impuesto = responseXml.GetChildIntValue(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:Impuesto");
int ClaveRegimen = responseXml.GetChildIntValue(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:ClaveRegimen");
const wchar_t *CalificacionOperacion = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:CalificacionOperacion");
const wchar_t *TipoImpositivo = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:TipoImpositivo");
const wchar_t *BaseImponibleOimporteNoSujeto = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:BaseImponibleOimporteNoSujeto");
const wchar_t *BaseImponibleACoste = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:BaseImponibleACoste");
const wchar_t *CuotaRepercutida = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:CuotaRepercutida");
const wchar_t *TipoRecargoEquivalencia = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:TipoRecargoEquivalencia");
const wchar_t *CuotaRecargoEquivalencia = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:CuotaRecargoEquivalencia");
const wchar_t *CuotaTotal = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:CuotaTotal");
const wchar_t *ImporteTotal = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:ImporteTotal");
NombreRazon = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:NombreRazon");
NIF = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:NIF");
const wchar_t *NombreSistemaInformatico = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:NombreSistemaInformatico");
const wchar_t *IdSistemaInformatico = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:IdSistemaInformatico");
const wchar_t *Version = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:Version");
const wchar_t *NumeroInstalacion = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:NumeroInstalacion");
const wchar_t *TipoUsoPosibleSoloVerifactu = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:TipoUsoPosibleSoloVerifactu");
const wchar_t *TipoUsoPosibleMultiOT = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:TipoUsoPosibleMultiOT");
const wchar_t *IndicadorMultiplesOT = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:IndicadorMultiplesOT");
const wchar_t *FechaHoraHusoGenRegistro = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FechaHoraHusoGenRegistro");
const wchar_t *NumRegistroAcuerdoFacturacion = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:NumRegistroAcuerdoFacturacion");
const wchar_t *IdAcuerdoSistemaInformatico = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:IdAcuerdoSistemaInformatico");
int TipoHuella = responseXml.GetChildIntValue(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:TipoHuella");
const wchar_t *Huella = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Huella");
const wchar_t *NifRepresentante = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:NifRepresentante");
const wchar_t *FechaFinVeriFactu = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FechaFinVeriFactu");
const wchar_t *Incidencia = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Incidencia");
const wchar_t *NIFPresentador = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosPresentacion|*:NIFPresentador");
const wchar_t *TimestampPresentacion = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosPresentacion|*:TimestampPresentacion");
const wchar_t *IdPeticion = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosPresentacion|*:IdPeticion");
const wchar_t *TimestampUltimaModificacion = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:EstadoRegistro|*:TimestampUltimaModificacion");
const wchar_t *EstadoRegistro = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:EstadoRegistro|*:EstadoRegistro");
const wchar_t *CodigoErrorRegistro = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:EstadoRegistro|*:CodigoErrorRegistro");
const wchar_t *DescripcionErrorRegistro = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:EstadoRegistro|*:DescripcionErrorRegistro");
IDEmisorFactura = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:ClavePaginacion|*:IDEmisorFactura");
NumSerieFactura = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:ClavePaginacion|*:NumSerieFactura");
FechaExpedicionFactura = responseXml.getChildContent(L"*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:ClavePaginacion|*:FechaExpedicionFactura");
}
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>