读书人

接续调用webservice 同一个方法出错

发布时间: 2013-01-06 15:44:47 作者: rapoo

连续调用webservice 同一个方法出错
连续调用 webservice 的同一个方法会出现这样的错误



接续调用webservice 同一个方法出错

webservice代码:

[WebMethod]
public DataSet GetNewsByCid(string cid, int amount)
{
string sql = "";
if (GetNewsAmountByCid(cid) > amount)
{
sql = "select top " + amount + " * from news where (classid = " + cid + ")";
}
else
{
sql = "select * from news where (classid = " + cid + ")";
}
DataSet ds = database.GetDs(sql);

return ds;
}

[解决办法]
后面一个放在前一个的回调函数里面来调用。
[解决办法]
没有webservice实战经验的人飘过

读书人网 >Web Service

热点推荐