Skip to main content
Solved

PLSQL REST Response Body not returned

  • September 17, 2022
  • 2 replies
  • 444 views

Forum|alt.badge.img+1

I had a task to request via POST to a third party website and get the response back from the body.

I tried this and expected the callback function to return back the body from the request, No, it returns the original BODY used to make the request, not the returned BODY. I really wish IFS would improve it’s REST based functionality, I had to write a C# program and run that on a windows event to perform the task. It would be much, neater if it could be done in PL/SQL. Actually, since this is a Connect based call, it would be awesome. The documentation on the callback function is poor, it was very difficult to find the one of 5 callback methods that apply to this call. After spending a day on this, I gave up and chose the c# method, because, in the end, I had to get it done.

            Plsql_Rest_Sender_API.Call_Rest_EndPoint2(
               rest_service_ => 'https://…./{parameter1}',
               xml_ => xml,
               url_params_ => url,
               callback_func_ => 'c_my_util_api.REST_callback_Test',
               http_method_ => 'POST',
               http_req_headers_ => header_ ,
               query_parameters_ => NULL,
               header_params_ => NULL,
               incld_resp_info_ => false);

Best answer by Navinth Bakmeedeniya

@udlelk PlsqlRestSender

View original
Did this topic help you find an answer to your question?

2 replies

Navinth Bakmeedeniya
Hero (Employee)
Forum|alt.badge.img+12

@udlelk PlsqlRestSender


Forum|alt.badge.img+7
  • Sidekick (Partner)
  • 45 replies
  • July 17, 2023

@Navinth Bakmeedeniya I didn’t understand the solution.

How can we get the response synchronously using the Plsql_Rest_Sender_API?

 

Thanks.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings