You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to connect using this library, I tried:
$vhost = new \Vmwarephp\Vhost(‘https://top.mydomain.net/sdk’, ‘username’, ‘password’);
$virtualMachines = $vhost->findAllManagedObjects(‘VirtualMachine’, array(‘configStatus’));
But when I try to connect, I get errors:
PHP Notice: Undefined property: SoapFault::$detail in /var/www/smc/lib/vendor/vmwarephp/library/Vmwarephp/Exception/Soap.php on line 27
PHP Warning: Invalid argument supplied for foreach() in /var/www/smc/lib/vendor/vmwarephp/library/Vmwarephp/Exception/Soap.php on line 27
PHP Fatal error: Uncaught exception ‘Vmwarephp\Exception\Soap’ with message ‘HTTP: Could not connect to host. ‘ in /var/www/smc/lib/vendor/vmwarephp/library/Vmwarephp/Service.php:74
Stack trace:
I tried to use (removing the https:// and the sdk)
‘top.mydomain.net:443’
And I get a similar, but slightly less verbose error message:
PHP Fatal error: Uncaught exception ‘Vmwarephp\Exception\Soap’ with message ‘ServerFaultCode: type. InvalidRequest: InvalidRequest Object
(
)
‘ in /var/www/smc/lib/vendor/vmwarephp/library/Vmwarephp/Service.php:74
Added a bit of debugging to Service.php, but i'm not sure what to do with the response:
Cheers @jvdminne I was running into the same problem testing it locally with some tunneling (and therefore invalidating the certificate). Your fix is great for testing!
This looks like something that could be very useful to me.
However, I’m having trouble connecting to my host.
Using a simple, existing SOAP client request, i can connect to my vhost using:
‘https://top.mydomain.net/sdk’
When trying to connect using this library, I tried:
But when I try to connect, I get errors:
I tried to use (removing the https:// and the sdk)
‘top.mydomain.net:443’
And I get a similar, but slightly less verbose error message:
Added a bit of debugging to Service.php, but i'm not sure what to do with the response:
Any suggestions? I’m connecting to a vCenter server running 5.5
The text was updated successfully, but these errors were encountered: