Skip to content

Instantly share code, notes, and snippets.

@AMEYCHAVAN
Last active July 5, 2016 13:41
Show Gist options
  • Save AMEYCHAVAN/c6bdf8ce9c7a434d88570126009b2af2 to your computer and use it in GitHub Desktop.
Save AMEYCHAVAN/c6bdf8ce9c7a434d88570126009b2af2 to your computer and use it in GitHub Desktop.
node soap example
var soap = require('soap');
var url = 'http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL';
var args = {
name: 'value'
};
data = {
'ZIP': 37188
}
soap.createClient(url, function (err, client) {
console.log(client.GetCityWeatherByZIP.toString())
client.GetCityWeatherByZIP(data, function (err, result) {
console.log("result");
console.log(result);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment