3

I am trying to use NodeJS with soap and connect to VMWare's WSDL on a ESX or a virtual center but have been unable to do so. Any pointers would be really helpful.

I am using node-soap and I also found a php tutorial using soap to connect to ESX http://www.helixstorm.com/connecting-vsphere-api-php5-soap/

Thanks!

waka-waka-waka
  • 1,025
  • 3
  • 14
  • 30
  • I don't know how far you have made it on this but here is what the initial SOAP request should look like> http://pastebin.com/iXWcgepf – xandout Aug 26 '14 at 18:41

1 Answers1

1

I was able to create a connection to VMware's SOAP API using the node-soap module. The key is that their interface requires cookie authentication, so in addition to this module, you'll also need the soap-cookie module.

I recently authored a low-level wrapper that maintains a connection with a vCenter/ESXi host and allows you to issue vSphere API methods directly to it. You might get some inspiration from the source code I uploaded.

reedog117
  • 189
  • 2
  • 10