Skip to content

Instantly share code, notes, and snippets.

@nfabre
Created November 30, 2010 10:16
Show Gist options
  • Save nfabre/721468 to your computer and use it in GitHub Desktop.
Save nfabre/721468 to your computer and use it in GitHub Desktop.
update-user.php
<?php
// Instanciation
$hostAccountSpec = new Vmware\DataObject\Host\AccountSpec();
// Champs obligatoires
$hostAccountSpec->setId('userName');
$hostAccountSpec->setPassword('password');
// Modification de la description
$hostAccountSpec->setDescription('other fullName');
// Creation de la requete SOAP
$soapMessage = array(
'_this' => new SoapVar($accountManager->{'_'}, XSD_STRING, $accountManager->type),
'user' => new SoapVar($hostAccountSpec,SOAP_ENC_OBJECT,'HostAccountSpec')
);
// Update de l'utilisateur
$connection->UpdateUser($soapMessage);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment