30. Januar 2015 13:39
VAR:
XMLHTTP@60000 : Automation "{F5078F18-C551-11D3-89B9-0000F81FE221} 6.0:{88D96A0A-F192-11D4-A65F-0040963251E5}:'Microsoft XML, v6.0'.XMLHTTP60";
XMLString@60001 : Text[1024];
responseText@60007 : Text[1024];
Code:
XMLString:='http://emmaster.vic.int/bde.dev/index.php/DataHandling.Push2NAV';
CREATE(XMLHTTP);
XMLHTTP.open('GET', XMLString, FALSE);
XMLHTTP.send('');
responseText:=XMLHTTP.responseText();
VAR:
XMLHTTP@60000 : Automation "{F5078F18-C551-11D3-89B9-0000F81FE221} 6.0:{88D96A0A-F192-11D4-A65F-0040963251E5}:'Microsoft XML, v6.0'.XMLHTTP60";
XMLString@60001 : Text[1024];
XMLDoc@60003 : Automation "{F5078F18-C551-11D3-89B9-0000F81FE221} 6.0:{F5078F32-C551-11D3-89B9-0000F81FE221}:'Microsoft XML, v6.0'.DOMDocument30";
iStream@60004 : InStream;
TempTable@60010 : Record 99008535;
Code:
XMLString:='http://emmaster.vic.int/bde.dev/index.php/DataHandling.Push2NAV';
CREATE(XMLHTTP);
XMLHTTP.open('GET', XMLString, FALSE);
XMLHTTP.send('');
CLEAR(TempTable);
TempTable.Blob.CREATEINSTREAM(iStream);
iStream.READ(XMLHTTP.responseStream());
IF ISCLEAR(XMLDoc) THEN CREATE(XMLDoc);
//Hier speichere ich in eine Datei nur um das Ergebnis zu prüfen
XMLDoc.load(iStream);
XMLDoc.save('C:\Temp\XMLRequest.txt');
iStream.READ(XMLHTTP.responseStream());
iStream:=(XMLHTTP.responseStream());
VAR
XMLHTTP@60000 : Automation "{F5078F18-C551-11D3-89B9-0000F81FE221} 6.0:{88D96A0A-F192-11D4-A65F-0040963251E5}:'Microsoft XML, v6.0'.XMLHTTP60";
XMLString@60001 : Text[1024];
responseBigText@60002 : BigText;
oStream@60006 : OutStream;
ThisFIle@60005 : File;
Code:
XMLString:='http://emmaster.vic.int/bde.dev/index.php/DataHandling.Push2NAV';
CREATE(XMLHTTP);
XMLHTTP.open('GET', XMLString, FALSE);
XMLHTTP.send('');
responseBigText.ADDTEXT(XMLHTTP.responseText());
ThisFIle.TEXTMODE(TRUE);
ThisFIle.CREATE('c:\dammit.txt');
ThisFIle.CREATEOUTSTREAM(oStream);
responseBigText.WRITE(oStream);
ThisFIle.CLOSE;
1. Februar 2015 19:26
2. Februar 2015 12:30
XMLString:='http://emmaster.vic.int/bde.dev/index.php/DataHandling.Push2NAV';
CREATE(XMLHTTP);
XMLHTTP.open('GET', XMLString, FALSE);
XMLHTTP.send('');
ThisFIle.TEXTMODE(TRUE);
ThisFIle.CREATE('c:\dammit.txt');
ThisFIle.WRITE(XMLHTTP.responseText());
ThisFIle.CLOSE;
2. Februar 2015 14:36
Variant := WinHTTP.ResponseStream;
InStrm := Variant;
BigText.READ(InStrm);