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加密
原文:https://www.cnblogs.com/LiuwayLi/p/15313451.html