30. Juni 2005 10:00
4. Juli 2005 21:01
Saalek hat geschrieben:Hi JanV
It is posible
Variable Definition
Name DataType Subtype Length
XMLDoc Automation 'Microsoft XML, v3.0'.DOMDocument30
XMLHTTP Automation 'Microsoft XML, v3.0'.XMLHTTP30
Code
CREATE(XMLHTTP);
XMLHTTP.open('POST','http://www.Domain.com/page.asp',FALSE);
XMLHTTP.send(XMLDoc);
In Page.ASP, I save the XMLDoc on Hard Disk (For example).
Bye
5. Juli 2005 08:15
5. Juli 2005 09:04
6. Juni 2007 00:14
IF (ISCLEAR(XmlHttpRequest)) THEN
CREATE(XmlHttpRequest);
IF (ISCLEAR(XMLDoc)) THEN
CREATE(XMLDoc);
// set a string for every method to send it as an xml to the server
XMLDoc.loadXML(XmlString); <- dein xml document (als String)!!!!
XmlHttpRequest.open('POST', 'https://xxx.net');
XmlHttpRequest.setRequestHeader('Host', 'https://xxxnet');
XmlHttpRequest.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
XmlHttpRequest.setRequestHeader('Content-Length', FORMAT(STRLEN(XmlString)));
XmlHttpRequest.setRequestHeader('Timeout', '5000');
XmlHttpRequest.send(XmlString);
// get the status as an answer from the server, 4 = okay
IF XmlHttpRequest.readyState = 4 THEN BEGIN
IF EVALUATE(Filesize,XmlHttpRequest.getResponseHeader('Content-Length')) THEN;
// load the result into the xmldom
XMLDoc := (XmlHttpRequest.responseXML);
ResponseXmlDoc := XMLDoc;
XMLDoc.save('c:\xxx.xml');
EXIT(TRUE);
END;
6. Juni 2007 07:09
20. August 2007 09:09