Renew domain

				
					StructOperationResponse domainRenew(string idSession, string domain, int duration)
				
			

Renew a domain name for a new period.

REQUIRED


  • idSession string (32)
    Session ID.
  • domain string (255)
    Domain name.
  • duration integer
    Duration (In years).

An Object of type StructOperationResponse

  • The domain name must not have the QUARANTINE status
  • The duration must correspond to periods allowed by the extension. See structdomaintldinfo.PeriodRenew
  • The request must take place after DateMinRenew and before DateMaxRenew. (See structdomaininfo.dateMinRenew and structdomaininfo.dateMaxRenew)
<?php 
$clientSOAP = new SoapClient("http://URL.wsdl"); 
 
try 
{ 
      $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); 
      $StructOperationResponse= $clientSOAP->domainRenew($idSession, "netim.com", 1); 
 
      print_r($StructOperationResponse); 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if(isset($idSession)) 
{ 
      $clientSOAP->sessionClose($idSession); 
} 
?>