I have a web-servie (ws) and I would like to use Windows authentication in order to control allowed users to the ws.
I am able to use WebServiceProxy to connect to the ws using HTTP without any issues, but if I use HTTPS, then it fails with this error: "Exception calling "Mymethod" with "3" argument(s): "The request failed with HTTP status 401: Unauthorized."
Any idea as to why I am getting this error? I am only experiencing this error if I use the WebServiceProxy connection from a computer that is not part of the domain.
The web server is returning that error. Keep in mind that, unlike IE, Web service proxies do not automatically know how to pass along Windows credentials. Generally speaking, web services aren't set up to require integrated authentication – it's not the usual model, at least.