简体   繁体   中英

OpenUI5 with Java Services

I am exploring OpenUI5 to use it as front end for developing SAP applications. One thing I noticed is that it is more user friendly with OData services/OData model. I believe, it may be a close initiative of Microsoft with SAP or vice-versa.

I am using Java technology along with JCo outside SAP environment. I am exploring for the best options.

  1. Should I expose my Java services as OData services to leverage OpenUI5 capabilities?

  2. 1 I see that Java implementations for OData support is limited to Version 2 and Version 4 is underway. This community is very small, not surprisingly.

  3. Should I limit the usage of OpenUI5 only for: application definitions, view definitions, layouts, etc. and use Java services (eg REST/SOAP)?

  4. 1 Here, I have to add my JavaScript/jQuery logic for the CRUD operations on UI controls. I am not sure how much of it is supported for plain JSON/XML objects if I push JSON/XML response from server.

我认为您应该保持简单并使用 REST API 和 Json 在您的后端和 SAPUI5 前端之间进行通信。

Just to be clear, I hope you have a clear understanding of Odata and REST. The difference is that OData is a specific protocol; REST is architecture style and design pattern.

The OData protocol is built on top of the AtomPub protocol. The AtomPub protocol is one of the best examples of REST API design. So, in a sense you are right - the OData is just another REST API and each OData implementation is a REST-ful web service.

Odata is the way to go since with Odata Model & binding, the pain of writing a lot of javascript is reduced by a huge proportion.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM