Skip to content

Instantly share code, notes, and snippets.

@skarllot
Created April 1, 2016 03:45
Show Gist options
  • Save skarllot/4843e1b5262d1953d06007209bcd3b57 to your computer and use it in GitHub Desktop.
Save skarllot/4843e1b5262d1953d06007209bcd3b57 to your computer and use it in GitHub Desktop.
SOAP client example (Node.JS)
// 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