HostingRenew
From NETIM
(Difference between revisions)
(Pushed from Centre de support - FranceDNS.) |
|||
Line 1: | Line 1: | ||
− | [[Category: | + | [[Category:Functions]] |
{| class="wikitable" style="width: 200px;" | {| class="wikitable" style="width: 200px;" | ||
− | ! | + | ! Release |
− | ! | + | ! Runtime |
|- | |- | ||
− | |API > 1.4|| | + | |API > 1.4|| Asynchronous |
|} | |} | ||
Line 10: | Line 10: | ||
'''Description''' | '''Description''' | ||
− | + | Renew an hosting for a new subscription period | |
int hostingRenew(string idSession, string fqdn, int duration) | int hostingRenew(string idSession, string fqdn, int duration) | ||
− | ''' | + | '''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;" | | + | |style="width: 100;" | string (32)|| style="width: 100;" | idSession || style="width: 200;" | Session ID || style="width: 400;" | |
|- | |- | ||
− | |string (255)|| fqdn|| | + | |string (255)|| fqdn|| hostname || ''Fully qualified domain name'' |
|- | |- | ||
− | |int ||duration || | + | |int ||duration || new duration || ''in month'' |
|} | |} | ||
− | ''' | + | '''Return''' |
− | + | A tracking ID | |
'''Notes''' | '''Notes''' | ||
− | + | None | |
− | == | + | == Examples == |
− | ''' | + | ''' PHP ''' |
<source lang="php"> | <source lang="php"> | ||
<?php | <?php | ||
Line 69: | Line 69: | ||
− | ''' | + | ''' JAVA''' |
<source lang="java"> | <source lang="java"> | ||
DRSServiceLocator service = new DRSServiceLocator(); | DRSServiceLocator service = new DRSServiceLocator(); |
Revision as of 14:05, 18 July 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
Examples
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); } ?>
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(); }