cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi all,

I'd like to use the oData services of a on-premise SAP Commerce Cloud instance from a java client.

The current documentation of the OData services on Commerce Cloud only references bare" http requests(GET, POST, DELETE). I think that means that Commerce Cloud has yet to provide some better integration: indeed, I've been unable to find any java client available to address "on-premises" OData services: I did find plenty of documentation on how to do address services hosted on Cloud Foundry ou Neo by leveraging the very nice SAP Cloud SDK though.

On the other hand of the spectrum, there are a couple of projects allowing to generate the model representation of oData entities, leveraging the Apache Olingo project but which don't provide all the abstraction layer (over the http client plumbing, for instance) we would expect.

I'm assuming that Commerce Cloud will eventually provide this java client interface...

Any advice from you on what is the recommended solution to use in the meantime will be greatly appreciated.

Many thanks,

Cheers

View Entire Topic
Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi ,

My understanding is that gregorw is correct that Cloud SDK is the way to go. However, AFAIK the Cloud SDK currently doesn't have the VDM for objects in SAP Commerce Cloud. Thus, you probably want to use the ODataQueryBuilder to reach out to your backend system. A simple way to understand this is by looking at step2 of the following tutorial:

https://developers.sap.com/tutorials/s4sdk-odata-service-cloud-foundry.html#6e69a4d2-fa31-47e3-9b69-...

It uses the Cloud SDK for service development so you can create OData queries to your backend system without all the hassle of a full-blown Olingo development.

Hope this helps.

Best regards,
Ivan