Last active
July 5, 2016 13:41
-
-
Save AMEYCHAVAN/c6bdf8ce9c7a434d88570126009b2af2 to your computer and use it in GitHub Desktop.
node soap example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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