标签:
Dim usercode As String = System.Configuration.ConfigurationSettings.AppSettings("SAPWebServiceUserCode").ToString
Dim pwd As String = System.Configuration.ConfigurationSettings.AppSettings("SAPWebServicePSW").ToString
‘调用了Credentials
Dim credentials As ICredentials = New NetworkCredential(usercode, pwd)
‘调用了Credentials
myZFZ_CUSTOMER_MODService.Credentials = credentials
c#版本:
一样的使用Credentials属性,赋值一个对象即可
标签:
原文地址:http://www.cnblogs.com/KingUp/p/5722451.html