HostingInfo

From NETIM
(Difference between revisions)
Jump to: navigation, search
Line 10: Line 10:
 
'''Description'''
 
'''Description'''
  
Return all informations concerning the hosting
+
Returns all informations about the hosting
  
 
  [[StructHostingInfo]] hostingInfo(string idSession, string fqdn)
 
  [[StructHostingInfo]] hostingInfo(string idSession, string fqdn)
Line 30: Line 30:
 
'''Return'''
 
'''Return'''
  
  A structure of [[StructHostingInfo]] containing all informations about the hosting
+
  An object of [[StructHostingInfo]] containing all informations about the hosting
  
  
Line 41: Line 41:
 
''' PHP '''
 
''' PHP '''
 
<source lang="php">
 
<source lang="php">
StructHostingInfo
+
$clientSOAP = new SoapClient("http://URL.wsdl");
 +
 
 +
try
 +
{
 +
      $idSession = $clientSOAP−>login("XXXX", "XXXX", "EN");
 +
      $StructhostingInfo = $clientSOAP−>domainInfo($idSession, "netim.com");
 +
     
 +
      print_r($structHostingInfo);
 +
}
 +
catch(SoapFault $fault)
 +
{
 +
      echo "Exception : " .$fault−>getMessage(). "\n";
 +
}
 +
 
 +
if(isset($idSession))
 +
{
 +
      $clientSOAP−>logout($idSession);
 +
}
 
</source >
 
</source >
  

Revision as of 18:38, 18 July 2013

Release Runtime
API > 1.4 Synchronous


Description

Returns all informations about the hosting

StructHostingInfo hostingInfo(string idSession, string fqdn)


Parameters

Format Variable Description Notes
string (32) idSession Session ID
string (255) fqdn Hostname Fully qualified domain name


Return

An object of StructHostingInfo containing all informations about the hosting


Notes

None

Examples

PHP

$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{ 
      $idSession = $clientSOAP>login("XXXX", "XXXX", "EN"); 
      $StructhostingInfo = $clientSOAP>domainInfo($idSession, "netim.com"); 
 
      print_r($structHostingInfo); 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault>getMessage(). "\n"; 
} 
 
if(isset($idSession)) 
{ 
      $clientSOAP>logout($idSession); 
}


JAVA

DRSServiceLocator service = new DRSServiceLocator(); 
String idSession; 
StructHostingInfo structHostingInfo; 
 
try 
{ 
      DRSPortType port = service.getDRSPort(); 
      idSession = port.login("XXXX", "XXXX", "EN"); 
 
      structHostingInfo = port.hostingInfo(idSession, "netim2108.at"); 
      System.out.println(structHostingInfo.getDomain() +" "+ structHostingInfo.getDateCreate() +" "+ structHostingInfo.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
Shared Hosting
Old Hosting offers
SSL Certificates
Resellers
Affiliates
Contact Us
Miscellaneous