Get host information

				
					StructHostInfo hostInfo(string idSession, string host)
				
			

Return the information of the requested host.

REQUIRED

  • idSession string (32)
    Session ID
  • host string
    Host name

An Object of type StructHostInfo

$clientSOAP = new SoapClient('https://URL.wsdl');

try {
    $idSession = $clientSOAP->sessionOpen('XX000', 'xxxxxxxx');
    $structHostInfo = $clientSOAP->hostInfo($idSession, 'ns1.example.com');
    print_r($structHostInfo);

} catch (SoapFault $fault) {
    echo 'Exception : ' . $fault->getMessage() . "\n";
}

if (isset($idSession)) {
    $clientSOAP->sessionClose($idSession);
}