web 服务函数调用频繁,请高手指点

fengzeng 2010-09-06 05:56:51

[WebMethod]
public string execute(string forArgXml)
{
WriteToFile(System.Web.HttpContext.Current.Server.MapPath("./req.txt"), "", forArgXml); //记录访问
string rx = bll.ResponseXml(forArgXml);
WriteToFile(System.Web.HttpContext.Current.Server.MapPath("./FHBW.txt"), "", rx); //记录返回
return rx;
}


发现记录访问的数量比记录返回的数量大, bll.ResponseXml(forArgXml); 这个地方在任何时候都有值返回的。
不知道我说清楚没 请高手指点啊
...全文
56 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
wuyq11 2010-09-07
  • 打赏
  • 举报
回复
压力测试,延迟操作
检查ResponseXml方法
porschev 2010-09-07
  • 打赏
  • 举报
回复
gongsun 2010-09-07
  • 打赏
  • 举报
回复
这个需要你自己多 测试测试。

搞个 计数器,先返回 string rx = bll.ResponseXml(forArgXml); 被记录的 总数。

看看 你 记录访问的 次数是不是正确的。
孟子E章 2010-09-06
  • 打赏
  • 举报
回复
可能ResponseXml里面出错了,下面的代码就没执行。

12,162

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧