0
以下是一些舊的ASMX代碼,我需要轉換爲WCF服務代碼將服務從ASMX更新爲WCF服務問題!
Dim cc As New System.Net.CredentialCache
cc.Add(New System.Uri(url), "BASIC", New System.Net.NetworkCredential(_
userName, _
password, _
domain))
這裏是我的WCF代碼:
myServiceInstance.Endpoint.Address = New EndpointAddress(url)
Dim credentials As New System.Net.NetworkCredential(userName, password, domain)
myServiceInstance.ClientCredentials.Windows.ClientCredential = credentials
我的AuthenticationType在WCF設置爲BASIC怎麼辦服務?