21. Februar 2012 10:14
21. Februar 2012 11:08
21. Februar 2012 11:57
// Create XML Document
CREATE(xmldoc,TRUE,TRUE);
parameters :=
'<Soap:Envelope xmlns:Soap="http://schemas.xmlsoap.org/soap/envelope/">' +
'<Soap:Body>' +
'<Create xmlns="urn:microsoft-dynamics-schemas/page/testpage">' +
'<Nr>2</Nr>'+
'</Create>' +
'</Soap:Body>' +
'</Soap:Envelope>';
xmldoc.loadXML(parameters);
// Create XMLHTTP and SEND
URL := 'http://WServer:7047/DynamicsNAV/WS/' + 'test' + '/Page/testpage';
CREATE(xmlhttp, TRUE, TRUE);
xmlhttp.open('POST',URL,0);
xmlhttp.setRequestHeader('Content-type','text/xml; charset=utf-8');
xmlhttp.setRequestHeader('SOAPAction','Create');
xmlhttp.send(xmldoc);
21. Februar 2012 12:29
XMLHttp.send(XMLDoc);
MESSAGE('%1',XMLHttp.status); //Sollte 200 sein, wenn alles in Ordnung ist
XMLDoc := XMLHttp.responseXML;
XMLDoc.save('C:\temp\WS_Resp.xml');
21. Februar 2012 12:43
<?xml version="1.0"?>
<Soap:Envelope xmlns:Soap="http://schemas.xmlsoap.org/soap/envelope/">
<Soap:Body>
<Create_Result xmlns="urn:microsoft-dynamics-schemas/page/testpage"/>
</Soap:Body>
</Soap:Envelope>
21. Februar 2012 14:19
skamuran hat geschrieben:
- Code:
parameters :=
'<Soap:Envelope xmlns:Soap="http://schemas.xmlsoap.org/soap/envelope/">' +
'<Soap:Body>' +
'<Create xmlns="urn:microsoft-dynamics-schemas/page/testpage">' +
'<Nr>2</Nr>'+
'</Create>' +
'</Soap:Body>' +
'</Soap:Envelope>';
parameters :=
'<Soap:Envelope xmlns:Soap="http://schemas.xmlsoap.org/soap/envelope/">' +
'<Soap:Body>' +
'<Create xmlns="urn:microsoft-dynamics-schemas/page/testpage">' +
'<testpage>' +
'<Nr>2</Nr>'+
'</testpage>' +
'</Create>' +
'</Soap:Body>' +
'</Soap:Envelope>';
21. Februar 2012 14:35