问题
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:
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
来源:https://stackoverflow.com/questions/8764903/using-delphi-to-consume-odata-service-recommendations