1 Reply Latest reply on May 23, 2019 7:44 AM by Martien van den Akker

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

    3908164

      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?

        • 1. Re: How to call rest service dynamically using rest.binding.requestURI property in Oracle SOA 12c
          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