<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <CustomerUpdate xmlns="urn:microsoft-dynamics-schemas/codeunit/WebserviceListener"> <customerWebservice> <Customer xmlns="urn:microsoft-dynamics-nav/xmlports/WebserviceListener"> <No>PROT</No> </Customer> </customerWebservice> </CustomerUpdate> </soap:Body> </soap:Envelope>
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <CustomerUpdate xmlns="urn:microsoft-dynamics-schemas/codeunit/WebserviceListener"> <customerWebservice> <Customer xmlns="urn:microsoft-dynamics-nav/xmlports/WebserviceListener"> <No>PROT</No> </Customer> </customerWebservice> </CustomerUpdate> </soap:Body> </soap:Envelope>
... lautXmlHttp.send(lautXmlDoc); ...
lautXmlHttp.send('<?xml version="1.0" encoding="UTF-8" standalone="no"?>'+ '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '+ 'xmlns:xsd="http://www.w3.org/2001/XMLSchema">'+ '<soap:Body>'+ '<CustomerUpdate xmlns="urn:microsoft-dynamics-schemas/codeunit/WebserviceListener">'+ '<customerWebservice>'+ '<Customer xmlns="urn:microsoft-dynamics-nav/xmlports/WebserviceListener">' + '<No>PROT3</No>' + '</Customer>' + '</customerWebservice>' + '</CustomerUpdate>' + '</soap:Body>' + '</soap:Envelope>');
Comments
And then loaded with in- & outstreams in the xml document automation object.
It shows how to set the header and communicate with NAV 2009 webservice.
http://mibuso.com/blogs/ara3n/2009/01/2 ... companies/
It could be that xmlport add linefeed and carriage return after each element, which needs to be removed.
You could load the blob into xmldom and see if there is a way to remove
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n