public static function callAPI($wsdl, $username, $password, $payload, $debug) { try { ZuoraAPIHelper::checkLogin($wsdl, $username, $password, $debug); return ZuoraAPIHelper::callAPIWithSession($soapRequest, $debug); } catch (Exception $e) { //var_dump($e); throw new Exception($e->getMessage()); } }