The following is some old ASMX code which I need to convert to WCF service code
Dim cc As New System.Net.CredentialCache
cc.Add(New System.Uri(url), "BASIC", New System.Net.NetworkCredential( _
userName, _
password, _
domain))
And here is my WCF code:
myServiceInstance.Endpoint.Address = New EndpointAddress(url)
Dim credentials As New System.Net.NetworkCredential(userName, password, domain)
myServiceInstance.ClientCredentials.Windows.ClientCredential = credentials
How do I set the AuthenticationType to BASIC in a WCF service?