Hello
Who knows how to send XML in POST method as variable?
Direct send, don't work:
=============================================
XMLDoc Automation 'Microsoft XML, v6.0'.DOMDocument
locautXmlHttp Automation 'Microsoft XML, v6.0'.ServerXMLHTTP60
=============================================
IF ISCLEAR(XMLDoc) THEN
CREATE(XMLDoc);
XMLDoc.async := FALSE;
XMLDoc.load('C:\TEMP\1.xml');
locautXmlHttp.setTimeouts(5000,160*0,160*1000,600*1000);
locautXmlHttp.open('POST',req_link,FALSE);
locautXmlHttp.setRequestHeader('Content-type','application/xml; charset="utf-8"');
locautXmlHttp.send(XMLDoc);
XMLDoc.load(locautXmlHttp.responseBody);
XMLDoc.save('C:\TEMP\2.xml');
===========================================
In XML file ('C:\TEMP\2.xml') error: $_POST didnt filled
Tryed also:
1. locautXmlHttp.send('xml_request='+URLencode(XMLDoc.text));
2. req_link := req_link+'?xml_request='+URLencode(XMLDoc.text);
3. replaced everywhere URLencode(XMLDoc.text) on '<?xml?><DeliveryRequest/>'
all times same error
maybe any ocx can solve it?
0