HostingRenew

From NETIM
(Difference between revisions)
Jump to: navigation, search
(Pushed from Centre de support - FranceDNS.)
 
m (Text replace - "−>" to "->")
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
[[Category:Fonctions]]
+
[[Category:Functions]]
 
{| class="wikitable" style="width: 200px;"
 
{| class="wikitable" style="width: 200px;"
! Version
+
! Release
! Exécution
+
! Runtime
 
|-
 
|-
|API > 1.4|| Asynchrone
+
|API > 1.4|| Asynchronous
 
|}
 
|}
  
Line 10: Line 10:
 
'''Description'''
 
'''Description'''
  
Renouvelle explicitement un hébergement pour une durée donnée
+
Renew an hosting for a new subscription period
  
 
  int hostingRenew(string idSession, string fqdn, int duration)
 
  int hostingRenew(string idSession, string fqdn, int duration)
  
  
'''Liste des paramètres'''
+
'''Parameters'''
 
{| class="wikitable" style="width: 800px;"
 
{| class="wikitable" style="width: 800px;"
 
! Format
 
! Format
Line 22: Line 22:
 
! Notes
 
! Notes
 
|-
 
|-
|style="width: 100;" | string (32)|| style="width: 100;" | idSession || style="width: 200;" | Identifiant de la session || style="width: 400;" |
+
|style="width: 100;" | string (32)|| style="width: 100;" | idSession || style="width: 200;" | Session ID || style="width: 400;" |
 
|-
 
|-
|string (255)|| fqdn|| Nom d'hôte lié à l'hébergement || ''Nom de domaine qualifié''
+
|string (255)|| fqdn|| hostname || ''Fully qualified domain name''
 
|-
 
|-
|int ||duration || Durée de l'abonnement ||  ''en mois''
+
|int ||duration || new duration ||  ''in month''
 
|}
 
|}
  
  
'''Valeurs de retour'''
+
'''Return'''
  
  Un numéro d'opération
+
  A tracking ID
  
  
 
'''Notes'''
 
'''Notes'''
  
  A ne pas confondre avec la fonction hostCreate.
+
  None
  
  
== Exemples ==
+
== Examples ==
  
''' Langage PHP '''
+
''' PHP '''
 
<source lang="php">
 
<source lang="php">
 
<?php  
 
<?php  
$clientSOAP = new SoapClient("http://drs.netim.com/1.4/DRS.wsdl");  
+
$clientSOAP = new SoapClient("http://URL.wsdl");
 
$hosting = "example.com";  
 
$hosting = "example.com";  
 
$duration = 1;  
 
$duration = 1;  
Line 51: Line 51:
 
try  
 
try  
 
{  
 
{  
       $idSession = $clientSOAP−>login("XXXX", "XXXX", "EN");  
+
       $idSession = $clientSOAP->login("XXXX", "XXXX", "EN");  
 
        
 
        
       $trackingID = $clientSOAP−>hostingRenew($idSession, $hosting, $duration);  
+
       $trackingID = $clientSOAP->hostingRenew($idSession, $hosting, $duration);  
 
       echo($trackingID);  
 
       echo($trackingID);  
 
}  
 
}  
 
catch(SoapFault $fault)  
 
catch(SoapFault $fault)  
 
{  
 
{  
       echo "Exception : " .$fault−>getMessage(). "\n";  
+
       echo "Exception : " .$fault->getMessage(). "\n";  
 
}  
 
}  
  
 
if (isset($idSession))  
 
if (isset($idSession))  
 
{  
 
{  
       $clientSOAP−>logout($idSession);  
+
       $clientSOAP->logout($idSession);  
 
}  
 
}  
 
?>
 
?>
Line 69: Line 69:
  
  
''' Langage JAVA'''
+
''' JAVA'''
 
<source lang="java">
 
<source lang="java">
 
DRSServiceLocator service = new DRSServiceLocator();  
 
DRSServiceLocator service = new DRSServiceLocator();  

Latest revision as of 11:09, 2 October 2013

Release Runtime
API > 1.4 Asynchronous


Description

Renew an hosting for a new subscription period

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


Parameters

Format Variable Description Notes
string (32) idSession Session ID
string (255) fqdn hostname Fully qualified domain name
int duration new duration in month


Return

A tracking ID


Notes

None


[edit] Examples

PHP

<?php 
$clientSOAP = new SoapClient("http://URL.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); 
} 
?>


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