使用Delphi消费oData服务建议

发布于 2024-12-25 05:55:43 字数 324 浏览 2 评论 0原文

我即将启动一个项目,该项目需要 Delphi XE Windows 32 客户端来使用 oData Web 服务。

我可以使用一些粗略和可读的测试代码正确查询服务,但是编写一个框架来处理 oData 协议 - 所有过滤、参数等以及处理所有服务的 CRUD 操作将是一个艰难的过程。请注意,这是 Delphi 的 Win32 版本,因此我没有 linq 等可供使用的东西。

是否有任何 Delphi 程序员有使用 Delphi 使用 oData 的经验?如果是这样,有什么对框架、组件等有帮助的建议吗?

I'm about to start a project that requires a Delphi XE Windows 32 client to consume an oData web service.

I can query the service correctly with some rough and read test code but it's going to be a slog writing a framework to handle the oData protocol - all the filtering, parameters, etc and handling CRUD operations for all the services. Note that this is the Win32 version of Delphi so I don't have things like linq, etc at my disposal.

Are there any Delphi programmers out there that have experience with consuming oData with Delphi? And if so, any recommendations for frameworks, components, etc that would help here?

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

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

发布评论

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

评论(2

长不大的小祸害 2025-01-01 05:55:43

我通过使用简单的 httpRequest 来完成此操作,然后使用 超级对象

I did this by using a simple httpRequest and then parsed the results with SuperObject

孤星 2025-01-01 05:55:43

这里有一些提示:

如何与 Java 中的 OData 交互?

我可以从该问题的答案中看到可用的选项:

  1. 查找用于 Delphi 的 Atom pub 库,因为“任何可以使用的图书馆Atom feed 将能够读取 OData 源。任何可以执行 Atom pub 协议的库都将能够更新 OData 服务。” (链接

  2. 使用现有的 REST 库作为基础,并添加类似于 Restlet OData 扩展

Some pointers are here:

How do I interact with OData from Java?

Available options I can see from the answers to that question:

  1. Find a Atom pub library for Delphi given that "Any library that can consume an Atom feed will be able to read an OData source. Any library that can perform the Atom pub protocol will be able to update an OData service." (link)

  2. Use an existing REST library as a foundation and add features like in the Restlet OData extension

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