Call a web service from a Windows service

I am sure that there is an elegant solution to the problem, but I just can not get around it. I am trying to call a web service from a windows service. The web service is secure (using Windows authentication). The account running the Windows service has rights to call the web service, but I cannot figure out how to get these credentials and send them to the web service. The web service is WCF and is hosted on a single computer (in IIS) as a Windows service.

+3
source share
2 answers

You should be able to use something like this:

var myService = new myThing.Service();
myService.Credentials = System.Net.CredentialCache.DefaultCredentials;
+6
source

(NTLM) IIS? , -, Windows . .

0

Source: https://habr.com/ru/post/1702470/


All Articles