SAP / node-rfc

Asynchronous, non-blocking SAP NW RFC SDK bindings for Node.js
Apache License 2.0
249 stars 73 forks source link

How to use node-rfc npm package on SAP cloud foundary environment? #145

Open sombir opened 4 years ago

sombir commented 4 years ago

Is there a way to install SAP NW RFC on cloud foundary and use node-rfc npm package

mtolksdorf commented 4 years ago

NW RFC Library cannot be used in the context of SAP CP Cloud Foundry. The respective functionality needed to consume a Cloud Connector tunnel is not offered with NW RFC Library 7.50.

sombir commented 4 years ago

Thanks for the quick response.

Is there any way to consume SAP RFC with nodeJS on SAP CP cloud foundry environment.

Thanks In Advance

mtolksdorf commented 4 years ago

Currently, in SAP CP Cloud Foundry environment RFC is supported only with the SAP Java Buildpack using JCo: https://help.sap.com/viewer/cca91383641e40ffbe03bdc78f00f681/Cloud/en-US/fa4adc9bd40e45dbac573fd616695446.html.

guptar85 commented 4 years ago

@sombir - I had a similar requirement earlier where I need to call RFC from the Cloud Foundry environment (see issue). I achieved this using Docker where the container was pushed to Cloud Foundry (along with Source code of NodeJs). I hope you can also achieve this. Please note from my Cloud Foundry I was able to reach my on-premise servers hence it worked so you need to check this before.

bsrdjan commented 3 years ago

The feature request to enable SAP NWRFC SDK usage on Cloud Foundry, in Connectivity context, can be created for:

Security Services category of the SAP Cloud Platform – Platform Foundation

gregorwolf commented 3 years ago

Hello *,

I've created the Idea:

Add support for NW RFC in the Cloud Foundry Environment especially Node.JS Buildpack (S-User required).

Best regards Gregor

sbarzaghialteaup commented 3 years ago

Cloud connector cannot be used, but when backend is exposed to public internet you can call rfc with workaround: https://github.com/sbarzaghialteaup/demo-node-rfc-cf

bhadana-rajesh commented 2 years ago

@sombir - I had a similar requirement earlier where I need to call RFC from the Cloud Foundry environment (see issue). I achieved this using Docker where the container was pushed to Cloud Foundry (along with Source code of NodeJs). I hope you can also achieve this. Please note from my Cloud Foundry I was able to reach my on-premise servers hence it worked so you need to check this before.

@guptar85 : How you created docker image, can you please share steps to create docker image of node-rfc.

Also I tried to run node-rfc docker image but docker container is getting crash
sudo docker run guptar85/docker-rfc:v1 -v docker: Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "-v": executable file not found in $PATH: unknown. ERRO[0000] error waiting for container: context canceled

bsrdjan commented 9 months ago

For experimenting and prototyping check: https://blogs.sap.com/2023/10/26/abap-rfc-connectivity-from-btp-node.js-buildpack/