从 VB6 使用 Coldfusion Web 服务

发布于 2024-10-03 00:15:10 字数 148 浏览 1 评论 0原文

我正在尝试使用 VB6 使用 Web 服务;我对 VB6 没有太多经验,有人告诉我应该使用 XMLHTTP 来做到这一点。但我不确定如何去做这一切; Web 服务接受字符串并返回字符串。由于网络服务都是冷聚变标签,我是否需要解析出要显示的字符串?如有任何帮助,我们将不胜感激,谢谢。

I am trying to consume a webservice using VB6; I don't have much experience with VB6 and i was told that i should use XMLHTTP to do this. But i am unsure how to go about all of this; the webservice take's in a string and returns a string. Since the webservice is all cold fusion tags do i need to parse out the string to be displayed? Any help is appreciated, thanks.

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

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

发布评论

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

评论(1

掩饰不了的爱 2024-10-10 00:15:10

您的问题的基本答案在这里:
消费的最佳方式是什么VB6 的 Web 服务?

上面假设目标实际上是一个 Web 服务,它接受并发出 XML 文档。情况可能不一定如此。在许多情况下,可编程 Web 端点可能实际上只接受一个字符串并返回一个简单的字符串。在这种情况下,您不需要为传出消息生成 XML 文档;通常,您只需要使用适当的参数构造 (GET) URL 字符串。您也不需要将响应作为 XML 文档来使用或解析;这里可能只需要字符串解析。

有关在 VB6 中获得响应后如何处理响应的更具体答案,请提供输入和输出消息的示例,并描述您希望从中得到什么,我们将尝试提供一些额外的建议。

The basic answer to your question is here:
What is the best way to consume a web service from VB6?

The above assumes that the target is actually a web-service, which accepts and emits an XML document. This may not necessarily be the case. In many cases a programmable web endpoint may truly just accept a string and return a simple string. In this case you wouldn't need to produce an XML document for the outgoing message; often you just need to construct the (GET) URL string with your parameters appropriately. Nor would you need to consume or parse the response as an XML document; here it may be only string parsing that is required.

For more specific answers on what to do with the response once you get it in VB6, provide an example of the input and output messages, and describe what you want out of them, and we'll try to provide some additional suggestions.

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