Rewriting External Calls automation -> MSXML not instantiated

SteveSteve Member Posts: 81
Has anyone used MSXML.XMLHTTPRequest ?

We have a process that sends information to a 3rd party and it was originally created using automation. Since the automation tools are not working in our recent NAV2017 upgrade the process was rewritten using MSXML.

The process seems to work with exception that is says that XMLHTTP is not instantiated? The code is below along with the variable call.

MSXML.XMLHTTPRequest.'Microsoft.MSXML, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

//Build the Request Header
XMLHTTP.open('POST', XmlUrl, FALSE,'','');
XMLHTTP.setRequestHeader('HOST', 'urlinfo.net');
XMLHTTP.setRequestHeader('Content-type', 'text/xml; charset=utf-8');
XMLHTTP.setRequestHeader('SOAPAction', 'http://urlinfo.net/SubmitWebInfo');


Any help would be appreciated.
Thanks
Steve

Answers

Sign In or Register to comment.