function isRDPReady($hostName, $hostPort, $userid, $defaultHeight)
{
    // Edited: JAM 03.21.2012
    $wsdl = "http://ita-provisioner.cis.fiu.edu:8080/axis2/services/VirtualLabs?wsdl";
    $location = "http://ita-provisioner.cis.fiu.edu:8080/axis2/services/VirtualLabs";
    try {
        $params = array('hostName' => $hostName, 'hostport' => $hostPort);
        $client = new SoapClient($wsdl, array('location' => $location));
        $result = $client->isRDPReady($params);
        $result->bpp = getBppValue($userid);
        $result->height = getResolutionHeight($userid, $defaultHeight);
        $result->width = getResolutionWidth($userid);
    } catch (Exception $e) {
        echo $e->getMessage();
    } catch (SoapFault $soapfault) {
        echo $soapfault->getMessage();
    }
    echo json_encode($result);
    //return $result;
}