I'm using below code to invoke a http call whenever an insert or update happens on TEST_TABLE via Oracle DB trigger
create or replace TRIGGER TEST_TABLE_TRIGGER
AFTER INSERT OR UPDATE OF VALUE ON TEST_TABLE
for each row
DECLARE
req utl_http.req;
res utl_http.resp;
url varchar2(100) := 'http://{serverIP}:8086/testMethod';
BEGIN
-- need to pass current row to the http method
req := utl_http.begin_request(url, 'GET',' HTTP/1.1');
utl_http.set_header(req, 'content-type', 'application/json');
res := utl_http.get_response(req);
utl_http.end_response(res);
END;
How can I pass the newly added/updated row as a parameter to the http request ? Http request that's being invoked is a Java RESTful web service in which I will be processing newly added/updated row.