Results 1 to 5 of 5

Thread: AjxSoapDoc bug under IE6 only

  1. #1
    Heladito is offline Project Contributor
    Join Date
    Oct 2005
    Location
    Switzerland
    Posts
    54
    Rep Power
    9

    Default 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"?>
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Body>
    <GetMenuRequestResp xmlns="urn:jahia">
    <name>Jeff</name>
    <age>28</age>
    <height>1.80</height>
    </GetMenuRequestResp>
    </soap:Body>
    </soap:Envelope>

    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 ?

  2. #2
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    18

    Default

    I think 2 is correct. Soap envelope and soap body in your example. The CSFE code is designed for our SOAP commands so invalid PDU is given since your SOAP is not expected. You really should use AjaxRpc and friends to write your own transport layer.

  3. #3
    Heladito is offline Project Contributor
    Join Date
    Oct 2005
    Location
    Switzerland
    Posts
    54
    Rep Power
    9

    Default

    Quote Originally Posted by KevinH
    I think 2 is correct. Soap envelope and soap body in your example. The CSFE code is designed for our SOAP commands so invalid PDU is given since your SOAP is not expected. You really should use AjaxRpc and friends to write your own transport layer.

    But soap body is a child of soap envelope !! See below the indented xml document. Anyway, there is still a problem since Firefox detects that there is only 1 child, and curiously, I'd rather beleive what Firefox says...

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
       <soap:Body>
          <GetMenuRequestResp xmlns="urn:jahia">
             <name>Jeff</name>
             <age>28</age>
             <height>1.80</height>
          </GetMenuRequestResp>
       </soap:Body>
    </soap:Envelope>

  4. #4
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default 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.

  5. #5
    Heladito is offline Project Contributor
    Join Date
    Oct 2005
    Location
    Switzerland
    Posts
    54
    Rep Power
    9

    Default

    I have actually switched to AjxXmlDoc in the meanTime since I don't have to use SOAP in my application.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Backups fail after workaround for bug 10827
    By warbirdcharles in forum Administrators
    Replies: 1
    Last Post: 07-17-2007, 12:07 PM
  2. will be the accent char bug fixed anytime soon?
    By lfarkas in forum Developers
    Replies: 1
    Last Post: 05-15-2006, 03:19 AM
  3. serious IMAP download bug (6326)
    By ericding in forum Developers
    Replies: 5
    Last Post: 04-05-2006, 10:34 AM
  4. i18n, bug 5912 and other considerations
    By Kafka in forum I18N/L10N - Translations
    Replies: 9
    Last Post: 02-22-2006, 04:50 PM
  5. Bug in AjxSoapDoc?
    By smies in forum Developers
    Replies: 2
    Last Post: 11-05-2005, 02:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •