I started a standard WCF Service Application project to create a set of web services and deployed the application on a remote Windows 7 PC on the Internet. I need to control access and want to make use of Windows authentication. I have created
a local machine account on that PC.
I then started a client project to consume the web services. What I want is something like:
ServiceReference1.ServiceClient ws = new ServiceReference1.ServiceClient();
ws.Endpoint.Address = new System.ServiceModel.EndpointAddress("http://xxxx.dyndns-ip.com/myWebService/Service1.svc");
ws.ClientCredentials.Windows.ClientCredential.UserName = WebConfigurationManager.AppSettings["username"];
ws.ClientCredentials.Windows.ClientCredential.Password = WebConfigurationManager.AppSettings["password"];
TimeNow = ws.GetTime().ToString();
I searched and tried all sorts of permutations of binding types, security modes, etc, but still am not sure what and how I should be doing.
Can someone show what I should have on the web.config on the web service application, and the web.config on the client appli
View Complete Post