Oracle SOA Suite (MOSC)

MOSC Banner

Oracle BPEL 12c: how to set value to template parameter (Rest Adapter) when calling an external API?

edited Nov 30, 2023 8:33PM in Oracle SOA Suite (MOSC) 1 commentAnswered

I need to call an external REST API from Oracle BPEL, where this API's service has template parameters on its URL, like: https://server/api/service/{id}


When I call the BPEL service, to call the external API service, I keep getting this error:

"oracle.fabric.common.FabricInvocationException: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map"


* tested on SOA Suite 12.2.1.3 and 12.2.1.4


The service.wadl is configured like this:

<resource path="/service/{id}">

 <method name="GET" soa:name="service">

  <request>

   <param name="id" style="template" type="xsd:string" soa:expression="$property.id"/>

  </request>

  ...

 </method>

</resource>


The Rest Adapter is configured like this:

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center