摘要: 因项目中有个功能。及在web服务端验证用户的角色,因为通过session方式传递。可能有安全性的隐患,故采用SoapHeader 方式。在服务器端的service 方法加上一个继承SoapHeader 的类。 public class Mysoapheader:System.Web.Services.Protocols.SoapHeader { public string UserName; public string Password; } public class Service1 : System.Web.Services.WebService { [WebMethod] public 阅读全文
posted @ 2011-05-18 06:43 风云8 阅读(512) 评论(2) 推荐(0)