DomainCheck

From NETIM
Jump to: navigation, search


Release Runtime
API >= 2.0 Synchronous


Description

Checks if domain names are available for registration

StructDomainCheckResponse[] domainCheck(string idSession, string domain)


Parameters

Format Variable Description Notes
string (32) idSession Session ID
string (255) domain Domain names to be checked


Return

An array of StructDomainCheckResponse


Notes

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 a multiple checkDomain. See HasMultipleCheck in Category:Tld


Examples

PHP

<?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); 
} 
?>


Release Runtime
API > 1.0 Synchronous


Description

Checks if domain names are available for registration

StructDomainCheckResponse[] domainCheck(string idSession, string domain)


Parameters

Format Variable Description Notes
string (32) idSession Session ID
string (255) domain Domain names to be checked


Return

An array of StructDomainCheckResponse


Notes

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 a multiple checkDomain. See HasMultipleCheck inCategory:Tld


Examples

PHP

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{ 
      $idSession = $clientSOAP->login("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->logout($idSession); 
} 
?>


JAVA

DRSServiceLocator service = new DRSServiceLocator(); 
String idSession; 
StructDomainCheckResponse structDomainCheckResponse; 
 
try 
{ 
      DRSPortType port = service.getDRSPort(); 
      idSession = port.login("XXXX", "XXXX", "EN"); 
 
      structDomainCheckResponse[] = port.domainCheck(idSession, "netim.com"); 
      System.out.println(structDomainCheckResponse[0].getResult() +" "+ structDomainCheckResponse[0].getReason()); 
 
      structDomainCheckResponse[] = port.domainCheck(idSession, "netim.com;netim2.com;netim3.com"); 
      System.out.println(structDomainCheckResponse[0].getResult() +" "+ structDomainCheckResponse[0].getReason()); 
System.out.println(structDomainCheckResponse[1].getResult() +" "+ structDomainCheckResponse[1].getReason()); 
System.out.println(structDomainCheckResponse[2].getResult() +" "+ structDomainCheckResponse[2].getReason()); 
 
      port.logout(idSession); 
} 
catch (RemoteException re) 
{ 
      System.out.println(re.getMessage()); 
} 
catch (ServiceException se) 
{ 
      se.printStackTrace(); 
}


Personal tools
Namespaces

Variants
Actions
Your account
Domain names
Contact Us
Web Hosting
SSL Certificate
Email Hosting
Website Builder
Resellers
Affiliates
Miscellaneous