Results 1 to 3 of 3
  1. #1
    Join Date
    May 2003
    Posts
    4

    Question Unanswered: responseXML urgent...

    OK i've got a big problem... and an urgent one.
    based on the code below i'm trying to retreive data from an access file.

    the sending of the XML works fine (tested by saving)

    the problem is responseXML; it does not get any data from the server.

    how can I solve this???



    Code (JScript):

    function SendXML(XMLvar)
    {
    // XML om te posten
    var xmlDoc = Server.CreateObject ("MSXML2.DOMDocument.4.0");
    xmlDoc.loadXML(XMLvar);

    // xml file zenden
    var XMLviaHTTP;
    XMLviaHTTP = Server.CreateObject ("MSXML2.ServerXMLHTTP.4.0");
    XMLviaHTTP.open ("POST", "http://someserver/CommInterFace/PROCESSDATA.asp", false);
    XMLviaHTTP.send (xmlDoc);

    xmldoc2 = XMLviaHTTP.responseXML;
    xmldoc2.save(Server.mapPath("../data/ontvangen.xml"));
    }


    Code (Server-Side JScript): (PROCESSDATA.asp)
    <%
    Response.Expires=-1000;
    var xmlDoc = Server.CreateObject("MSXML2.DOMDocument.4.0");
    xmlDoc.load(Request);

    //a lot of code to change the xml data...

    Response.ContentType="text/xml";
    xmlDoc.save(Response);
    %>

  2. #2
    Join Date
    May 2003
    Posts
    4
    it's ok... I had an error in the rest of the code resulting in no actions...

  3. #3
    Join Date
    May 2003
    Posts
    4

    XML

    why does

    xmlDoc.documentElement.getAttribute("operation")

    not work in JScript?
    although it does work with the childNodes?

Posting Permissions

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