HostDelete

From NETIM
(Difference between revisions)
Jump to: navigation, search
Line 10: Line 10:
 
'''Description'''
 
'''Description'''
  
Delete an Host at the registry
+
Deletes an Host at the registry
  
 
  int hostDelete(string idSession, string host)
 
  int hostDelete(string idSession, string host)
Line 43: Line 43:
 
<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");
 
$host = "xxx.example.com";  
 
$host = "xxx.example.com";  
  

Revision as of 18:39, 18 July 2013

Release Runtime
API > 1.33 Asynchronous


Description

Deletes an Host at the registry

int hostDelete(string idSession, string host)


Parameters

Format Variable Description Notes
string (32) idSession Session ID
string (255) host hostname to be deleted


Return

A tracking ID


Notes

A host can only be deleted if no domain names use it.


Examples

PHP

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
$host = "xxx.example.com"; 
 
try 
{ 
      $idSession = $clientSOAP>login("XXXX", "XXXX", "EN"); 
      $trackingID = $clientSOAP>hostDelete($idSession, $host); 
 
      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 host = "xxx.example.com" 
 
try 
{ 
      DRSPortType port = service.getDRSPort(); 
      idSession = port.login("XXXX", "XXXX", "EN"); 
 
      trackingID = port.hostDelete(idSession, host); 
      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