110,567
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Data;
using System.Data.SqlClient;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Configuration;
using System.Xml;
using System.IO;
/// <summary>
/// SSO系统
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class SSO: System.Web.Services.WebService
{
public SSO () { }
/// <summary>
/// 通过userID,password来验证用户身份,并返回身份信息
/// </summary>
[WebMethod]
public String LoginByUserID(string userID, string password)
{
String XML = “”;
//根据userID,password查询数据库,验证用户
//如果通过验证,返回身份信息
return XML;
}
/// <summary>
/// 加密凭证
/// </summary>
[WebMethod]
public String EncryptoString (string key)
{
//加密凭证
}
/// <summary>
/// 解密凭证
/// </summary>
[WebMethod]
public String DecryptoString (string key)
{
//解密凭证
}
...........
//其它还可以提供更改用户密码等等隶属于用户信息管理模块的功能方法
}