Get domain whois information

				
					string domainWhois(string idSession, string domain)
				
			

Return WHOIS information of a given domain.

REQUIRED

  • idSession string (32)
    Session ID.
  • domain string (255)
    Domain name.

A String containing the raw WHOIS data

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