[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: XML parse failed



Thanks,
I noticed that when I was proof reading my original post and then
changed the program but forgot to change my email. I received the same
error after the change.
Looking at the httpapi_debug.txt file, which I should have done before
my original post, I noticed that I'm receiving the following error:
HTTP/1.1 404 Not Found and there is some html in there stating the page
cannot be found. Perhaps this html is what is trying to be parsed and
causing the error. 
I'll start tracking down why I'm receiving this error.


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Larry Ducie
Sent: Wednesday, September 27, 2006 6:52 PM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: XML parse failed

Hi Griz,

Your soap Body element opens with a namespace defined as soap-ENV but
closes 
with a namespace of soap. I would imagine that the parser would consider

that a mismatch.

Try changing:
Soap =
  '<?xml version="1.0" encoding="utf-8"?> '
  +'<soap:Envelope'
  + 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; '
  + 'xmlns:xsd="http://www.w3.org/2001/XMLSchema"; '
  + 'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";> '
     +'<soap-ENV:Body> '
         +'<GetInfoByZIP xmlns="http://www.webserviceX.NET";> '
            +'<USZip>' +%Trim(InZipCode) +'</USZip> '
         +'</GetInfoByZIP>'
     +'</soap:Body> '
  +'</soap:Envelope>';

To:
Soap =
  '<?xml version="1.0" encoding="utf-8"?> '
  +'<soap:Envelope'
  + 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; '
  + 'xmlns:xsd="http://www.w3.org/2001/XMLSchema"; '
  + 'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";> '
     +'<soap:Body> '
         +'<GetInfoByZIP xmlns="http://www.webserviceX.NET";> '
            +'<USZip>' +%Trim(InZipCode) +'</USZip> '
         +'</GetInfoByZIP>'
     +'</soap:Body> '
  +'</soap:Envelope>';

The difference is on line 6 - <soap-ENV:Body> changed to <soap:Body>

Cheers

Larry Ducie

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------


-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------