简体   繁体   中英

How to provision odata service by using s4sdk?

I have create a project by using s4sdk and build a spring boot application which can consume the ODATA service provided by a on-premise ABAP backend system (by leveraging VDM). Now I want to make my application able to provision some ODATA service to outside. I know "SAP Cloud Platform SDK for service development" can do it. Do I need to introduce it into my project and how? Or "s4sdk" already contains it. I notice I can already use the annotation like "@Read" to create service implementation class in my project. But after creating the implementation class and put the edmx file under the resource/edmx fold. The exposed ODATA service doesn't work. Any tips for that? Thanks very much.

Let me refer you to the blog series about the SAP Cloud Platform SDK for service development .

The reason why you can use @Read is, as you have already assumed, that the SAP S/4HANA Cloud SDK already declares the SAP Cloud Platform SDK for service development in its BOM.

Apart from that, while the SAP S/4HANA Cloud SDK manages the correct version of the SAP Cloud Platform SDK for service development, we recommend that you mention the dependency of the SAP Cloud Platform SDK for service development explicitly in your pom.xml (w/o hard-wiring its version).

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