QueryZoneList

From NETIM
Revision as of 16:56, 17 July 2013 by Francedns (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Version Exécution
API >= 1.0 Synchrone


Description

Retourne la liste des enregistrements DNS du nom de domaine

StructQueryZoneList[] queryZoneList(string idSession, string domain) 


Périmètre

Noms de domaine


Liste des paramètres

Format Variable Description Notes
string (32) idSession Identifiant de la session
string (255) domain Nom de domaine


Valeurs de retour

Un tableau de structure de type StructQueryZoneList


Notes

Aucune

Exemples

Langage PHP

<?php
$clientSOAP = new SoapClient("http://drs.netim.com/1.4/DRS.wsdl");
 
try
{
      $idSession = $clientSOAP>login("XXXX", "XXXX", "EN");
      $ArrayZoneList = $clientSOAP>queryZoneList($idSession, "netim.com");
 
      print_r($ArrayZoneList);
}
catch(SoapFault $fault)
{
      echo "Exception : " .$fault>getMessage(). "\n";
}
 
if (isset($idSession))
{
      $clientSOAP>logout($idSession);
}
?>


Langage JAVA

DRSServiceLocator service = new DRSServiceLocator();
String idSession;
StructOptionsZone structOptionsZone;
StructQueryZoneList[] arrayStructQueryZoneList;
 
try
{
      DRSPortType port = service.getDRSPort();
      idSession = port.login("XXXX", "XXXX", "EN");
 
      arrayStructQueryZoneList = port.queryZoneList(idSession, "netim.com");
 
      for (int i=0; i < arrayStructQueryZoneList.length; i++)
      {
            System.out.println(arrayStructQueryZoneList[i].getHost()+" "+arrayStructQueryZoneList[i].getType()+" "+arrayStructQueryZoneList[i].getValue());
 
      structOptionsZone = arrayStructQueryZoneList[i].getOptions();
      System.out.println(structOptionsZone.getService() +" "+ structOptionsZone.getProtocol() +" "+ structOptionsZone.getTtl() +" "+ structOptionsZone.getPriority() +" "+ structOptionsZone.getWeight() +" "+ structOptionsZone.getPort() +"\n");
      }
 
      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
Shared Hosting
Old Hosting offers
SSL Certificates
Resellers
Affiliates
Contact Us
Miscellaneous