HostingSetPreference

From NETIM
Jump to: navigation, search
Release Runtime
API > 1.4 Asynchronous


Description

Sets new settings for the hosting

int hostingSetPreference(string idSession, string fqdn, string code, string value)


Parameters

Format Variable Description Notes
string (32) idSession Session ID
string (255) fqdn hostname Fully qualified domain name
string (50) code Setting to be updated see list below
string value New value for the setting see list below

List of settings and acceptable values

Setting Description Value Notes
Hold Status 0 ou 1 if status is 0 then the hosting is put offline
PanelPassword Password of the webinterface string (12)
Langue Language of the webinterface string (2)
auto_renew Autorenewal feature 0 ou 1


Return

A tracking ID


Notes

None

Examples

PHP

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
$hosting = "example.com"; 
$codePref = "auto_renew"; 
$value = "1"; 
$additional = ""; 
 
try 
{ 
      $idSession = $clientSOAP->login("XXXX", "XXXX", "EN"); 
      $trackingID = $clientSOAP->hostingSetPreference($idSession, $hosting, $codePref, $value, $additional); 
 
      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 codePref = "auto_renew"; 
String value = "1"; 
String additional = ""; 
 
try 
{ 
      DRSPortType port = service.getDRSPort(); 
      idSession = port.login("XXXX", "XXXX", "EN"); 
 
      trackingID = port.hostingSetPreference(idSession, hosting, hosting, codePref, value, additional); 
      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
Contact Us
Web Hosting
SSL Certificate
Email Hosting
Website Builder
Resellers
Affiliates
Miscellaneous