26. April 2012 08:40
URL :='Hier kommt die WS Url sein';
nameSpace :='Hier de Name Space';
method :='setMail';
parameters:='55';
User :='AA\TEST';
Password :='123';
// Create XML Document
CREATE(XMLDoc,TRUE,TRUE);
xmlProcessingInst:=XMLDoc.createProcessingInstruction('xml','version="1.0" encoding="UTF-8"');
DOMNode:=XMLDoc.appendChild(xmlProcessingInst);
// Create SOAP Envelope
soapEnvelope := XMLDoc.createElement('Soap:Envelope');
soapEnvelope.setAttribute('xmlns:Soap', 'http://schemas.xmlsoap.org/soap/envelope/');
XMLDoc.appendChild(soapEnvelope);
// Create SOAP Body
soapBody := XMLDoc.createElement('Soap:Body');
soapEnvelope.appendChild(soapBody);
// Create Method Element
soapMethod := XMLDoc.createElement(method);
soapMethod.setAttribute('xmlns', nameSpace);
soapBody.appendChild(soapMethod);
// Transfer parameters
NewDOMNode := XMLDoc.createNode(1,'email','');
soapMethod.appendChild(NewDOMNode);
DOMTextNode := XMLDoc.createTextNode(parameters);
NewDOMNode.appendChild(DOMTextNode);
IF ISCLEAR(http) THEN
CREATE(http);
//SENDEN
http.open('POST',URL,FALSE,User,Password);
http.setRequestHeader('Content-type', 'text/xml; charset=utf-8');
http.setRequestHeader('SOAPAction',method);
http.send(XMLDoc);
IF http.status<> 200 THEN
MESSAGE('Http Error'+' '+FORMAT(http.status)+' '+http.statusText);
26. April 2012 09:52
26. April 2012 10:01
26. April 2012 11:15
26. April 2012 11:25
Die ganze BizTalk-Funktionalität in NAV soll abgeschafft werden?
26. April 2012 11:29
26. April 2012 12:59
26. April 2012 13:37
26. April 2012 15:09