I'm trying to connect to the Royal Mail SOAP API but can't get past the the begin request stage.
Certificates have been added to the wallet, it works fine for DPD and other Web APIs.
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;
/
Gives Error:
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.
I get the same whether I include the set wallet line or not.
This runs without error:
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;
/
Can anyone connect to the Royal Mail API via Oracle PL/SQL? Our version is 11.2.0.3.0.