title: Nodejs Soap Client - ETIMEDOUT to JAX-WS Soap webservice
body: <p>I am trying to create a Soap Client in my local NodeJs application to call our Legacy system (Java) which have JAX-WS webservices (SOAP) exposed. This webservice is deployed on Tomcat EC2 instance. The ELB only accepts traffic on port 443 and directs the call to EC2-instance listening on port:80.</p>
  
  <p>If I expose a RestAPI end-point on the legacy web-application and use the 'request' module the nodejs code is able to call the Rest-Endpoint.</p>
  
  <p>If its a soap webservice then I get the below error. It would be really great if you guys could guide me in the right direction.</p>
  
  <p>I always get the below error:</p>
  
  <pre><code>Error: connect ETIMEDOUT xx.xx.xxx.xxx:80
      at Object.exports._errnoException (util.js:1018:11)
      at exports._exceptionWithHostPort (util.js:1041:20)
      at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
    code: 'ETIMEDOUT',
    errno: 'ETIMEDOUT',
    syscall: 'connect',
    address: 'xx.xx.xxx.xxx',
    port: 80 }
  </code></pre>
  
  <p>Below is my soap-client code: using the node-module: <a href="https://github.com/vpulim/node-soap" rel="nofollow noreferrer">https://github.com/vpulim/node-soap</a></p>
  
  <pre><code>var soap = require('soap');
  var path = require("path");
              var options = {
                  ignoredNamespaces: {
                      namespaces: ['targetNSAlias']
                  },
                  timeout: 120000,
                  port:443
              };
  
             soap.createClient("https://hostname/service?WSDL", options,function(err, client) {
  
      }
  </code></pre>
  
  <p>Thanks in advance.</p>