如何检测是否正在调用 asmx Web 服务?
我有一个现有的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 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).