用ASP.NET(C#)编写一段webservice代码,要求安全性比较好

2024-11-18 23:45:31
推荐回答(1个)
回答1:

[WebService(Namespace = " http://www.xxx.com/webservice/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)] public class Connservice : System.Web.Services.WebService
{ [WebMethod(Description = "连接数据库
")]
public void conn { //连接数据库
}
}