on 2024 Sep 09 6:17 AM
Hello,
Has anyone tried accessing nodejs functions from different container in SAP HANA webide (XS advanced)? There are posts about cross container access for database objects but couldn't find one for nodejs or XS functions.
Thanks,
Request clarification before answering.
you can refer to this one
https://community.sap.com/t5/technology-q-a/cross-mta-dependency-destinations/qaq-p/11950792
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you use cap? If so, this can help: https://community.sap.com/t5/technology-blogs-by-members/how-to-share-tables-across-different-cap-pr...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One of the most straightforward way is by exposing them as HTTP-based services (e.g., REST APIs) and consuming these services in the other container.
In the source container where your Node.js function resides, create an HTTP endpoint that exposes the function.
In the target container that wants to call the function from Container 1, use HTTP client libraries like axios or request in your Node.js code to call the exposed REST API.
Note that Cross-container communication often requires proper authentication and authorization.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 11 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.