HostingCreate

From NETIM
(Difference between revisions)
Jump to: navigation, search
(Pushed from Centre de support - FranceDNS.)
 
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'''
  
Créé un nouvel hébergement
+
Creates a new hosting
  
 
  int hostingCreate(string idSession, string fqdn, string offer, int duration, string lang)
 
  int hostingCreate(string idSession, string fqdn, string offer, int duration, string lang)
  
  
'''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|| host name || ''Fully qualified domain name''
 
|-
 
|-
|string (8)|| offer || Code de l'offre d'hébergement || ''[[hosting_offres |Liste des offres]]''
+
|string (8)|| offer || Hosting offer || ''[[hosting_offres |List of hosting offers]]''
 
|-
 
|-
|int ||duration || Durée de l'abonnement ||  ''en mois''
+
|int ||duration || Duration ||  ''in month''
 
|-
 
|-
|string (2)|| lang|| Langue de l'interface || ''[[hosting_langues | Liste des langues]]''
+
|string (2)|| lang|| Language of the webinterface || ''[[hosting_langues | List of acceptable languages]]''
 
|}
 
|}
  
  
'''Valeurs de retour'''
+
'''Return'''
  
  Un numéro d'opération
+
  A tracking ID
  
  
 
'''Notes'''
 
'''Notes'''
  
  A ne pas confondre avec la fonction hostCreate.
+
  Not to be confused with [[hostCreate]] function.
  
  
== Exemples ==
+
== Examples ==
  
''' Langage PHP '''
+
''' PHP '''
 
<source lang="php">
 
<source lang="php">
 
<?php  
 
<?php  
Line 75: Line 75:
  
  
''' Langage JAVA'''
+
''' JAVA'''
 
<source lang="java">
 
<source lang="java">
 
DRSServiceLocator service = new DRSServiceLocator();  
 
DRSServiceLocator service = new DRSServiceLocator();  

Revision as of 14:02, 18 July 2013

Release Runtime
API > 1.4 Asynchronous


Description

Creates a new hosting

int hostingCreate(string idSession, string fqdn, string offer, int duration, string lang)


Parameters

Format Variable Description Notes
string (32) idSession Session ID
string (255) fqdn host name Fully qualified domain name
string (8) offer Hosting offer List of hosting offers
int duration Duration in month
string (2) lang Language of the webinterface List of acceptable languages


Return

A tracking ID


Notes

Not to be confused with hostCreate function.


Examples

PHP

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