oracle 如何使用make_rest_request函数发出https REST请求?

iugsix8n  于 7个月前  发布在  Oracle
关注(0)|答案(1)|浏览(88)

我正在尝试使用apex_web_service.make_rest_request函数来调用REST服务的POST方法。
所以如果我运行这样的东西-

SELECT utl_http.request('https://aa.xxxxxxx.com:port/dev/api/v1/asd',NULL,'file:/u01/wallet','WalletPass') from dual;

字符串
我可以得到HTML回来.但是,我如何使用POST方法与apex_web_service.make_rest_request发送体和使用相同的钱包和基本的AUTH.:)
我尝试了下面的代码,但它退出-ORA-06553: PLS-306: wrong number or types of arguments in call to 'MAKE_REST_REQUEST'

SELECT apex_web_service.make_rest_request(
              p_url              => 'https://aa.xxxxxxx.com:port/dev/api/v1/asd',
              p_http_method      => 'POST',
              p_username         => 'asdasd',
              p_password         => 'asdadsasd',
              p_wallet_path      => 'file:/u01/wallet', 
              p_wallet_password  => 'WalletPass',
              p_body => '') FROM DUAL;


APEX 18.1

8fsztsew

8fsztsew1#

查看APEX_WEB_SERVICE.MAKE_REST_REQUEST.的文档https://docs.oracle.com/en/database/oracle/apex/23.1/aeapi/MAKE_REST_REQUEST-Function.html#GUID-C77BB45A-8968-470C-8243-BADB63743DE9
p_wallet_password参数不正确;它应该是p_wallet_pwd

相关问题