Using Delphi to consume oData service recommendations

我们两清 提交于 2019-12-22 08:52:11

问题


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?


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/8764903/using-delphi-to-consume-odata-service-recommendations

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!