摘要:
//要先引用输入输出包using System.IO;//获取webservice所在的路径;string path = Server.MapPath("WSLicence.asmx");//截取文件夹路径string folderPath = path.Substring(0, path.LastIndexOf('\\'));string fileName = folderPath + "reg... 阅读全文
摘要:
//注意,要先引用加密包using System.Security.Cryptography;public string MD5Hasher(){//MD5加密方法只接受字节数组,故要先把字符串转化成字节数组byte[] MD5Data = System.Text.Encoding.UTF8.GetBytes(HashText);//实例化md5对象 MD5 Md5 = new MD5Crypto... 阅读全文
摘要:
怎样使用webservice? 1.创建webservice [WebMethod] public void Insert(string serial,string code,string key) {RDB.SQLDB sqlHelper = new RDB.SQLDB();sqlHelper.ExecuteSQL("insert into lic_detail(serial_number,ac... 阅读全文