【发布时间】:2019-04-12 11:13:42
【问题描述】:
我正在尝试连接到 Royal Mail SOAP API,但无法通过开始请求阶段。
证书已添加到钱包中,它适用于 DPD 和其他 Web API。
DECLARE
wk_http_request utl_http.req;
BEGIN
utl_http.set_wallet('file:/app/oracle/admin/A11/wallet', NULL);
wk_http_request := utl_http.begin_request('https://api.royalmail.net/shipping/v2', 'POST', utl_http.http_version_1_1);
END;
/
给出错误:
ORA-29259: end-of-input reached
ORA-06512: at "SYS.UTL_HTTP", line 1128
ORA-06512: at line 5
29259. 00000 - "end-of-input reached"
*Cause: The end of the input was reached.
*Action: If the end of the input is reached prematurely, check if the input
source terminates prematurely. Otherwise, close the connection
to the input.
无论我是否包含设置的钱包行,我都会得到相同的结果。
这运行没有错误:
DECLARE
wk_http_request utl_http.req;
BEGIN
utl_http.set_wallet('file:/app/oracle/admin/A11/wallet', NULL);
wk_http_request := utl_http.begin_request('https://api.dpd.co.uk', 'POST', utl_http.http_version_1_1);
END;
/
任何人都可以通过 Oracle PL/SQL 连接到 Royal Mail API 吗? 我们的版本是 11.2.0.3.0。
【问题讨论】: