Consuming web service from NAS

geordiegeordie Member Posts: 655
Hi, I'm getting crazy with an error consuming a codeunit exposed as a web service from NAS.

Here's the code:
XMLhttp.open('POST',WSUrl,0);
      XMLhttp.setRequestHeader('Content-type','text/xml; charset=utf-8');
      XMLhttp.setRequestHeader('SOAPAction','UpdateRel');

      XMLhttp.send(
        '<?xml version="1.0" encoding="UTF-8"?>' +
        '<soap:Envelope xmlns:nav="urn:microsoft-dynamics-schemas/codeunit/DMSManagementWS"' +
                       ' xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">' +
          '<soap:Body>' +
            '<nav:UpdateRelationIndexes>' +
              '<nav:pYear>' + FORMAT(Year) + '</nav:pYear>' +
              '<nav:pMonth>' + FORMAT(Month) + '</nav:pMonth>' +
            '</nav:UpdateRelationIndexes>' +
          '</soap:Body>' +
        '</soap:Envelope>');

      XMLDoc.load(XMLhttp.responseXML);

      IF XMLhttp.status <> 200 THEN
	    ERROR(WSError + FORMAT(XMLhttp.statusText));

Running it from both classic client and RTC works like a charm, but I receive the error "The call to member send failed. msxml3.dll returned the following message: Access is denied." from NAS.
I'm not saving any xml file so I don't understand which is the resource with access not granted.
I tried Microsoft XML, v3.0, Microsoft XML, v5.0 and even Microsoft XML, v6.0 (so I suppose there's no need to install MSXML 4.0 Service Pack 2) with no result and the URL is properly reached also from NAS server.

Can anyone help me to figure out the solution?

Thanks

Answers

Sign In or Register to comment.