Delphi 的 oBix (xml) 客户端

发布于 2024-12-17 01:39:16 字数 699 浏览 0 评论 0原文

是否有适用于 Delphi 的 oBix 客户端库工具包?
oBix 是 XML Web 服务器/客户端标准。
请参阅:http://www.oasis-open.org/committees/tc_home .php?wg_abbrev=obix
并且:http://www.niagara-central.com/ord? Portal:/blog/BlogEntry/112

版本确实不太重要,但我更喜欢 Delphi 2007。

我找到了这个 C 代码,但它链接到 unix libs: http://code.google.com/p/c-obix-tools/
Java 代码围绕 Java 库的链接浮动。
因此,如果有一些我可以使用的 Delphi 代码,那就太好了。
或者也许我只是天真,有一个标准的 Delphi 组件可以直接与这个东西一起使用。

Is there a oBix client library toolkit for Delphi?
oBix is a XML web-server/client standard.
See: http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=obix
And: http://www.niagara-central.com/ord?portal:/blog/BlogEntry/112

The version really does not matter too much, but I would prefer Delphi 2007.

I found this C code, but it links against unix libs: http://code.google.com/p/c-obix-tools/
And the java code floating around links against Java libs.
So if there's some Delphi code I could use that would be great.
Or maybe I'm just naive and there a standard Delphi component that can just be used as is with this stuff.

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

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

发布评论

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

评论(2

野稚 2024-12-24 01:39:16

OASIS 上的官方 oBIX 下载 (http: //www.oasis-open.org/committees/download.php/21462/obix-1.0-cs-01.zip)还包括一个 WSDL 文件和XSD,可与 Delphi 架构绑定向导一起使用。

此下载中的 WSDL 与 http://obix.tridium.com/obix/wsdl - 我不确定是否有相关差异,但我会先尝试一下正式版本。两者都应该与 oBIX 1.0 兼容的服务器一起使用,但“布丁的检验在于食用”。

然而,由于 oBIX SOAP 服务似乎使用 WS-* 标准(如 WS-Security),而 Delphi 尚不支持这些标准,因此我建议使用简单的 HTTP 客户端库(如 Indy 或 Synapse)和 HTTP 绑定(基于 REST 的 API,参见规范第 17 章。它使用相同的 XML 结构,但 Web 服务开销更少。

要获得 oBIX 客户端的基本版本,您只需在 XSD 上运行架构绑定向导,即可生成 XML DOM 类源代码。这些类可用于填充 XML 请求对象并构建 HTTP 请求的有效负载。对于来自服务器的响应,可以使用相同的 DOM 类来解析 HTTP 主体负载,并将响应提供为 DOM 实例的属性。

The official oBIX download at OASIS (http://www.oasis-open.org/committees/download.php/21462/obix-1.0-cs-01.zip) also includes a WSDL file and the XSD, which could be used with the Delphi Schema Binding Wizard.

The WSDL in this download differs from the one at http://obix.tridium.com/obix/wsdl - I am not sure wether there are relevant differences, but I would first try the official version. Both should work with oBIX 1.0 compliant servers, but 'the proof of the pudding is in the eating'.

However, as it seems that oBIX SOAP services use WS-* standards like WS-Security which are not supported by Delphi yet, I recommend to use simple a HTTP client library like Indy or Synapse and the HTTP binding, a REST based API described in chapter 17 of the specification. It uses the same XML structure but with less web service overhead.

To get a basic version of a oBIX client, you only need to run the Schema Binding Wizard on the XSD, to generate XML DOM classes source code. These classes can be used to populate a XML request object and to build the payload for the HTTP requests. For responses from the server, the same DOM classes can be used to parse the HTTP body paylod, and to provide the response as properties of the DOM instance.

谢绝鈎搭 2024-12-24 01:39:16

我读过一些关于 oBix 的内容,结果发现有一个 WSDL: http://obix.tridium.com /obix/wsdl

XSD 在这里:http://www.oasis-open.org/committees /document.php?document_id=18985&wg_abbrev=obix-xml

I've read a bit about oBix and it turns out there's an WSDL: http://obix.tridium.com/obix/wsdl

And the XSD is here: http://www.oasis-open.org/committees/document.php?document_id=18985&wg_abbrev=obix-xml

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