如何检测是否正在调用 asmx Web 服务?

发布于 2024-10-02 16:13:18 字数 299 浏览 0 评论 0原文

我有一个现有的 asmx Web 服务,它调用内部业务逻辑。我无法更改 asmx 服务来添加任何指示器。

如何检测(使用某种外部方法或检查 IIS)是否正在调用该特定 Web 服务?

我知道使用单例模型的 WCF 可以做到这一点,但这个特定的服务是基于 asmx 的。

更新:只是为了清楚起见。我想我最终会创建第二个Web服务,当调用时它可以检查第一个Web服务是否正在执行,如果没有,它会调用第一个Web服务并返回结果,如果它正在执行,它将等待一段时间然后重试。那么如何查明第一个 Web 服务是否正在第二个 Web 服务进程中运行。

I have an existing asmx web service that calls internal business logic. I cannot change the asmx service to add any indicators.

How can I detect (using some external method, or checking IIS) if that particular web service is being called?

I know this is possible with WCF using a singleton model, but this particular service is asmx based.

Update: Just for clarity. I guess I'll end up creating a 2nd web service, when called it can check if 1st web service is executing, if not it calls the 1st web service and returns results, if its executing it will wait a while then retry. So how to find out if 1st web service is running from within 2nd web service process.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦在深巷 2024-10-09 16:13:18

您可以使用 firebug 来调试该站点。启用后,它将显示正在调用哪个服务的哪些方法(以及它们的加载时间,但这与这里无关)。

You could use firebug to debug the site. When enabled, it will show you which methods from which service are being called (and their load-time, but that's irrelevant here).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文