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 send/pick empty query parameter in REST service request

Peter551059Feb 25 2025 — edited Feb 25 2025

Hi.

I have two services in OSB. Service A sends one of two parameters id/name to REST service B.

But when I have tried send empty parameter I get

General runtime error: The template variable 'QPARAMKEYname' has no value

When I do not send empty parameter at all then service A outbound is OK.

<http:query-parameters>
    <http:parameter  name="id"  value="1"/>
</http:query-parameters>

but inbound or REST service B looks like this

<http:query-string>id=1</http:query-string>
<http:query-parameters>
    <http:parameter  name="id"  value="1"/>
    <http:parameter  name="name"  value="null"/>
</http:query-parameters>

What I have to do to get right inbound and not substitute “null” string instead empty parameter.

Finally I have found that problem is bug and after patching everything goes fine.

Patch 31573507: MERGE REQUEST ON TOP OF 12.2.1.4.0 FOR BUGS 31029249 31339546

Comments
Post Details
Added on Feb 25 2025
0 comments
182 views