Hola,
estoy haciendo pruebas de envíos con el modelo 140 (con el 240 ya se están haciendo bien)
He recibido la siguiente respuesta:
Código PHP:
<Registro>
<Identificador>
<TicketBai></TicketBai>
</Identificador>
<SituacionRegistro>
<EstadoRegistro>Incorrecto</EstadoRegistro>
<CodigoErrorRegistro>B4_2000001</CodigoErrorRegistro>
<DescripcionErrorRegistroES>El XML del fichero TicketBAI no cumple el esquema.com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]</DescripcionErrorRegistroES>
<DescripcionErrorRegistroEU>TicketBAI fitxategiaren XMLak ez du eskema betetzen.com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]</DescripcionErrorRegistroEU>
</SituacionRegistro>
</Registro>
<Registro>
<Identificador>
<IDFactura>
<SerieFactura>LOC2321</SerieFactura>
<NumFactura>4</NumFactura>
<FechaExpedicionFactura>14-07-2023</FechaExpedicionFactura>
</IDFactura>
</Identificador>
<SituacionRegistro>
<EstadoRegistro>Correcto</EstadoRegistro>
</SituacionRegistro>
</Registro>
No entiendo por qué me ha devuelto un Correcto y un Incorrecto.
El xml del modelo 140 es:
Código PHP:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<lrpficfcsgap:LROEPF140IngresosConFacturaConSGAltaPeticion xmlns:lrpficfcsgap="https://www.batuz.eus/fitxategiak/batuz/LROE/esquemas/LROE_PF_140_1_1_Ingresos_ConfacturaConSG_AltaPeticion_V1_0_2.xsd">
<Cabecera>
<Modelo>140</Modelo>
<Capitulo>1</Capitulo>
<Subcapitulo>1.1</Subcapitulo>
<Operacion>A00</Operacion>
<Version>1.0</Version>
<Ejercicio>2023</Ejercicio>
<ObligadoTributario>
<NIF>99....34W</NIF>
<ApellidosNombreRazonSocial>2jVH6f...BaC4 zpaGp2t3np</ApellidosNombreRazonSocial>
</ObligadoTributario>
</Cabecera>
<Ingresos>
<Ingreso>
<TicketBai/>
<Renta>
<DetalleRenta>
<Epigrafe>273300</Epigrafe>
</DetalleRenta>
</Renta>
</Ingreso>
<Ingreso>
<TicketBai>PD94bWwgdmVyc2lvbj0nMS4wJy...</TicketBai>
<Renta>
<DetalleRenta>
<Epigrafe>273300</Epigrafe>
</DetalleRenta>
</Renta>
</Ingreso>
</Ingresos>
</lrpficfcsgap:LROEPF140IngresosConFacturaConSGAltaPeticion>
¿Alguien me puede arrojar luz? En el xml de la factura TicketBAI no he modificado nada