Get hosting id

				
					string WebHostingGetId(string $IDsession, string $fqdn)
			

Return the hosting ID to be used in other functions.

REQUIRED

  • idSession string (32)
    Session ID
  • fqdn string
    Fully qualified domain name defined in the hosting (vhosts, domain alias, …)

A String containing the hosting ID.

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{
 
    $idSession = $clientSOAP->sessionOpen("XX000", "xxxxxxxx"); 
    $clientSOAP->WebHostingGetId($idSession, "wordpress.netim.com"); 
}
catch(SoapFault $fault) 
{
    echo "Exception : " .$fault->getMessage(). "\n"; 
}
 
if (isset($idSession)) 
{
    $clientSOAP->sessionClose($idSession); 
}