Renew hosting

				
					StructOperationResponse WebHostingRenew(string $IDsession, string $id, int $duration)
			

Renew a hosting for a new subscription period.

REQUIRED

  • idSession string (32)
    Session ID.
  • id string
    Hosting ID.
  • duration integer
    Duration in months.

An Object of type StructOperationResponse

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