Skip to Content
5
Jun 01, 2020 at 02:07 AM

Consuming External Services in Java using SAP Cloud Application Programming Model ( CAP )

574 Views

Hi Devs,

I am trying to consume external service (SuccessFactors) in my CAP Java Project. According to the CAP documentation, it is possible to connect to external service in Node.js using const srv = await cds.connect.to ('some-service'). How can we achieve the similar behavior in Java.

I have tried to utilise SAP Cloud SDK VDM Generator in addition to CAP to consume external service but this approach introduces another issue which is incompatibility of Filter expressions. CAP has CqnSelect class which holds filters and other predicates but SAP Cloud SDK has FilterExpressionHelper<EntityT> class.

Please suggest me the right approach if consuming external services like Node.js is not possible in Java using CAP.