Imagen

DESCARGA SOFTWARE PARA FACTURA ELECTRONICA DE AQUI.
Facturacion, Validacion, Addendas, Librerias de programacion, etc.


CARTA PORTE V3.1

ECODEX TIENE ESTOS NUEVOS DATOS DE CONTACTO :
Comercializacion y Ventas - Evelia Vicke evicke@ecodex.com.mx 33-16-03-03-48
Soporte - Humberto Guerrero soporte@ecodex.com.mx 33-34-90-46-03


.

Declaración XML inesperada. La declaración XML debe ser el primer nodo del documento y no pueden aparecer espacios en bl

Y para empezar Que es una Factura Electronica? Como empiezo? Necesito Autorizacion? Que medios hay para Facturar Electronicamente? estos y todos los temas de iniciacion deberan estar aqui
Cerrado
gnilsen
Mensajes: 2
Registrado: Dom Nov 05, 2017 7:00 pm

Declaración XML inesperada. La declaración XML debe ser el primer nodo del documento y no pueden aparecer espacios en bl

Mensaje por gnilsen »

I don't speak Spanish but if you are able to reply I can use google translate to read your message.

This is the error that I am receiving:
<Resultado Descripcion="error: Declaración XML inesperada. La declaración XML debe ser el primer nodo del documento y no pueden aparecer espacios en blanco delante. línea 1, posición 128. Trace: en System.Xml.XmlTextReaderImpl.Throw(Exception e) en System.Xml.XmlTextReaderImpl.Throw(String res, String arg) en System.Xml.XmlTextReaderImpl.ParsePI(StringBuilder piInDtdStringBuilder) en System.Xml.XmlTextReaderImpl.ParseElementContent() en System.Xml.XmlTextReaderImpl.Read() en System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r) en System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o) en System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options) en System.Xml.Linq.XDocument.Parse(String text, LoadOptions options) en System.Xml.Linq.XDocument.Parse(String text) en ConfirmacionDocumentos.Controllers.ConfDoctosApiController.InsertarDocumento(InputInsert inputdocumet)" IdRespuesta="9600" Detalle="CFDI33_ValidaConfirmacion; Detalle RespuestaDataPower" />
When I create a document and I have a currency code (Moneda) of either MXN,USD, or CAD I am able to get a signed document back, but if I use any other currency code, like AUD, I get the above error message back. I don't know if by sending my original string and xml document if it is possible to be able to figure out what could be the issue. But it sure would be appreciated if anybody has any idea on what could be causing this issue.

I've attached the original string and xml document for USD which works, and I've attached the AUD original string and xml that doesn't work. The AUD currency code is what gives me the above error message.

Does anybody have any idea what could be causing this issue?

Thank you so much!
Adjuntos
TryThisUSD.xml
(3.36 KiB) Descargado 321 veces
TryThisAUD.xml
(3.34 KiB) Descargado 342 veces
OriginalString33USD.xml
(265 Bytes) Descargado 306 veces
OriginalString33AUD.xml
(248 Bytes) Descargado 329 veces
Avatar de Usuario
Dado
Mensajes: 15981
Registrado: Mar Jul 06, 2010 7:56 pm

Re: Declaración XML inesperada. La declaración XML debe ser el primer nodo del documento y no pueden aparecer espacios e

Mensaje por Dado »

Y que hace un gringou en nuestra factura electronica ? ... en fin, supongo que trabajo es trabajo

The error message says something about a XML declaration, something I think is about the structure of the file, but have review it manually and with some validators and have found nothing wrong.

I took your AUD file and correct some values and succesfully sent to the PAC to seal (timbrado), this is important because the PAC validates more than a hundred parameters before it seals your file, but we get a seal, so nothing is wrong according to the PAC

The values I change was the Emisor and Receptor RFC to the test data, deleted the Descuento (discount) value and corrected the date to "today"

One final thought, how did you get the error ? I mean, did you sent your XML file to some web service? did you coded this service by yourself ? whe you talk about "signing of the file" do you refere to the Emisor Sign or the PAC sign (timbre) ?
Adjuntos
TryThisAUD.xml
(4.29 KiB) Descargado 338 veces
TryThisAUD.pdf
(46.75 KiB) Descargado 315 veces
ADDENDAS? VALIDACION? CODIGO PARA PROGRAMAR TU PROPIA SOLUCION? TODO LO TENEMOS EN WWW.VALIDACFD.COM VISITANOS !!
gnilsen
Mensajes: 2
Registrado: Dom Nov 05, 2017 7:00 pm

Re: Declaración XML inesperada. La declaración XML debe ser el primer nodo del documento y no pueden aparecer espacios e

Mensaje por gnilsen »

Thanks so much for the reply. We are calling: https://pruebasproducto.interfactura.co ... icios.asmx. This is not our webservice. Please forgive me as terminology is not my strong suit with working with this. I meant to say I can't receive a stamped document back. I have since put in a ticket to interFactura and they are looking into it. Thank you so much for your reply and taking the time to do a test with my files I included. It makes me feel better that there isn't anything wrong with what I'm sending. I am hoping at this point it is something on their end because I have exhausted all areas that I can think of. It seems to me it could be something on their end but I will have to wait and see. I will update on what gets resolved with the ticket.
Thank you for your time.
Avatar de Usuario
Dado
Mensajes: 15981
Registrado: Mar Jul 06, 2010 7:56 pm

Re: Declaración XML inesperada. La declaración XML debe ser el primer nodo del documento y no pueden aparecer espacios e

Mensaje por Dado »

I think the same, the file seems right, maybe the problem is in Interfactura's end.
ADDENDAS? VALIDACION? CODIGO PARA PROGRAMAR TU PROPIA SOLUCION? TODO LO TENEMOS EN WWW.VALIDACFD.COM VISITANOS !!
Cerrado