Docly Child

Set FTP user password

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

Change the password of a FTP user.


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

    “password”: New password}

An Object of type StructOperationResponse

$clientSOAP = new SoapClient("http://URL.wsdl");
    $params = array("username" =>"admin",
         "password" => "12abCD%@",
    $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); 
    $clientSOAP->WebHostingFTPUserUpdate($idSession, "NW1024", "SetPassword", $params)); 
catch(SoapFault $fault) 
    echo "Exception : " .$fault->getMessage(). "\n"; 
if (isset($idSession))