如何从经典 ASP 异步调用 ASMX Web 服务?
有人知道这是否可能吗?
我想从经典 ASP 异步调用 Web 服务(即发即忘)?
Is anyone aware of whether this is possible?
I want to call a webservice asynchronously (fire and forget) from classic ASP?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它有点不同,但我最近有另一个系统必须调用一个非常冗长的进程,我不希望 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?