Oracle BPEL 12c: how to set value to template parameter (Rest Adapter) when calling an external API?
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: