APEX_WEB_SERVICE Settings

Oracle Application Express is a rapid development tool for Web applications on the Oracle database.
Post Reply
admin
Posts: 2061
Joined: Fri Mar 31, 2006 12:59 am
Location: Pakistan
Contact:

APEX_WEB_SERVICE Settings

Post by admin »

BEGIN
APEX_WEB_SERVICE.g_request_headers.delete();
APEX_WEB_SERVICE.g_request_headers(1).name := 'Content-Type';
APEX_WEB_SERVICE.g_request_headers(1).value := 'application/json';

DBMS_OUTPUT.put_line('name: ' || APEX_WEB_SERVICE.g_request_headers(1).name);
DBMS_OUTPUT.put_line('value: ' || APEX_WEB_SERVICE.g_request_headers(1).value);
END;

BEGIN
APEX_WEB_SERVICE.g_request_cookies.delete();
APEX_WEB_SERVICE.g_request_cookies(1).name := 'username';
APEX_WEB_SERVICE.g_request_cookies(1).value := 'me';

DBMS_OUTPUT.put_line('name: ' || APEX_WEB_SERVICE.g_request_cookies(1).name);
DBMS_OUTPUT.put_line('value: ' || APEX_WEB_SERVICE.g_request_cookies(1).value);
END;
Malik Sikandar Hayat
admin@erpstuff.com
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests