Access Denied Using MSXML

I have a VB6 backend for a classic ASP site. Then VB calls the web service on the same server using MSXML2.XMLHTTP. This works on all but one of our servers. If I set up a web service site to accept anonymous login, it will work, but if I force only the built-in protection to force, MSXML will return an Access Denied error.

I use the code from the example here.

Set objDom = CreateObject("MSXML2.DOMDocument")
Set objXmlHttp = CreateObject("MSXML2.XMLHTTP")

' Load XML
objDom.async = False
objDom.loadXML XmlBody

' Open the webservice
objXmlHttp.Open "POST", AsmxUrl, False

' Create headings
objXmlHttp.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
objXmlHttp.setRequestHeader "SOAPAction", SoapActionUrl

' Send XML command
objXmlHttp.send objDom.xml

Edit: Following AnthonyWJones advice, I went to the checklist and it still doesn't work. Using Fiddler, it shows one request with a 401 response. The authentication tab displays:

No Proxy-Authenticate Header is present.
WWW-Authenticate Header is present: Negotiate
WWW-Authenticate Header is present: NTLM

. -, , , . , , 200, . , , , ?

+5
3

, WinINET HTTP, Windows.

WinINET , , - . , - , .

, VB6. ? , , . " ". " ".

. . , : -

  • , Windows.
  • - , -?
  • ProgID "MSXML2.XMLHTTP.3.0", , dll MSXML ( , MSXML).
  • Fiddler http-, VB6 . 401? WinINET ? 3 401 ? WinINET , .

. , , NTLM, Kerberos, , 5 .

, .

.htm Windows , ?

+3

, , ​​ , : , MSXML2.XMLHTTP. , , , , , ... , ? WinINET, Windows Integrated. -, . , " ", , , . MSXML2.XMLHTTP - Windows Integrated... "/" "".

, , WinINET , , , . , , , Windows Integrated ( ): MSXML2.XMLHTTP, .

, , , : MSXML2.ServerXMLHTTP.6.0. (WinHTTP), , , : - IE , - ProxyCfg ( XP ) NETSH Vista IE WinHTTP. - ( VB ). :

HTTP.SetProxy 2, "myproxy.mydomain.com", "*.mydomain.com"

mydomain, , HTTP.SetProxy 0, -, . : " -, , , , , , , ergo it Local Intranet".

+3

, AnthonyWJones, , , :

 objXmlHttp.Open "POST", AsmxUrl, False, UserName, Password

, , 401, , . , , . , - , , AnthonyWJones , .

Fiddler .

0

All Articles