通过身份验证,我的代码是这样的
我这样写的身份验证
公共字符串[]身份验证(字符串strUserName,字符串strPassword) {
string[] authReturn = new string[2];
string evLogTxt = "WebMethod: authenticate() has been called by QBWebconnector" + "\r\n\r\n";
evLogTxt = evLogTxt + "Parameters received:\r\n";
evLogTxt = evLogTxt + "string strUserName = " + strUserName + "\r\n";
evLogTxt = evLogTxt + "string strPassword = " + strPassword + "\r\n";
evLogTxt = evLogTxt + "\r\n";
authReturn[0] = System.Guid.NewGuid().ToString();
authReturn[1] = @"G:\QB insalation files\qbw files\QBfilename.QBW";
evLogTxt = evLogTxt + "\r\n";
evLogTxt = evLogTxt + "Return values: " + "\r\n";
evLogTxt = evLogTxt + "string[] authReturn[0] = " + authReturn[0].ToString() + "\r\n";
evLogTxt = evLogTxt + "string[] authReturn[1] = " + authReturn[1].ToString();
return authReturn;
}
有人可以帮我吗
预先感谢