Accessing a SOAP service from Node.js with a Static IP

    The node-soap library is a great library for connecting to SOAP services from your Node.js app.

    var soap = require('soap'),
    url = 'http://example.com/wsdl?wsdl',
    args = { name: 'value' },
    opts = {
      wsdl_options: {
        proxy: process.env.xlroutesSTATIC_URL
      }
    };
    
    soap.createClient(url, opts, function(err, client) {
      console.log('connected');
      client.MyFunction(args, function(err, result) {
        console.log(result);
      });
    });