I can't seem to find any examples on this. I see a listing on github for Node that says "Newspaper Club – Uses node.js for wrapping a nasty SOAP interface to InDesign Server.", but I don't see any code.
Thank you.
EDIT: I'm guessing that I could just find any javascript/SOAP kit and port it to Node. Any suggestions on a good one?
SOAP stands for Simple Object Access Protocol. It's basically the only thing that existed before REST. It's an XML based API… before going any further, know that REST is much, MUCH better.
The simplest way to call an API from NodeJS server is using the Axios library. Project Setup: Create a NodeJS project and initialize it using the following command. Module Installation: Install the required modules i.e. ExpressJS and Axios using the following command.
If you want to call the jar on the server you have to create a route for it(maybe using express). router. get('/call-java-app', function (req, res, next){ //call you function in here //respond with any data you want res. send('Your data here'); });
I've found what looks like a decent SOAP client for Node.js on github
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With