Been fighting with this one for days. Hopefully, I'm being thick and there's a semicolon missing from somewhere.
I've been trying to setup a reference to my REST-enabled SQL (RESS) on my local box, and Apex refuses to acknowledge it.
I'm using the article at https://docs.oracle.com/database/apex-18.1/HTMDB/rest-enabled-sql-creating.htm#HTMDB-GUID-0906921E-AF79-49D4-B909-1C090F805D9D, which seems quite straightforward.
Before you ask:
- Yes, I've enabled the schema for REST
- Yes, I've enabled RESS in the defaults.xml file
- Yes, I've tested the RESS away from APEX, using a curl command like
curl -i -X POST --user testuser1:testuser1 --data-binary "select sysdate from dual" -H "Content-Type: application/sql" -k http://localhost:8080/ords/hr2/_/sql
, and it works.
Then in APEX->Shared Components->Data Sources->REST Enabled SQL, I've setup this reference:
and it uses these credentials:
However, when I initially created the reference, and when I test it, I get the following message:
What on earth am I doing wrong? Using Oracle APEX 21.2.0 and ORDS Version 21.4.1.r0250904
the screen shots look good. I would now check whether the database can reach the ORDS endpoint with APEX_WEB_SERVICE, as follows (you can use either SQL*Plus or SQL Workshop for this):
Possible errors are ...