Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8783129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:45:03+00:00 2026-06-13T20:45:03+00:00

I am trying to use Oracle Service Bus DB Adapter to create a REST

  • 0

I am trying to use Oracle Service Bus DB Adapter to create a REST based service. There are four paramters that get passed in the query out of which at any time only 2 are passed. For example:

http://www.example.com/findPerson/personId=&birthDt=&ss=&lastname=

birthDt is always passed, but only 1 of the other 3 are passed. The other parameters are empty.

For me to do a database lookup, all I need is birthDt and 1 of the other 3 passed.

Is there a way in OSB to do a conditional select based on what is passed in? Do I do a Select or “Query By Example” or “Invoke a stored procedure” that returns what I need?

In the response to the REST service call, I need to return several elements in an XML format.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T20:45:04+00:00Added an answer on June 13, 2026 at 8:45 pm

    You could create a stored procedure in the backend which has all the input parameters as input (and 3 of them have ‘default null’)

    create or replace procedure my_procedure
    (p_parm1 in varchar2 default null, etc ..

    and in the stored procedure you check what parameters are filled to construct your select statement.
    In the xquery on the osb you will need to check which parameters from your rest call are filled in, to map these on the optional parameters of your stored procedure call.

    Or you can use the ‘select statement’ option in the db adapter and use some construction like this :

    select *
    from my_table
    where kolom1 = :p_name or :p_name is null

    Now you can expand the whole query based on the values of your input parameters

    Also for this case you need an xquery in the osb which will ‘map’ your rest parameters to the select statement parameters.
    Easiest way is i think to just pass on the whole query-parameter string into your xquery and use substring/substring-after etc to get the different parameters out of it together with their values and map these values to the input xml payload of your db adapter call.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

THere is a oracle query that I am trying to recreate using OpenJPA. I
I'm trying to use the WCF Oracle adapter to insert data in an Oracle
I'm trying to use cx_Oracle to connect to an Oracle instance and execute some
I'm trying to use WCF to consume a web service provided by a third-party's
Im trying to use Enterprise Architect to model Oracle database. Everything is going fine,
I would like to be able to create a service with Oracle 11g SOA
I'm trying to use an Oracle database with ado.net, and it is proving a
I am trying to use Ant to initialize my Oracle database by using Ant.
I'm trying to use the schema update feature in nHibernate against an Oracle 11g
I'm trying to use a Year-Week format in oracle SQL to return results only

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.