问题描述
请原谅我的无知,因为我是一个初学者。
我使用 PL/SQL 创建了一个基本的 RESTful Web 服务,示例代码如下(工作正常)
ords.define_template(
p_module_name => 'restDemo',p_pattern => 'updateClient');
ords.define_handler(
p_module_name => 'restDemo',p_pattern => 'updateClient',p_method => 'POST',p_source_type => ords.source_type_plsql,p_source => 'declare
w_clob clob := :body_text;
begin
ws.ws_interface.update_client(w_clob);
exception
when others then
package.ws_interface.g_result_rec.result_message := SQLERRM;
end;');
当通过 post 请求启动 ws_interface.update_client
时,在 ws_interface
包的初始化中,我正在调用一个例程,该例程确定是否可以更新客户端(基于登录用户的访问权限)到数据库中)。
如果用户无权执行 updateClient
服务 - 我想终止服务调用,但我不知道如何执行此操作。
所以我的问题是:
如何终止当前活动的 updateClient
网络服务调用?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)