使用Delphi消费oData服务建议
我即将启动一个项目,该项目需要 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我通过使用简单的 httpRequest 来完成此操作,然后使用 超级对象
I did this by using a simple httpRequest and then parsed the results with SuperObject
这里有一些提示:
如何与 Java 中的 OData 交互?
我可以从该问题的答案中看到可用的选项:
查找用于 Delphi 的 Atom pub 库,因为“任何可以使用的图书馆Atom feed 将能够读取 OData 源。任何可以执行 Atom pub 协议的库都将能够更新 OData 服务。” (链接)
使用现有的 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:
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)
Use an existing REST library as a foundation and add features like in the Restlet OData extension