asp.net call Web Service 两种认证方式
asp.net call Web Service 两种认证方式 |
使用当前应用程序的用户身份:
SoapHttpClientProtocol.Credentials = system.Net.CredentialCache.DefaultCredentials;
使用HttpContext.Current.User的身份访问Web Service:
SoapHttpClientProtocol.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials.
SoapHttpClientProtocol.Credentials = system.Net.CredentialCache.DefaultCredentials;
使用HttpContext.Current.User的身份访问Web Service:
SoapHttpClientProtocol.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials.