Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Ali .

Asked: November 28, 2019 - 6:56 pm UTC

Last updated: November 29, 2019 - 1:35 am UTC

Version: 19.1.0.00.15

Viewed 1000+ times

You Asked

Hello All,

I want to get data in PLSQL procedure through an external API POST method can anyone help plz i have read many blogs and searched google also but still no help

and Connor said...

POST is for *sending* data to an external source. Are you sure you do not mean GET ?

The APEX_WEB_SERVICE package (which comes with APEX) makes this a lot easier.

Tim has a nice simple example of that here

https://oracle-base.com/webservices/add-numbers.php

If you want to do it the "long" way using UTL_HTTP, check out this link

https://asktom.oracle.com/pls/apex/asktom.search?tag=need-to-call-restful-api-using-oracle-pl-sql


Is this answer out of date? If it is, please let us know via a Comment

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library