服务器之间的 Coldfusion 通信
我需要从一个 Coldfusion 安装接收数据到另一个安装。 它们位于不同的服务器上。
现在我已经在远程服务器上创建了 Web 服务。 我使用 JSON 格式来接收数据,因为使用 wsdl 的开销令人难以置信(我有很多文本数据要接收)。
是否有其他可行的方式在 2 个 Coldfusion 服务器之间进行有效的通信?
莱昂蒂
I need to receive data from one Coldfusion installation to another.
They are on different servers.
Right now I have web services created on remote server.
I use JSON format for receiving data, because of incredible overhead of using wsdl(I have a lot of text data to receive).
Is there any other viable way of communicating between 2 Coldfusion servers efficiently?
Leonty
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以查看使用 WDDX 数据包。 ColdFusion 通过 CFWDDX 标签内置了 WDDX。您可以将 CF 的任何数据结构转换为 WDDX 包(本质上它将创建一个包含您的信息的 XML 格式的字符串)。然后,您可以通过多种方式将该字符串传输到另一台服务器,包括表单发布、Web 服务调用、FTP 文件传输等。接收服务器获得数据后,使用 CFWDDX 将其转换回本机数据结构。
You could look at using WDDX data packages. ColdFusion has WDDX built-in through the CFWDDX tag. You can convert any of CF's data structures to a WDDX package (essentially it will create an XML formatted string containing your information). You can then transfer that string to another server through a variety of means including a form post, web service call, FTP file transfer, etc. Once the receiving server has the data, use CFWDDX there to convert it back into a native data structure.