How do I interact with OData from Java?

后端 未结 6 435
栀梦
栀梦 2020-12-08 20:44

OData is Microsoft\'s repackaging of its Astoria (now WCF Data Services) RESTful query/update protocol. If I want to use Java to create an OData compatible data source, how

6条回答
  •  再見小時候
    2020-12-08 21:36

    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.

提交回复
热议问题