QueryHostingList

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


Description

Returns all hosting linked to the reseller account.

StructHostingList[] queryHostingList(string idSession, string filter)


Parameters

Format Variable Description
string (32) idSession Session ID
string filter The filter applies onto the domain name


Return

An array of StructHostingList


Notes

The character '*' is equivalent to the character '%' in SQL


Examples

PHP

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{ 
      $idSession = $clientSOAP->login("XXXX", "XXXX", "EN"); 
      $ArrayHostingList = $clientSOAP->queryHostingList($idSession, "*.com"); 
 
      print_r($ArrayHostingList); 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if (isset($idSession)) 
{ 
      $clientSOAP->logout($idSession); 
} 
?>


JAVA

DRSServiceLocator service = new DRSServiceLocator(); 
String idSession; 
StructHostingList[] arrayStructHostingList; 
 
try 
{ 
      DRSPortType port = service.getDRSPort(); 
      idSession = port.login("XXXX", "XXXX", "EN"); 
 
      arrayStructHostingList = port.queryHostingList(idSession, ""); 
 
      for (int i=0; i < arrayStructHostingList.length; i++) 
            System.out.println(arrayStructHostingList[i].getHosting()+" "+arrayStructHostingList[i].getDateCreate()+" "+arrayStructHostingList[i].getDateExpiration()); 
 
      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