Link user

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

Allow a database user to connect to a database.

REQUIRED

  • idSession string (32)
    Session ID.
  • id string
    Hosting ID.
  • action string
    Set to “LinkUser”.
  • params array
    {“dbName”: Database name, “username”: Database user}

An Object of type StructOperationResponse

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{
    $params = array("dbName" => "NW1024_database",
          "username" => "NW1024_admin");
 
    $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); 
    $clientSOAP->WebHostingDBUpdate($idSession, "NW1024", "LinkUser", $params)); 
}
catch(SoapFault $fault) 
{
    echo "Exception : " .$fault->getMessage(). "\n"; 
}
 
if (isset($idSession)) 
{
    $clientSOAP->sessionClose($idSession); 
}