title: Getting Error: getaddrinfo ENOTFOUND when using node-soap
body: <p>I have a SOAP web service which I need to read from a node.js application and decided to use <a href="https://github.com/vpulim/node-soap" rel="nofollow">vpulim/node-soap</a></p>
  
  <p>The web service works when I use a SOAP client but I can't get it to work on a node.js application. I'm getting the below error message:</p>
  
  <pre><code>Error: getaddrinfo ENOTFOUND www.xxxxxxx.intra.com.mt www.xxxxxxx.intra.gov.mt:9011
      at errnoException (dns.js:26:10)
      at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:77:26)
  </code></pre>
  
  <p>The strange part is that the actual URL is www.xxxxxx.com.mt without the intra part. I don't get why it shows differently here.</p>
  
  <p>Below is the code I'm using.</p>
  
  <pre><code>var url = 'https://www.xxxxxxxx.gov.mt/wsRPS.asmx?WSDL';    
  
    soap.createClient(url, function(err, client){
       //client.addSoapHeader(soapHeader);
      //
      var args = {
        from: "2016-03-01T11:00:00",
        to: "2016-03-03T11:00:00"
      };
  
      client.GetInformation(args, function(err, result){
       if(err){
         throw err;
       }
       console.log(result);
      });
    });
  </code></pre>
  
  <p>Any ideas on what's going on? Thank you</p>