DomainRestore
De NETIM
Version | Exécution |
---|---|
API >= 2.0 | Synchrone |
Description
Restaure un nom de domaine en quarantaine / redemption
StructOperationResponse domainRestore(string idSession, string domain)
Liste des paramètres
Format | Variable | Description | Notes |
---|---|---|---|
string (32) | idSession | Identifiant de la session | |
string (255) | domain | Nom de domaine |
Valeurs de retour
Une structure de type StructOperationResponse
Notes
L'opération doit intervenir avant la date DateMaxRestore du domaine. Voir domainInfo
Exemples
Langage PHP
<?php $clientSOAP = new SoapClient("http://URL.wsdl"); try { $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); $StructOperationResponse = $clientSOAP->domainRestore($idSession, "netim.com"); print_r($StructOperationResponse); } catch(SoapFault $fault) { echo "Exception : " .$fault->getMessage(). "\n"; } if(isset($idSession)) { $clientSOAP->sessionClose($idSession); } ?>
Version | Exécution |
---|---|
API > 1.0 | Asynchrone |
Description
Restaure un nom de domaine en quarantaine / redemption
int domainRestore(string idSession, string domain)
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 numéro d'opération
Notes
L'opération doit intervenir avant la date DateMaxRestore du domaine. Voir domainInfo
Exemples
Langage PHP
<?php $clientSOAP = new SoapClient("http://URL.wsdl"); try { $idSession = $clientSOAP->login("XXXX", "XXXX", "EN"); $trackingID = $clientSOAP->domainRestore($idSession, "netim.com"); echo($trackingID); } catch(SoapFault $fault) { echo "Exception : " .$fault->getMessage(). "\n"; } if(isset($idSession)) { $clientSOAP->logout($idSession); } ?>
Langage JAVA
DRSServiceLocator service = new DRSServiceLocator(); String idSession; int trackingID; try { DRSPortType port = service.getDRSPort(); idSession = port.login("XXXX", "XXXX", "EN"); trackingID = port.domainRestore(idSession, "netim.com", 1); System.out.println(trackingID); port.logout(idSession); } catch (RemoteException re) { System.out.println(re.getMessage()); } catch (ServiceException se) { se.printStackTrace(); }