如何编写 VB5 应用程序来使用 Web 服务?
我正在使用一个用 VB5 编写的遗留应用程序,我需要赋予它使用 Web 服务的能力。
有人知道如何做到这一点吗?我听说VB6可以做到这一点,但我也没有任何细节。
I'm working with one legacy application written in VB5, and I need to give it the ability to consume a web service.
Anyone know how this can be done? I've heard that it can be done for VB6, but I don't have any detail on that either.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
别打扰。
我的意思并不是说,如果他们不愿意将应用程序从 VB5 升级到 VB6,那么为什么还要费心添加 Web 服务功能。我的意思是,只需在 VB.NET 中编写一个类来使用 Web 服务并将其公开为 COM 对象。然后在VB5程序中消费COM对象。
我不确定 VB5 发布时 Web 服务是否存在 - 不要试图让 VB5 处理它从未听说过的事情来诱惑命运。
另外,请考虑以下建议:
可能有人认为将 VB5 应用程序升级到 VB6 没有意义。也许人们认为应用程序在被替换之前不会发生太大变化。
但事实上,您在这里谈论 Web 服务表明 VB5 应用程序仍然有一些生命力。您至少应该考虑升级到VB6。
Don't bother.
I don't mean that if they can't be bothered to upgrade the app from VB5 to VB6, then why bother adding web service functionality. I mean, just write a class in VB.NET to consume the web service and to expose it as a COM object. Then consume the COM object in the VB5 program.
I'm not sure web services even existed when VB5 was released - don't tempt fate by trying to get VB5 to deal with something it's never heard of.
Also, consider the following suggestion:
It may have been thought that there was no point in upgrading the VB5 application to VB6. Maybe it was thought that the application wasn't going to change much before it was replaced.
But the fact that you're here on SO talking about web services shows that the VB5 application still has some life left in it. You should consider at least the upgrade to VB6.