AjxSoapDoc bug under IE6 only
Using the ZmCsfeAsynchCommand to test out an AJAX call from my custom example with my custom servlet.
MyServlet generates the following response message:
<?xml version="1.0" encoding="UTF-8"?>
I have no problems processing the message under Firefox but with IE6, I get the following error msg, thrown by the _check() function of the AjxSoapDoc class:
AjxException: MSG=INVALID SOAP PDU code=INVALID_PDU method=AjxSoapDoc.createFromXml:1 detail=undefined
more debugging showed that
if (doc.childNodes.length != 1) was failing because
doc.childNodes.length = 2 under IE6, WHICH IS JUST CRAZY !!
Any ideas how I can solve this ?
We're not ignoring the XML prolog.
Yeah, I think you're right. Check out section 2.8 of the XML spec -- you're seeing the XML declaration, but there can also be comments and/or processing instructions and/or extraneous whitespace in there. If you've got the time, can you tweak the code to ignore the prolog and submit the patch? We'd greatly appreciate it.