码迷,mamicode.com
首页 > Web开发 > 详细

webservie授权调用

时间:2016-07-31 11:26:02      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:

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属性,赋值一个对象即可

webservie授权调用

标签:

原文地址:http://www.cnblogs.com/KingUp/p/5722451.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!