1 Reply Latest reply on Sep 10, 2018 11:20 AM by Kayla.Culpepper

    How to call a Webservice MBSDK with Javascript

    omasur Rookie

      I want to call a Webservice MBSDK with Javascript but it failed to authenticate : "You do not have permission to view this directory or page"

      (I'm able to connect manualy to the Webservice with the same "myIvantiProfile" on my WebBrowser)

       

      Here is the node script I tried :

       

      const ntlm = require('request-simple-ntlm');

       

      const options = {

        username: "myIvantiProfile" ,

        password: "XXXXXXXXXX",

        domain: "myDomain",

        url: "http://myServer/MBSDKService/MsgSDK.asmx/WhoAmI?"

      }

       

      ntlm.fetch(options, function (err, res, body){

          if(err) return console.warn(err);

          console.log("err", err);

          console.log("res", res);

          console.log("body", body);

      });

       

      Can you help me ? Thks ;-)

      Olivier