I’m trying to utilise the plsql_rest_sender_api.call_rest_endpoint method passing the CLOB. As soon as i try to follow the documentation to add url parameters the method fails with wrong number or types of arguments in call to ‘CALL_REST_ENDPOINT’.
My problem is, if i don’t use url parameters then i’ll need to set up multiple routing addresses for each specific endpoint. This will cause issues when the endpoint changes from test to production as i’ll need to change them all.
Has anyone managed to utilise the url_params_ functionality within plsql_rest_sender_api.call_rest_endpoint ?
Best answer by chriselliston
I have got it working. The documentation indicates you should call plsql_rest_sender_api.call_rest_endpoint, pass in a clob and then use documents to create the url parameters. This doesn’t seem to work.
if you call plsql_rest_sender_api.call_rest_endpoint2 you can pass in a clob and then use documents rather than records to create the url parameters as per the documentation.