导航

2007年12月27日

摘要: 在调用Web Serivices时,往往需要身份验证,使得通过验证的用户才能调用你Web Serivices中的方法.当然你可以通过将参数添加到每个需要自定义身份验证方案的Web services方法中去,这需要花费很大的精力.IssueVision 中使用了非常常用而且有效便捷的方法-----使用SoapHeader来实现自定义身份验证数据的传递. SoapHeader提供了一种方法,... 阅读全文

posted @ 2007-12-27 11:20 Saga 阅读(609) 评论(1) 推荐(0)

摘要: using System.Web.Services; using System.Web.Services.Protocols; using System.Xml; using System; // Define a SOAP header by deriving from the SoapHeader base class. public class MyHeader : SoapHeade... 阅读全文

posted @ 2007-12-27 11:19 Saga 阅读(851) 评论(0) 推荐(0)