Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nodejs + vmware vsphere sdk soap connection

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!

like image 321
waka-waka-waka Avatar asked May 14 '26 06:05

waka-waka-waka


1 Answers

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.

like image 54
reedog117 Avatar answered May 15 '26 19:05

reedog117



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!