Skip to Main Content

ORDS, SODA & JSON in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

REST API CALL NOT WORKING

anju abhiFeb 14 2025 — edited 4 days ago

DECLARE

l\_data CLOB;  

l\_empname VARCHAR2 (50);  

l\_division  VARCHAR2 (25);  

l\_url VARCHAR2 (1000) :='http://ip:port/PersonalInfoServic/personalinfocontroller?action=GETEMPDETFOREMPLOYEECODE'   

;

BEGIN

l\_data := apex\_web\_service.make\_rest\_request(  

    p\_url => l\_url,  

    p\_http\_method => 'GET'  

);  

WITH json\_tab AS  

(  

    SELECT l\_data FROM dual  

)  

SELECT l\_data, division  

    INTO :P5\_EMPNAME,:P5\_DIVN  

EXCEPTION WHEN no_data_found THEN

:P5\_EMPNAME := '';  

:P5\_DIVN := '';  

END;

Sir ,using this code i can able to call the Full API in the :P5_EMPNAMEā€¦but i need division in the :P5_DIVN what should i do ?

Duplicate Post
This post has already been added here:
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Marked as duplicate
Added on Feb 14 2025
3 comments
67 views