'2', 'faultString' => 'Wrong parameters.'); $custnr = (int)$argv; self::dbConnect(); $query = "SELECT GET_CR($custnr) cr FROM DUAL"; $stmt = oci_parse(self::$db, $query); oci_execute($stmt, OCI_DEFAULT); $cr = ($row = oci_fetch_assoc($stmt)) ? $row['cr'] : ''; oci_free_statement($stmt); self::dbDisconnect(); return (string)$cr; } } } if (RPC_CLASS == 'test') { class rpc__test extends test__db { public static function rpc__echo($methodName, &$argv, &$xmlrpc) { return $argv; } } } ?>