I'm trying to create a new Virtual Machine in VSphere via specifications entered into a web form POSTed to php. I found the method call CreateVM_Task (scroll 70% of the way down) which seems to be the right API call. My problem is how to connect the php to this API call. The documentation for VSphere is plentiful, but I'm having trouble getting what I need.
why not try with Perl, its simple, vSphere SDK avail at free ,
http://www.vmware.com/support/developer/viperltoolkit/index.html
here they gave how to connect to vsphere, we can use web services calls to connect to vsphere. all the need is to open https port.