Check domain availability

				
					StructDomainCheckResponse[] domainCheck(string idSession, string domain)
				
			

Check if domain name(s) are available for registration.

REQUIRED


  • idSession string (32)
    Session ID.
  • domain string (255)
    Domain name(s) to be checked.

An Array of Object of type StructDomainCheckResponse

You can provide several domain names separated with semicolons.

 

Caution :

  • you can’t mix different extensions during the same call
  • all the extensions don’t accept multiple domains. See HasMultipleCheck in StructDomainTldInfo
<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{ 
      $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); 
 
      $StructDomainCheckResponse = $clientSOAP->domainCheck($idSession, "netim.com"); 
      print_r($StructDomainCheckResponse); 
 
      $StructDomainCheckResponse = $clientSOAP->domainCheck($idSession, "netim.com;netim2.com;netim3.com;netim4.com;netim5.com"); 
      print_r($StructDomainCheckResponse); 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if(isset($idSession)) 
{ 
      $clientSOAP->sessionClose($idSession); 
} 
?>