title: Cannot parse response error while consuming SOAP service with node.js
body: <p>I am trying to consume a SOAP web service using <a href="https://github.com/vpulim/node-soap" rel="nofollow noreferrer">node-soap module</a>. However, I get <strong><em>'Cannot parse response'</em></strong> error while calling one of the method of the web service. </p>
  
  <p>Here is the implementation:</p>
  
  <p></p>
  
  <pre><code>var soap = require('soap');
  var url = 'http://myservice.com/MyService.svc?wsdl';
  var args = {
      Username: '***',
      Password: '***'
  };
  
  soap.createClient(url, function(err, client) {
      if (!err) {      
          client.MyService(args, function(err, response) {
              if (!err) {
                  console.log('MyService response:', response);
              } else {
                  console.log('Error in MyService:', err);
              }
          });
      } else {
          console.log('Error in createClient: ', err);
      }
  });
  </code></pre>
  
  <p>How can I fix this? </p>