HostingRenew

From NETIM
Revision as of 14:04, 18 July 2013 by Francedns (Talk | contribs)

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


Description

Renouvelle explicitement un hébergement pour une durée donnée

int hostingRenew(string idSession, string fqdn, int duration)


Liste des paramètres

Format Variable Description Notes
string (32) idSession Identifiant de la session
string (255) fqdn Nom d'hôte lié à l'hébergement Nom de domaine qualifié
int duration Durée de l'abonnement en mois


Valeurs de retour

Un numéro d'opération


Notes

A ne pas confondre avec la fonction hostCreate. 


Exemples

Langage PHP

<?php 
$clientSOAP = new SoapClient("http://drs.netim.com/1.4/DRS.wsdl"); 
$hosting = "example.com"; 
$duration = 1; 
 
try 
{ 
      $idSession = $clientSOAP>login("XXXX", "XXXX", "EN"); 
 
      $trackingID = $clientSOAP>hostingRenew($idSession, $hosting, $duration); 
      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; 
String hosting = "example.com"; 
int duration = 1; 
 
try 
{ 
      DRSPortType port = service.getDRSPort(); 
      idSession = port.login("XXXX", "XXXX", "EN"); 
 
      trackingID = port.hostingRenew(idSession, hosting, duration); 
      System.out.println(trackingID); 
 
      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