Set user password

				
					StructOperationResponse WebHostingDBUserUpdate(string $IDsession, string $id, string $action, array $params)
			

Change the password of a database user.

REQUIRED

  • idSession string (32)
    Session ID.
  • id string
    Hosting ID.
  • action string
    Set to “SetPassword”
  • params array
    {“username”: Name of the user, “password”: New user password,}

An Object of type StructOperationResponse

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{
    $params = array("username" => "NW1024_admin",
         "password" => "12abCD%@",
        );
 
    $idSession = $clientSOAP->sessionOpen("XX000", "xxxxxxxx"); 
    $clientSOAP->WebHostingDBUserUpdate($idSession, "NW1024", "SetPassword", $params)); 
}
catch(SoapFault $fault) 
{
    echo "Exception : " .$fault->getMessage(). "\n"; 
}
 
if (isset($idSession)) 
{
    $clientSOAP->sessionClose($idSession); 
}