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
HenningH
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello Abderzake,

the SAP Cloud SDK indeed provides an OData client and a generator that you can use to get an easy-to-use Java client for an OData v2 API. The SDK is meant for building applications that run on SAP Cloud Platform, which is the reason why you see some of the issues that you mention in your post. Still, looking forward it would be interesting to us to get more details on the issues you mentioned, particularly the one about binary compatibility issues (the first one may be solved by moving to version 3 of the SDK).

Please note that you would also be able to host an app on SAP Cloud Platform that accesses an on-premise instance via the SAP Cloud Connector (see this deep dive for an example of accessing SAP S/4HANA on-premise).

Best regards,

Henning