There is a setup done by our dba in Marklogic server, and he has uploaded several xml documents.
I am trying to access those documents via oracle apex RESTFUL web service pl/sql code
declare
l_clob CLOB;
BEGIN
l_clob := apex_web_service.make_rest_request(
p_url => 'http://abcd.efg.com:8011/v1/documents?uri=/C/storage/data/temp.xml',
p_http_method => 'GET',
p_username => 'temp',
p_password => 'temp' );
dbms_output.put_line(l_clob);
END;
The dbms_output is printing the below error xml
<rapi:error xmlns:rapi="http://marklogic.com/rest-api">
<rapi:status-code>401</rapi:status-code>
<rapi:status>Failed Auth</rapi:status> <rapi:message-code/>
<rapi:message>Unauthenticated</rapi:message></rapi:error>
Any ideas what is the cause of the problem ??