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
load ./chilkat.dll

set xml [new_CkXml]

CkXml_put_Tag $xml "soapenv:Envelope"
CkXml_AddAttribute $xml "xmlns:soapenv" "http://schemas.xmlsoap.org/soap/envelope/"
CkXml_AddAttribute $xml "xmlns:sfLRC" "https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/ConsultaLR.xsd"
CkXml_AddAttribute $xml "xmlns:sf" "https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/SuministroInformacion.xsd"
CkXml_UpdateChildContent $xml "soapenv:Header" ""
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:IDVersion" "1.0"
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:ObligadoEmision|sf:NombreRazon" "string"
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:ObligadoEmision|sf:NIF" "string"
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:IndicadorRepresentante" "S"
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:PeriodoImputacion|sf:Ejercicio" "string"
CkXml_UpdateChildContentInt $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:PeriodoImputacion|sf:Periodo" 01
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:NumSerieFactura" "string"
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:Contraparte|sf:NombreRazon" "string"
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:Contraparte|sf:NIF" "string"
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:FechaExpedicionFactura" ""
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NombreRazon" "string"
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NIF" "string"
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NombreSistemaInformatico" "string"
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:IdSistemaInformatico" "string"
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:Version" "string"
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:NumeroInstalacion" "string"
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:TipoUsoPosibleSoloVerifactu" "S"
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:TipoUsoPosibleMultiOT" "S"
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:SistemaInformatico|sf:IndicadorMultiplesOT" "S"
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:RefExterna" "string"
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:ClavePaginacion|sf:IDEmisorFactura" "string"
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:ClavePaginacion|sf:NumSerieFactura" "string"
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:ClavePaginacion|sf:FechaExpedicionFactura" "string"
CkXml_UpdateChildContent $xml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:DatosAdicionalesRespuesta|sfLRC:MostrarNombreRazonEmisor" "S"
CkXml_UpdateChildContent $xml "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. 
CkXml_put_EmitXmlDecl $xml 0
set soapRequestBody [CkXml_getXml $xml]

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

set http [new_CkHttp]

CkHttp_ClearHeaders $http
CkHttp_SetRequestHeader $http "Content-Type" $contentType
CkHttp_SetRequestHeader $http "SOAPAction" $soapAction

# resp is a CkHttpResponse
set resp [CkHttp_PostXml $http $endpoint $soapRequestBody "utf-8"]
if {[CkHttp_get_LastMethodSuccess $http] == 0} then {
    puts [CkHttp_lastErrorText $http]
    puts "Failed to send SOAP request."
    delete_CkXml $xml
    delete_CkHttp $http
    exit
}

# Get the XML response body.
set responseXml [new_CkXml]

CkHttpResponse_GetBodyXml $resp $responseXml

set statusCode [CkHttpResponse_get_StatusCode $resp]
puts "response status code: $statusCode"

delete_CkHttpResponse $resp

# If the status code does not indicate succcess, then show the response XML,
# which probably contains error information.
if {$statusCode != 200} then {
    puts [CkXml_getXml $responseXml]
    delete_CkXml $xml
    delete_CkHttp $http
    delete_CkXml $responseXml
    exit
}

puts [CkXml_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).

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

delete_CkXml $xml
delete_CkHttp $http
delete_CkXml $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>