Differences between XMLHTTP and ServerXMLHTTP

后端 未结 4 919
心在旅途
心在旅途 2020-12-08 21:59

I\'m trying to write an Excel add-in that can get data from a web service into Excel.

To use it, the user just needs to type a function name provided by the add-in.

4条回答
  •  长情又很酷
    2020-12-08 22:41

    I just got hit by a difference: When the Web Server (IIS) is configured to allow only Windows Authentication, not anonymous access, the ServerXMLHTTP calls fail with an authentication error whereas the XMLHTTP calls do not. It seems that the XMLHTTP object automatically handles sending the Windows Authentication credentials when needed. I suspect that adding NetworkCredentials to the ServerXMLHTTP object should be the best solution but I could only find Basic Authentication which explicitly passes plaintext uid/pwd (obviously unacceptable).

提交回复
热议问题