public static function request($path_args) { global $config; $json = file_get_contents("php://input"); $data = json_decode($json); $issue = self::prepIssue($data); $soap = new SoapClient($config->mantis->wsdl); try { $issue_id = $soap->mc_issue_add($config->mantis->user, $config->mantis->pass, $issue); return array('success' => true, 'version' => $soap->mc_version(), 'issue_id' => $issue_id); } catch (SoapFault $ex) { throw new Exception("Failed to log feedback"); } }