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!

Oracle SOA 12c REST Service consumption shows bad request

User_XRB76Sep 26 2018 — edited Oct 5 2018

Hello,

I have developed a simple composite to consume a REST service using JDeveloper 12.2.1.3. The setup using the REST adapter wizard is attached. I have one template parameter 'IntId ' which is based on expression - $msg.request/pns:IntId. I am passing value to this in the BPEL component through the assign activity.

This fails with below error

<bpelFault><faultType>0</faultType><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>Bad Request</summary></part><part name="code"><code>400</code></part><part name="detail"><detail>URL request parameter IntId cannot be used in this context.</detail></part></bindingFault></bpelFault>

1. Is using the assign activity the right way to pass the value to 'IntId ' ?

2. If I modify the URI to have query parameters, how to pass the values at run time ?

I have attached the relevant security policy as well. Please provide pointers to address the issue.

Thanks,

Ashwin

This post has been answered by RakeshKr on Oct 5 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 2 2018
Added on Sep 26 2018
20 comments
3,564 views