sbarzaghialteaup / demo-node-rfc-cf

0 stars 0 forks source link

Example using NODE-RFC.JS library in SAP BTP Cloud Foundry

Important

First of all, connection to backend using cloud connector is not supported by node-rfc library (yet...), only direct connection to backend is possible, so the RFC port of the backend must be exposed public to internet.

Prerequisites

The SAP NetWeaver RFC SDK library is not public so you have to download by yourself.
Download the LINUX ON X86_64 64BIT version from: https://launchpad.support.sap.com/#/softwarecenter/template/products/_APP=00200682500000001943&_EVENT=DISPHIER&HEADER=Y&FUNCTIONBAR=N&EVENT=TREE&NE=NAVIGATE&ENR=01200314690100002214&V=MAINT

Installation

Using

The app expose four http post api, these api internally use the node-rfc library:

The file test.http of this repository contains examples for using the APIs

Where is the magic?

An hack in the standard cf nodejs buildpack, look at the manifest.yaml...

Troubleshooting

If you get the error reject connection request during connect, check the ACL files in backend system:

More info: https://answers.sap.com/questions/12362804/eclipse-connection-error--reject-connection-reques.html