HostDelete

From NETIM
Jump to: navigation, search


Release Runtime
API >= 2.0 Synchronous


Description

Deletes an Host at the registry

StructOperationResponse hostDelete(string idSession, string host)


Parameters

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


Return

A structure StructOperationResponse


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->sessionOpen("XXXX", "XXXX", "EN"); 
      $StructOperationResponse= $clientSOAP->hostDelete($idSession, $host); 
 
      print_r($StructOperationResponse); 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if(isset($idSession)) 
{ 
      $clientSOAP->sessionClose($idSession); 
}


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
Contact Us
Web Hosting
SSL Certificate
Email Hosting
Website Builder
Resellers
Affiliates
Miscellaneous