Created
April 1, 2016 03:45
-
-
Save skarllot/4843e1b5262d1953d06007209bcd3b57 to your computer and use it in GitHub Desktop.
SOAP client example (Node.JS)
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
// https://tonicdev.com/56fde983d60906110030ba19/56fde983d60906110030ba1a | |
var soap = require('soap'); | |
var url = 'http://www.webservicex.net/geoipservice.asmx?WSDL'; | |
var args = {IPAddress: '8.8.8.8'}; | |
soap.createClient(url, function(err, client) { | |
client.GetGeoIP(args, function(err, result) { | |
console.log(result.GetGeoIPResult); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment