How do I interact with OData from Java?

旧巷老猫 提交于 2019-11-28 06:51:27

There is also odata4j.

There is a olingo library in java which can be used for RESTful communication with Odata protocol.

you can refer the following link for the reference: https://olingo.apache.org/doc/odata4/index.html

You can find the source code for sample project too from the above link.

Any Java library that can consume an Atom feed will be able to read an OData source. Any Java library that can perform the Atom pub protocol will be able to update an OData service.

What you will not be able to do out of the box is perform queries and access the EDM properties. Depending on how loosely coupled you need to be this will either be really easy to do or damn difficult. If you can survive coupling your client to the service then it should be pretty easy with any XML parser to pull the data out of the OData entry.

There is a Microsoft blog post with various pointers to OData interoperability resources:

OData interoperability with .NET, Java, PHP, iPhone and more

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