function ws_getPolicyById($policyId, $timeZoneId)
{
    try {
        $client = new SoapClient(WSDL_QS, array('location' => LOCATION_QS));
        $policy = $client->getPolicyById(array("policyId" => $policyId, "timeZoneId" => $timeZoneId));
    } catch (Exception $e) {
        $policy = null;
    } catch (SoapFault $soapfault) {
        $policy = null;
    }
    return $policy;
}
function pol_getPolicy($id, $timeZoneId)
{
    try {
        $param = array("policyId" => $id, "timeZoneId" => $timeZoneId);
        $client = new SoapClient(WSDL_QS, array('location' => LOCATION_QS));
        $policy = $client->getPolicyById($param);
        return array("policy" => $policy);
    } catch (Exception $e) {
        return $e->getMessage();
    } catch (SoapFault $soapfault) {
        return $soapfault->getMessage();
    }
}
function ws_getPolicyById($policyId, $timeZoneId)
{
    try {
        $client = new SoapClient(WSDL_QS, array('location' => LOCATION_QS));
        //echo '<script type="text/javascript">alert("In webserviceconfig.php")</script>';
        //var_dump($client);
        $policy = $client->getPolicyById(array("policyId" => $policyId, "timeZoneId" => $timeZoneId));
    } catch (Exception $e) {
        $policy = null;
    } catch (SoapFault $soapfault) {
        $policy = null;
    }
    return $policy;
}