WebService加密
作者:互联网
WebService加密
//创建myService 对象
ProductServiceSoap.WebService_Soap service =
new ProductServiceSoap.WebService_Soap();
//创建soap 头对象
ProductServiceSoap.MySoapHeader header=new ProductServiceSoap.MySoapHeader();
//设置soap 头变量
header.PassWord = "admin";
header.UserID = "admin";
service.MySoapHeaderValue = header;
//调用web 方法
string strPrice = service.GetProductPrice2("001");
标签:加密,WebService,service,MySoapHeader,ProductServiceSoap,header,Soap 来源: https://www.cnblogs.com/LiuwayLi/p/15313451.html