Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you make Node.js talk to a SOAP service?

Tags:

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?

like image 824
Wayne Bloss Avatar asked Sep 03 '10 23:09

Wayne Bloss


People also ask

What is SOAP in node JS?

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.

How do I call a node API?

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.

How do I call a node js server from HTML?

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'); });


1 Answers

I've found what looks like a decent SOAP client for Node.js on github

like image 106
Maks Avatar answered Sep 17 '22 15:09

Maks