Skip to content

Instantly share code, notes, and snippets.

@brainv
Last active December 19, 2015 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brainv/5917929 to your computer and use it in GitHub Desktop.
Save brainv/5917929 to your computer and use it in GitHub Desktop.
var http = require("http");
var soap = require("soap");
var url = 'http://www.w3schools.com/webservices/tempconvert.asmx?wsdl';
var args = {Celsius: '40'};
soap.createClient(url, function(err, client) {
client.CelsiusToFahrenheit(args, function(err, result) {
console.log(result); //This works
});
});
Output
{ CelsiusToFahrenheitResult: [ 'Error' ] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment