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
integer li_rc
oleobject loo_Xml
string ls_SoapRequestBody
string ls_Endpoint
string ls_SoapAction
string ls_ContentType
oleobject loo_Http
oleobject loo_Resp
oleobject loo_ResponseXml
integer li_StatusCode
string ls_IDVersion
string ls_NombreRazon
string ls_NIF
string ls_IndicadorRepresentante
string ls_Ejercicio
integer li_Periodo
string ls_IndicadorPaginacion
string ls_ResultadoConsulta
string ls_IDEmisorFactura
string ls_NumSerieFactura
string ls_FechaExpedicionFactura
string ls_NombreRazonEmisor
string ls_RefExterna
string ls_Subsanacion
string ls_RechazoPrevio
string ls_SinRegistroPrevio
string ls_GeneradoPor
string ls_TipoFactura
string ls_TipoRectificativa
string ls_BaseRectificada
string ls_CuotaRectificada
string ls_CuotaRecargoRectificado
string ls_FechaOperacion
string ls_DescripcionOperacion
string ls_FacturaSimplificadaArt7273
string ls_FacturaSinIdentifDestinatarioArt61d
string ls_Macrodato
string ls_EmitidaPorTerceroODestinatario
string ls_Cupon
integer li_Impuesto
integer li_ClaveRegimen
string ls_CalificacionOperacion
string ls_TipoImpositivo
string ls_BaseImponibleOimporteNoSujeto
string ls_BaseImponibleACoste
string ls_CuotaRepercutida
string ls_TipoRecargoEquivalencia
string ls_CuotaRecargoEquivalencia
string ls_CuotaTotal
string ls_ImporteTotal
string ls_NombreSistemaInformatico
string ls_IdSistemaInformatico
string ls_Version
string ls_NumeroInstalacion
string ls_TipoUsoPosibleSoloVerifactu
string ls_TipoUsoPosibleMultiOT
string ls_IndicadorMultiplesOT
string ls_FechaHoraHusoGenRegistro
string ls_NumRegistroAcuerdoFacturacion
string ls_IdAcuerdoSistemaInformatico
integer li_TipoHuella
string ls_Huella
string ls_NifRepresentante
string ls_FechaFinVeriFactu
string ls_Incidencia
string ls_NIFPresentador
string ls_TimestampPresentacion
string ls_IdPeticion
string ls_TimestampUltimaModificacion
string ls_EstadoRegistro
string ls_CodigoErrorRegistro
string ls_DescripcionErrorRegistro
loo_Xml = create oleobject
// Use "Chilkat_9_5_0.Xml" for versions of Chilkat < 10.0.0
li_rc = loo_Xml.ConnectToNewObject("Chilkat.Xml")
if li_rc < 0 then
destroy loo_Xml
MessageBox("Error","Connecting to COM object failed")
return
end if
loo_Xml.Tag = "soapenv:Envelope"
loo_Xml.AddAttribute("xmlns:soapenv","http://schemas.xmlsoap.org/soap/envelope/")
loo_Xml.AddAttribute("xmlns:sfLRC","https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/ConsultaLR.xsd")
loo_Xml.AddAttribute("xmlns:sf","https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/SuministroInformacion.xsd")
loo_Xml.UpdateChildContent("soapenv:Header","")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:IDVersion","1.0")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:ObligadoEmision|sf:NombreRazon","string")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:ObligadoEmision|sf:NIF","string")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:IndicadorRepresentante","S")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:PeriodoImputacion|sf:Ejercicio","string")
loo_Xml.UpdateChildContentInt("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:PeriodoImputacion|sf:Periodo",01)
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:NumSerieFactura","string")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:Contraparte|sf:NombreRazon","string")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:Contraparte|sf:NIF","string")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:FechaExpedicionFactura","")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NombreRazon","string")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NIF","string")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NombreSistemaInformatico","string")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:IdSistemaInformatico","string")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:Version","string")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NumeroInstalacion","string")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:TipoUsoPosibleSoloVerifactu","S")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:TipoUsoPosibleMultiOT","S")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:IndicadorMultiplesOT","S")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:RefExterna","string")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:ClavePaginacion|sf:IDEmisorFactura","string")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:ClavePaginacion|sf:NumSerieFactura","string")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:ClavePaginacion|sf:FechaExpedicionFactura","string")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:DatosAdicionalesRespuesta|sfLRC:MostrarNombreRazonEmisor","S")
loo_Xml.UpdateChildContent("soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:DatosAdicionalesRespuesta|sfLRC:MostrarSistemaInformatico","S")
// In a SOAP HTTP request, including the XML declaration (<?xml version="1.0" encoding="UTF-8"?>) in the XML body is generally not required.
loo_Xml.EmitXmlDecl = 0
ls_SoapRequestBody = loo_Xml.GetXml()
ls_Endpoint = "https://www1.agenciatributaria.gob.es/wlpl/TIKE-CONT/ws/SistemaFacturacion/VerifactuSOAP"
ls_SoapAction = ""
// For SOAP requests, the standard Content-Type is usually set to "text/xml" or "application/soap+xml"
ls_ContentType = "text/xml"
loo_Http = create oleobject
// Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
li_rc = loo_Http.ConnectToNewObject("Chilkat.Http")
loo_Http.ClearHeaders()
loo_Http.SetRequestHeader("Content-Type",ls_ContentType)
loo_Http.SetRequestHeader("SOAPAction",ls_SoapAction)
loo_Resp = loo_Http.PostXml(ls_Endpoint,ls_SoapRequestBody,"utf-8")
if loo_Http.LastMethodSuccess = 0 then
Write-Debug loo_Http.LastErrorText
Write-Debug "Failed to send SOAP request."
destroy loo_Xml
destroy loo_Http
return
end if
// Get the XML response body.
loo_ResponseXml = create oleobject
// Use "Chilkat_9_5_0.Xml" for versions of Chilkat < 10.0.0
li_rc = loo_ResponseXml.ConnectToNewObject("Chilkat.Xml")
loo_Resp.GetBodyXml(loo_ResponseXml)
li_StatusCode = loo_Resp.StatusCode
Write-Debug "response status code: " + string(li_StatusCode)
destroy loo_Resp
// If the status code does not indicate succcess, then show the response XML,
// which probably contains error information.
if li_StatusCode <> 200 then
Write-Debug loo_ResponseXml.GetXml()
destroy loo_Xml
destroy loo_Http
destroy loo_ResponseXml
return
end if
Write-Debug loo_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).
ls_IDVersion = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:Cabecera|*:IDVersion")
ls_NombreRazon = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:Cabecera|*:ObligadoEmision|*:NombreRazon")
ls_NIF = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:Cabecera|*:ObligadoEmision|*:NIF")
ls_IndicadorRepresentante = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:Cabecera|*:IndicadorRepresentante")
ls_Ejercicio = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:PeriodoImputacion|*:Ejercicio")
li_Periodo = loo_ResponseXml.GetChildIntValue("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:PeriodoImputacion|*:Periodo")
ls_IndicadorPaginacion = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:IndicadorPaginacion")
ls_ResultadoConsulta = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:ResultadoConsulta")
ls_IDEmisorFactura = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:IDFactura|*:IDEmisorFactura")
ls_NumSerieFactura = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:IDFactura|*:NumSerieFactura")
ls_FechaExpedicionFactura = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:IDFactura|*:FechaExpedicionFactura")
ls_NombreRazonEmisor = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:NombreRazonEmisor")
ls_RefExterna = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:RefExterna")
ls_Subsanacion = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Subsanacion")
ls_RechazoPrevio = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:RechazoPrevio")
ls_SinRegistroPrevio = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SinRegistroPrevio")
ls_GeneradoPor = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:GeneradoPor")
ls_NombreRazon = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Generador|*:NombreRazon")
ls_NIF = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Generador|*:NIF")
ls_TipoFactura = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:TipoFactura")
ls_TipoRectificativa = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:TipoRectificativa")
ls_IDEmisorFactura = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasRectificadas|*:IDFacturaRectificada|*:IDEmisorFactura")
ls_NumSerieFactura = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasRectificadas|*:IDFacturaRectificada|*:NumSerieFactura")
ls_FechaExpedicionFactura = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasRectificadas|*:IDFacturaRectificada|*:FechaExpedicionFactura")
ls_IDEmisorFactura = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasSustituidas|*:IDFacturaSustituida|*:IDEmisorFactura")
ls_NumSerieFactura = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasSustituidas|*:IDFacturaSustituida|*:NumSerieFactura")
ls_FechaExpedicionFactura = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturasSustituidas|*:IDFacturaSustituida|*:FechaExpedicionFactura")
ls_BaseRectificada = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:ImporteRectificacion|*:BaseRectificada")
ls_CuotaRectificada = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:ImporteRectificacion|*:CuotaRectificada")
ls_CuotaRecargoRectificado = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:ImporteRectificacion|*:CuotaRecargoRectificado")
ls_FechaOperacion = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FechaOperacion")
ls_DescripcionOperacion = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:DescripcionOperacion")
ls_FacturaSimplificadaArt7273 = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturaSimplificadaArt7273")
ls_FacturaSinIdentifDestinatarioArt61d = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FacturaSinIdentifDestinatarioArt61d")
ls_Macrodato = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Macrodato")
ls_EmitidaPorTerceroODestinatario = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:EmitidaPorTerceroODestinatario")
ls_NombreRazon = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Tercero|*:NombreRazon")
ls_NIF = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Tercero|*:NIF")
ls_NombreRazon = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Destinatarios|*:IDDestinatario|*:NombreRazon")
ls_NIF = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Destinatarios|*:IDDestinatario|*:NIF")
ls_Cupon = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Cupon")
li_Impuesto = loo_ResponseXml.GetChildIntValue("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:Impuesto")
li_ClaveRegimen = loo_ResponseXml.GetChildIntValue("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:ClaveRegimen")
ls_CalificacionOperacion = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:CalificacionOperacion")
ls_TipoImpositivo = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:TipoImpositivo")
ls_BaseImponibleOimporteNoSujeto = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:BaseImponibleOimporteNoSujeto")
ls_BaseImponibleACoste = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:BaseImponibleACoste")
ls_CuotaRepercutida = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:CuotaRepercutida")
ls_TipoRecargoEquivalencia = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:TipoRecargoEquivalencia")
ls_CuotaRecargoEquivalencia = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Desglose|*:DetalleDesglose|*:CuotaRecargoEquivalencia")
ls_CuotaTotal = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:CuotaTotal")
ls_ImporteTotal = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:ImporteTotal")
ls_NombreRazon = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:NombreRazon")
ls_NIF = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:NIF")
ls_NombreSistemaInformatico = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:NombreSistemaInformatico")
ls_IdSistemaInformatico = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:IdSistemaInformatico")
ls_Version = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:Version")
ls_NumeroInstalacion = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:NumeroInstalacion")
ls_TipoUsoPosibleSoloVerifactu = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:TipoUsoPosibleSoloVerifactu")
ls_TipoUsoPosibleMultiOT = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:TipoUsoPosibleMultiOT")
ls_IndicadorMultiplesOT = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:SistemaInformatico|*:IndicadorMultiplesOT")
ls_FechaHoraHusoGenRegistro = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FechaHoraHusoGenRegistro")
ls_NumRegistroAcuerdoFacturacion = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:NumRegistroAcuerdoFacturacion")
ls_IdAcuerdoSistemaInformatico = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:IdAcuerdoSistemaInformatico")
li_TipoHuella = loo_ResponseXml.GetChildIntValue("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:TipoHuella")
ls_Huella = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Huella")
ls_NifRepresentante = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:NifRepresentante")
ls_FechaFinVeriFactu = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:FechaFinVeriFactu")
ls_Incidencia = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosRegistroFacturacion|*:Incidencia")
ls_NIFPresentador = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosPresentacion|*:NIFPresentador")
ls_TimestampPresentacion = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosPresentacion|*:TimestampPresentacion")
ls_IdPeticion = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:DatosPresentacion|*:IdPeticion")
ls_TimestampUltimaModificacion = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:EstadoRegistro|*:TimestampUltimaModificacion")
ls_EstadoRegistro = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:EstadoRegistro|*:EstadoRegistro")
ls_CodigoErrorRegistro = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:EstadoRegistro|*:CodigoErrorRegistro")
ls_DescripcionErrorRegistro = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:RegistroRespuestaConsultaFactuSistemaFacturacion|*:EstadoRegistro|*:DescripcionErrorRegistro")
ls_IDEmisorFactura = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:ClavePaginacion|*:IDEmisorFactura")
ls_NumSerieFactura = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:ClavePaginacion|*:NumSerieFactura")
ls_FechaExpedicionFactura = loo_ResponseXml.GetChildContent("*:Body|*:RespuestaConsultaFactuSistemaFacturacion|*:ClavePaginacion|*:FechaExpedicionFactura")
destroy loo_Xml
destroy loo_Http
destroy loo_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>