Skip to Content

API Call from Hana XSJS to AWS S3

Dear All,

We are working on a POC to place a file in AWS S3 folder (external network) by reading data from a view on Hana (On-Premise Application) , possibly through XSJS. If any of you worked on this requirement, may you please provide guidelines/xsjs sample code for making a POST call from Hana to off-premise AWS S3 please ?


Add comment
10|10000 characters needed characters exceeded

  • I have no example for doing a POST to AWS S3 from XSJS, but you should be able to figure it out by yourself checking the XS JavaScript API Reference documentation. Especially the example here should give you the general necessary structure for doing an outbound call. Of course the example is a GET example, but you just need to change the HTTP method to post and provide the other necessary things required by the S3 API (e.g. specific headers, ...).

    Consider: That API is valid for XS Classic and the XSJS compatibility mode of XS Advanced. I would not recommend to set up a new project in the way. Instead an XS Advanced Implementation (either with Node.js or Java) would be the better approach for the future. With that you have also more options to fulfill your requirement (e.g. using the AWS Node.js SDK).


  • Did you find any solution?

  • Get RSS Feed

1 Answer

  • Mar 10, 2018 at 08:38 PM

    Hari, check out the outbound connectivity topic. You will need to create an xshttpdest file for your destination. and also an xsjs file that makes the post call - here is the official documentation from XSJS

    Add comment
    10|10000 characters needed characters exceeded