Idea Summary
apex_web_service.make_rest_request should use create_request_context instead of set_wallet.
This won't have changes for the user but it can prevent possible (rare and random) bugs at runtime.
Use Case
You can reproduce this bugs on a later 19c release. Since (about) 19.19 there is a (inofficial) backport for “wallet_path=system:” - actually this works fine. but you have to use request context or you will run into random ORA-29248 exceptions.
create a scheduler job that calls a url every minute and check the user_scheduler_job_run_details later…:
DECLARE
x CLOB;
BEGIN
x := apex_web_service.make_rest_request(p_url => 'https://oracle.com',
p_http_method => 'GET',
p_wallet_path => 'system:');
END;
It seems to be some issue of utl_http, because in 23ai the issue is not reproducable, but using request context would not hurt at all.
Preferred Solution (Optional)
Some small modifications in WWV_FLOW_WEB_SERVICES_INVOKER should be enough.