如何从经典 ASP 异步调用 ASMX Web 服务?

发布于 2024-11-26 19:38:56 字数 55 浏览 2 评论 0原文

有人知道这是否可能吗?

我想从经典 ASP 异步调用 Web 服务(即发即忘)?

Is anyone aware of whether this is possible?

I want to call a webservice asynchronously (fire and forget) from classic ASP?

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

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

发布评论

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

评论(1

小草泠泠 2024-12-03 19:38:56

它有点不同,但我最近有另一个系统必须调用一个非常冗长的进程,我不希望 asp 页面在该过程中超时或出错。

出于这个原因,我将该流程开发为 vbs 文件,并且最初让它按计划运行。我创建了一个 asp 页面来使用经典 asp 中的 shell 对象来触发它。因此,我能够启动 .vbs 脚本,并继续处理 asp 页面,假设 vbs 已经完成了它的工作。我本来可以(但没有)让它在最后更新数据库中的记录,以便 asp 知道它已经完成。也许类似的方法可以让您做到同样的“一劳永逸”?

Its a little different, but I recently had another system that had to call a process that was very lengthy, I didn't want the asp page to timeout or error during the process.

I'd developed the process as a vbs file for this reason, and originally had it running on a schedule. I created an asp page to fire it using the shell object in classic asp. I was therefore able to initiate the .vbs script, and carry on with the asp page, on the assumption that the vbs did its stuff. I could have (but didn't) got it to update a record in the db at the end so that asp would know it had completed. Perhaps a similar approach might enable you do to the same fire and forget?

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