function rm_getHistoricQuotaSummaryByUserAndCreditType($userId, $creditTypeId, $timeZoneId)
{
    try {
        $client = new SoapClient(WSDL_QS, array('location' => LOCATION_QS));
        $result = $client->getHistoricQuotaSummaryByUserAndCreditType(array('userId' => $userId, 'creditTypeId' => $creditTypeId, 'timeZoneId' => $timeZoneId));
        return $result->quotaSummary;
    } catch (Exception $e) {
        return array("success" => false, "message" => $e->getMessage());
    } catch (SoapFault $soapfault) {
        return array("success" => false, "message" => $soapfault->getMessage());
    }
}