SOA unit test with more than one operation or XPath expression is failing for Mediator

(Doc ID 1080150.1)

Last updated on APRIL 14, 2010

Applies to:

Oracle SOA Platform - Version: 11.1.1.1.0 to 11.1.1.2.0 - Release: 11gR1 to 11gR1
Information in this document applies to any platform.

Symptoms


On : 11.1.1.2.0 version, User Interface

You have a service with 5 operations which is wired to the mediator and this mediator has 5 routing rules to a database adaptor. Every routing rule has an assign to overrule the xadatasource of the db resource adapter. In the assign you use a DVM lookup which has as input an element of the service. With this value you look up the right datasource.
When you try to test your composite using UnitTest in the EM console the following error occurs:

ORAMED-01002:[Metadata error in assign operation]Metadata Error occurred while assigning to target
"$out.property.jca.db.XADataSourceName" using invalid expression
"dvm:lookupValue("RegioCode.dvm","RegioCode",$in.request/sadr:CheckAdresRequest/ns7:AdresKey/ns5:RegioCode,"Datasource","jdbc/DoNotUse")".
Possible Fix:Fix the expression. Cause:internal xpath error



When you use a fix value instead of the XPath expression or if you test only one operation it always succeeds.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms