Specification of our API (DRS) [1.0]

Function : domainWhois

   Description


Returns the information of the domain name published in the Whois database of the registry or the registrar


Signature

string domainWhois(string IDSession, string domain)

Parameters

string(50) IDSession : identifier of the session.
string(255) domain : domain name.

Return

Returns the result in a string.


   PHP Example


<?php
      $clientSOAP = new SoapClient("http://drs.netim.com/1.0/DRS.wsdl");
      try
      {
            $IDSession = $clientSOAP−>login("XXXX", "XXXX","EN");
            $strWhois = $clientSOAP−>domainWhois($IDSession, "netim.com");
            
            echo($strWhois);
      }
      catch(SoapFault $fault)
      {
            echo "Exception : " .$fault−>getMessage(). "\n";
      }

      if(isset($IDSession))
            $clientSOAP−>logout($IDSession);
?>

   JAVA Example


DRSServiceLocator service = new DRSServiceLocator();
String idSession, strWhois;

try
{
      DRSPortType port = service.getDRSPort();
      idSession = port.login("XXXX", "XXXX", "EN");

      strWhois = port.domainWhois(idSession, "netim.com");
      System.out.println(strWhois);

      port.logout(idSession);
}
catch (RemoteException re)
{
      System.out.println(re.getMessage());
}
catch (ServiceException se)
{
      se.printStackTrace();
}

   C# Example


Non disponible

© 2003,2010 - NETIM. All rights reserved. Noms de domaine - domain names