Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to call rest service dynamically using rest.binding.requestURI property in Oracle SOA 12c

User_M48AJMay 23 2019 — edited May 23 2019

I want to call Rest URL dynamically using rest.binding.requestURI from BPEL.

My REST URL is Query type and look like as below:

https://hostname/resourcePath?q={transactionID_t:{$eq: '12345'}}.

When hardcoding entire URL in Property rest.binding.requestURI getting error as invalid syntax.

Can anybody help on this?

Comments

Martien van den Akker

HI,

I think rest.binding.requestURI should contain a string or expression that results in a correct URL. Probably the syntax of your expression is a bit faulty.
What I'd do is create a string based variable and assing the URI to that. Corresponding to your URL I assume something like https://host:port/myResourcePath?q=12345

(I'm not sure what the curly brackets in your sample mean, looks like there went something wrong with your copying/pasting and editing the URL). The result of the assignment should be a valid URL that you could copy and paste into your browser. Base the rest.binding.requestURI property on that variable. You could paste the expression of the assignment directly in the the property. But I prefer to do it using a variable, because then the flowtrace will show the resulting value before actually invoking it. Helps in debugging.


Regards,
Martien

1 - 1

Post Details

Added on May 23 2019
1 comment
1,693 views