Service call in Groovy Script
Summary
Having issues calling a service call in a groovy script.Content
There was a nice blog showing how to do this in an old version:
https://blogs.oracle.com/pdit-cas/how-to-call-any-rest-api-from-vbcs-groovy-code
But this doesn't seem to work anymore.
I've defined a REST service with one POST endpoint.
I try calling it based on the service name:
def VBSocketUpdateService = newService("VBSocketUpdate") def callBody = '{ "label": "UpdateSampleData" }' def callResponse = VBSocketUpdateService.post(callBody)
But I get an error:
Exception in expression "SampleData" trigger "BeforeUpdate_Rule_0" : oracle.adf.model.connection.rest.exception.RestConnectionException Service not found
at "SampleData" trigger "BeforeUpdate_Rule_0" line 11
Tagged:
0