21. Juli 2014 08:48
CLEAR(UPSServer);
CLEAR(xml_docu);
CREATE(xml_docu);
CREATE(UPSServer);
xml_docu.async := FALSE;
ReqPart1 := '<?xml version="1.0"?>' + '<AccessRequest ' +
'xml:lang="en-US">' + '<AccessLicenseNumber>' + accesskey + '</AccessLicenseNumber>' +
'<UserId>' + txtuserid + '</UserId>' + '<Password>' + password + '</Password>' +
'</AccessRequest>' + '<?xml version="1.0"?>' + '<TrackRequest xml:lang=' +
'"en-US">' + '<Request>' + '<RequestAction>Track</RequestAction>' +
'<RequestOption>15</RequestOption>' + '</Request>' + '<TrackingNumber>';
ReqPart2 := '</TrackingNumber></TrackRequest>';
UPSServer.open('POST', 'https://www.ups.com/ups.app/xml/Track', FALSE);
UPSServer.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xml_docu.loadXML(ReqPart1 + codeTrackingnummer + ReqPart2);
UPSServer.send(ReqPart1 + codeTrackingnummer + ReqPart2);
txtResponse := UPSServer.responseXML;
xml_docu.load(txtResponse);
//MESSAGE('%1',ISCLEAR("xml_docu"));
IF xml_docu.selectSingleNode('//TrackResponse/Response/ResponseStatusCode').text = '0' THEN
EXIT;
21. Juli 2014 16:44
IF xml_docu.selectSingleNode('//TrackResponse/Response/ResponseStatusCode').text = '0' THEN
EXIT;
IF xml_docu.selectSingleNode('//TrackResponse/Response/ResponseStatusCode.text') = '0' THEN
EXIT;