Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

soap fault when calling EnterMaintenanceMode_Task or RebootHost_Task #19

Open
ZsBT opened this issue Jul 22, 2015 · 1 comment
Open

Comments

@ZsBT
Copy link

ZsBT commented Jul 22, 2015

It seems second parameter disappears before the last SOAP call:

$task = $vhost->EnterMaintenanceMode_Task( $hosts, -1  );

PHP Fatal error: SOAP-ERROR: Encoding: object has no 'timeout' property in /var/cache/src/vmwarephp-master/library/Vmwarephp/Service.php on line 71

PHP Fatal error: Uncaught exception 'Vmwarephp\Exception\Soap' with message 'Client: SOAP-ERROR: Encoding: object has no 'timeout' property. ' in /var/cache/src/vmwarephp-master/library/Vmwarephp/Service.php:74

$task = $vhost->RebootHost_Task( $host, false  );

PHP Fatal error: SOAP-ERROR: Encoding: object has no 'force' property in /var/cache/src/vmwarephp-master/library/Vmwarephp/Service.php on line 71

PHP Fatal error: Uncaught exception 'Vmwarephp\Exception\Soap' with message 'Client: SOAP-ERROR: Encoding: object has no 'force' property. ' in /var/cache/src/vmwarephp-master/library/Vmwarephp/Service.php:74

Tried to debug in Service.php:74 , print_r($soapMessage) shows that the second parameter is indeed missing.

The server is esxcli 5.5

@okorneliuk
Copy link

$task = $host->EnterMaintenanceMode_Task(['timeout' => 300]); this syntax works nice for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants