摘要: Web Service身份验证解决方案一:通过通过SOAP Header身份验证。1.我们实现一个用于身份验证的类,文件名MySoapHeader.csMySoapHeader类继承自System.Web.Services.Protocols.SoapHeader。且定义了两个成员变量,UserName和PassWord,还定义了一个用户认证的函数ValideUser。它提供了对UserName和PassWord检查的功能usingSystem; usingSystem.Data; usingSystem.Configuration; usingSystem.Web; usingSystem. 阅读全文
posted @ 2012-10-16 15:27 Nina 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 1.创建WebService2.配置 网站 的 WebService文件夹目录安全性 - 身份验证与访问控制3.访问WebService================1.创建WebService2.配置 网站 的 WebService文件夹目录安全性 - 身份验证与访问控制-------------------IIS管理器->网站->WebService文件夹->右键->属性->目录安全性->身份验证与访问控制->编辑->取消“启用匿名访问”的勾选->勾选“集成Windows身份验证”->确定附:必要的时候 可以创建专门的用户 以访 阅读全文
posted @ 2012-10-16 15:22 Nina 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 1.1 WebService设计1.1.1 传输基本参数1.1.2 传输数据集合(1) 数组(2) DataSet1.2 WebService异常处理1.3 WebService性能1.4 WebService认证请参考WebService认证学习报告1.4.1 各种认证方式1.4.1.1 Windows认证(1) 配置IIS中WebService文件的权限为集成Windows认证(2) 设置Web.Config<authentication mode= "Windows"></authentication>1.4.2 跟踪用户访问1.5 WebSe 阅读全文
posted @ 2012-10-16 15:18 Nina 阅读(418) 评论(0) 推荐(0) 编辑
摘要: 1:自定义SoapHeader类,继承自:System.Web.Services.Protocols.SoapHeader---system.web.services.protocols.soapheaderusing system;using system.using System;using System.Collections.Generic;using System.Web;/// <summary>///自定义的SoapHeader/// </summary>public class MySoapHeader : System.Web.Services.Pro 阅读全文
posted @ 2012-10-16 14:39 Nina 阅读(387) 评论(0) 推荐(0) 编辑