If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > responseXML urgent...

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-29-03, 09:59
ghostarmor ghostarmor is offline
Registered User
 
Join Date: May 2003
Posts: 4
Question 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);
%>
Reply With Quote
  #2 (permalink)  
Old 05-29-03, 11:30
ghostarmor ghostarmor is offline
Registered User
 
Join Date: May 2003
Posts: 4
it's ok... I had an error in the rest of the code resulting in no actions...
Reply With Quote
  #3 (permalink)  
Old 05-29-03, 12:00
ghostarmor ghostarmor is offline
Registered User
 
Join Date: May 2003
Posts: 4
XML

why does

xmlDoc.documentElement.getAttribute("operation")

not work in JScript?
although it does work with the childNodes?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On