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 use "Routing Table" option in Proxy service in OSB ?

Udaya NeeliahgariJul 22 2010 — edited Jul 30 2010
Hi,

I have created Business and Proxy services in my OSB console. I have used "Custom Query" option while creating the Database Adapter and I'm passing one input parameter to the query. My input parameter is "Name".

Based on the input values for this parameter, I need to pass a corresponding values to the query. For example, If I pass the following values to "Name" input parameter (India) I need to pass "Value1" to my query -

India --> Value1
China --> Value2
America --> Value3

To achieve this requirement, I have used "Routing Table" option. I have specified the values as follows -

Expression - $body/fet:FetchCustDataInput/fet:Name
Operator- '='
Compare value - India
Service - "My Webservice"
Operaton- "My Service Operation"

In the "Request Actions:" I have added the "Add an Action --> Messaging Processing --> Replace" and provided the following values -

Replace <XPath> = $body/fet:FetchCustDataInput/fet:Name
in Variable = "Name"
with Expression = xs:string('Value1')
and selected "Replace node contents" option.

No validation errors I faced. I have created the Routing table in Proxy service. But when I try to execute the proxy service in my Test Console, I get the following error message -
"The invocation resulted in an error: Unknown error while processing message for service ProxyService OSBQueryService/FetchByCustomQuery/FetchByCustomQueryPS."

I have even enabled "Direct call" and "Include Tracing" options as well. The message under "Tracing" give "(echoing request)
Routed Service. No Service has been invoked, the request is echoed.".

Can anyone please help me to resolve this issue.

Thanks in Advance,
Udaya
This post has been answered by Anuj Dwivedi-Oracle on Jul 22 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 27 2010
Added on Jul 22 2010
5 comments
3,663 views