DVM with OSB

Hi all

You wanted to implement DVM with OSB.

Follwed the below URL and I tried to implement as it is.

https://blogs.Oracle.com/christomkins/entry/domain_value_maps_in_oracle_se

Created the project, XQuery with information of DVM, created of XQuery to get these values of DVM.
But when I start iam getting the following error message


Error message:
<>error has occurred during execution of XQuery: line 10, column 9: {err} FORG0005: expected exactly one element, 0 items. The XQuery is not valid or contains custom features of XQuery. Try to use the web test to test this XQuery (right-click on the XQuery file and select run as-> Run On Server) < / error >

The threshold is a problem:

*$dvm / ns0:rows / ns0:row [ns0:cell [1] = $airportName] / ns0:cell [2] *-xpath is throwing the exception.

Thank you
Vijay

veejai24 wrote:
I'm missing something here, how to pass data dvm to XQuery.

I think you should have the data in a variable and then "bind it' to your xquery... Use an activity log to check if the data is much to come...

Are you being able to read the xml content, you can do it with the doc function if you know the absolute path
Re: OSB: how to read the xml file, which is in OSB project

Or just download the xml data as a resource of xquery in the OSB project (rename .xq)... Not really a beauty, but works...

Or use something like that...
http://gibaholms.WordPress.com/2012/02/23/read-XML-resource-in-Oracle-service-bus-11g/

See you soon,.
Vlad

Tags: Fusion Middleware

Similar Questions

  • How to integrate the Java Application with OSB

    Hi, I'm a new guy with OSB and we plan to integrate the project with OSB, the exchange of existing project data type is REST JMS and NIO(Apache MINA).

    Could you any body show me how to configure the JMS/REST/NIO in OSB, and how java application call the proxy service maybe OSB?

    For example, the producer will push the message in the jms queue and s Comsumer will pull the message from the queue, java application is sufficient to bind the JDNI queue to identify the queue. But if set up in OSB, how java application to trigger the OSB proxy service to push the message in the jms queue and also how to consume?

    Thank you.

    It is certainly not necessary, because the current solution works for you.

    There may be some advantages however. OSB allows, for example, to disconnect the Server publication and the queue in the sense of identification information. OSB only could credentials to the actual queue, and the editor know only the creds to its own queue of the entry. Or to implement more complex logic that updates the latest version of the consumer - made demand to separate release dates for the producer and the consumer, who, in case of different vendors is a HUGE pain.

    OSB is the proverbial extra level of indirection that allows to solve any problem in IT. If you do not have a problem still though that obviously is not necessary a solution.

    Vlad

    http://genericparallel.com

  • integration of BAM with OSB in Oracle 11 g

    Hello
    Can someone give me some examples or any useful link to integrate BAM with OSb?

    Thanks in advance.

    Check
    http://www.Oracle.com/technetwork/middleware/BAM/OSB-BAM.PDF
    and
    Integration of the OSB 11 g and BAM

    HTH,
    Peter Paul

  • JMS messaging with OSB

    Hello Forum, so far I was not able to find any useful information so the question:

    1. OSB is an implementation of JMS?

    2. to use JMS with OSB do I need to install separate JMS? If this is not the case, is installed by itself when installing OSB JMS?

    Thank you!

    Oracle uses the Bea Weblogic JMS provider, so when you install OSB (on weblogic) you'll have a JMS engine that is installed too.

    To configure a JMS Module go on Weblogic Console-> (left panel) Services-> e-mail-> JMSModules.

    I hope this helps.
    Pablo

  • Using 64-bit JRockit with OSB 10 gR 3

    Is it a good idea to use 64-bit JRockit JVM with OSB 10 gR 3?
    According to my knowledge OSB 10 gR 3 uses 32-bit JVM. Our production environment is GNU / Linux 64-bit with 32 GB memory. But we are not adequately able to use if we use 2 bit JVM (as - Xmx in the JVM cannot be equal or more than 4 GB). I intend to use 64-bit JRockit JVM to run Weblogic Server
    Are there any known issues or I'm just missing something?

    Hello Calvin,

    I found the docs of configs supported for the OSB 10 gR 3 here:
    http://download.Oracle.com/docs/CD/E13196_01/platform/suppconfigs/configs_al10gr3/osb10gr3/overview.html#1128234

    The 64-bit JRockit does not seem to be supported on Oracle and Red Hat Linux, so it should work perfectly.

    Henrik

  • Eclipse with OSB 12.1.3

    Hello

    I would use eclipse to develop application with new OSB 12 c (version 12.1.3). OSB

    I installed OSB (Oracle SOA Suite downloads) then I downloaded the last eclipse (Oracle Enterprise Pack for Eclipse (12.1.3.1.1)), but still, I can't understand how do. I see no OSB type in the downloaded eclipse associates...

    Please help me.

    Thank you

    Tom

    Hello

    I think that the development of OSB 12 c is only available with JDev 12 c at this time. You can download the Quickstart SOA and create the OSB on Jdeveloper projects: 5 development Oracle Service Bus of Applications in JDeveloper (12 c Release 1 (12.1.3) )

    Kind regards.

    Jorge

  • backup of the root (/) with OSB

    Hi guru

    It is possible to take the root (/) backup system uses 10.4 OSB? and if possible then you have to make a different different backup mount point (for example, /ua01 which is the logical unit number)

    Thanks in advance
    ASA

    Of course, you plan a backup of system files task and give the database ' include path '. Even for any mount points "include path /ua01", then you might have a dataset that looks something like:

    include the host My_server
    include path.
    include the path of access/var
    include the path /ua01

    Now, it is important to remember that this is not an image backup, so you will not be able to restore a BONE dead with this backup, there will be changing and locked files during backup. A designated router would be to reimage the OS, install the OSB and restore the configuration files you need, very concretely. You would never say to restore /, or/etc or something like that.

    Thank you

    Rich

  • Problem with correlationID MQ Series with OSB

    I use Oracle Service Bus 11.1.1.6 and create a proxy and a business service (.biz) to publish a MQ Series queue.
    I post the message on the queue, but correlationID MQ Series sent to MQ Seires queue (.biz) business is diferent, when I receive the correlationID property of the message in the queue from MQ Series.
    For example:
    I sent the follow-up correlation identifier.
    Correlation-Id: D76DF8E7AEFC000000000000000000000000000000000000 (hex)
    [[When I get the parameter correlationID MQ Series, the only other value correlation identifier: Xmocru:] x 5] ^ 5

    This a bug?

    What's wrong?

    OSB MQ Transport waiting for a base64 correlationID. In your example, you sent a hexadecimal correlationID.

    When you use the adapter MQ (SOA Suite), MQ adapter awaiting a hexadecimal correlationID.

    Tracking links can help you with more information with the hex and base64:
    http://www5.rptea.com/base64/
    http://www.String-functions.com/hex-string.aspx

  • Analyzing XML and data storage approach with OSB

    Hello!

    I hope that you could suggest an appropriate approach to make this request.

    We need treat and find data in XML files (which are consistent with an XSD) and store them in the database. There is a huge amount of XML files to deal with every day and these files are received through some messaging queues and must also be shipped to different queues.

    We use OSB as tool integration approach should therefore be centred OSB. I have now the OSB is able to process XML files through the XQuery expressions and store data in the database (at least to read the data, I don't know if she is able to insert data directly). But the problem I see, is that we have to analyze a lot of data of each XML file, so I think it could be very cunbersome to build all the XQuery expressions in a stadium of the OSB.

    Another approach, I thought consist of an MDB that receives XML, JAXB support building process and data stores files in the database. OSB could receive the queue of the original XML files, send them to the queue target as well as MDB to commit processing.

    What approach seems most suitable for you?

    Thank you.

    Daniel.

    The OSB database adapter would give you XSD modeling the tables that you want to insert. You can consider fields of mapping of the input XML to XSD data adapter directly.

    Come discover the database adapter, and you will find them easy.

  • OSB - initiaing with OSB

    Hi all

    My company decided to migrate all our web services to the new OSB and guess how they chose to get up and running... This means that I will be around to care about you guys for a while... = D

    Well, I'm building a proof of concept using a simple reception, validation and tail to the case...

    1. receive a request
    2 validate the request against the WSDL
    2.1 - returns error if the request is not valid
    3 - field validation
    3.1 - returns error if one or several field (s) is / are not valid
    3.2 - make a transformation of the fields in an xml file
    4 - insert into a queue.

    So what I've done so far has been
    -J' created a WSDL with three fields first name, name and surname, dateOfBirth
    -J' created a Proxy service
    -created a pair of pipeline and inside my pipe
    -created a stage to validate the application. [validateRequest step]
    -----

    And here's my first question.
    How to be a 'best practice' to do this validation?

    So far, I use a message processing > action validate and do something like this:
    Validate. / chec:person in the variable person against CheckPersonWSDL (element = "person").
    and
    Trigger the error on validation failure

    Also, inside my validateRequest step, I added a stage of error which causes an error like this:

    Lift with error code error CheckPerson-001

    with the Error Message

    Request is invalid. Send it by valid values.

    -----

    Then, following my plan...

    -J' added a new step in my pair of pipeline to validate the fields received the request. [validateFields step]

    Inside the stage of validateFields, I put a classic if/else waterfall, validation of each field in an if condition and inside each if block I inserted:

    - Messaging > action assign to...

    Set fn:concat($body/chec:person/firstName,_"is_not_a_valid_name.") variable firstNameValidation

    - Messaging > action assign to do this:

    Assign fn:true() to the isFirstNameValid variable.



    So, after my stunt of ifs, I can check the second assigned variable and build a chain with the invalid fields.



    -----

    And my second question.



    How could I use the variable previously defined by the assign actions?

    for example isFirstNameValid to check if it is true or not.



    -----



    Well, basically, that's it... in the beginning... = D



    Thanks guys...

    A very beautiful description.

    How to be a 'best practice' to do this validation?

    You follow the best approach (validate the action of OSB). Validate the action is to validate an element of support useful/full load XML itself against the pre loaded schema/WSDL

    How could I use the variable previously defined by the assign actions?

    You can use your variable previously defined in the complete piping by simply returning its name. Assume that if you want to use it in an inline-Xpath/Xquery expression then just return it by $isFirstNameValid

    so, if you want to check if isFirstNameValid is true then within an if expression write $isFirstNameValid = fn:true()

    Kind regards
    Anuj

  • Problems with the function document XSL Transformation on OSB

    I'm trying to use the xsl document feature in my XSLT file to perform a transformation on the Bus of Service Oracle (version 11.1.1.4), but I see the following error message when you run the sbconsole test (just to test the transformation currently).

    Execution of the XSLT error: com.sun.org.apache.xalan.internal.xsltc.TransletException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Validation of XSLT Project1/xslt/iso-3-to-iso-2-lookup.xml: XSLT Project1/xslt/iso-3-to-iso-2-lookup.xml does not exist has failed

    The error indicates the file XML I'm referencing from the XSLT that does not exist in the specified folder, I confirmed that the file exists and we tried to move to other places and chaning the location of reference in the XSLT, but the error persists (with location of update). Anyone know if the XSL document function is supported for the transformations on the OSB or if there is something special that needs to be done so that the OSB can refer to the XML file properly?

    Here is the code snippet of the xslt file that launches a call using the XML file:
    ...
    < xsl: output method = "xml" encoding = "UTF-8" Indent = "Yes" omit-xml-declaration = "yes" / >
    "< xsl: Key name="ISO-3-to-ISO-2-lookup ' match = 'country' use = "iso3" / >
    "< xsl: variable name="ISO-3-to-ISO-2-Lookup "select ="document('iso-3-to-iso-2-lookup.xml')/ISO-pays"/ >
    < xsl: template match = "/ xx - xxxx:SyncSearchRequest" >
    < ns0:Search >
    ...

    Here is an extract from the XML file that I use as the lookup table:
    ...
    ? XML version = "1.0"? >
    < ISO-country >
    AF < country > < iso2 > < / iso2 > < AFG iso3 > < / iso3 > < / country >
    < country > < iso2 > AX < / iso2 > < ALA iso3 > < / iso3 > < / country >
    < country > < iso2 > AL < / iso2 > < ALB iso3 > < / iso3 > < / country >
    ...

    Thanks for any help.

    In OSB, document() function needs the path absolute XML file. So if you want to access the XML document for the search, you should place the XML file on the server itself and use the path of the XML file.

    Although it is not a good approach for the management of the OSB research. The type of Document XML resource must not be used for these use cases. What you can do is create an XQuery query that can server as a DVM.
    Here is an example on how to use DVMs in OSB:
    https://blogs.Oracle.com/christomkins/entry/domain_value_maps_in_oracle_se

    If you do not want to use XQuery and want to rely only on XSLT, then in the same document XSLT to create a separate model that can store all the data of research.

  • Error in OSB 12 c DVM

    Hello

    I'm trying to use the feature DVM in OSB 12 c.  After running, I am getting below error: -.

    ' oracle.tip.dvm.exception.DVMValidationException: could not get the Manager of metadata for DVM ' OSBDemo/OSBDVM.dvm'. Please make sure that the metadata Manager is available. "

    I created OSBDVM.dvm in the root directory of the project.

    Please find attached the screenshot for more details...

    Kind regards

    In Julie

    Aditya,

    Ask yourself why it fails to your CA. Once again the same error are you? «Action OSB Assign failed variable update» Yet one thing... you use the name of resouce right dvm? It displays OSBDVM in the picture, but the OSBDVM.dvm assign activity. Could check you if the name of the resource used in the lookup function is correct?

  • OSB Setup/licenses need help

    Hello

    I need to build a backup configuration (WebQuote), and being new with VSOS do not know how it the license. Found an article in WebQuote (L101634 Oracle Secure Backup - Stream Perpentual, unit list 3,039.00). Could someone please just describe what to licensing point of view when you create a configuration of backup with OSB, thank you. Or where I could find instructions how the license model. Thank you in advance,

    ALPO br.

    Hi, you answer me. In the case of pure tape as backup target drives, it is allowed by the tape drive. Each tape drive is a save stream and this is the basis for the issuance of the permit.

  • 12.1.3 OSB Eclipse plug-in

    Hello

    I have installed SOA suite 12.1.3 and EPCO 12.1.3, but not able to create the OSB project in eclipse, because view bus service is not available.

    I tried to install 12.1.3 repository also using the software update, but the prospect of the OSB is not available.

    Please can any one explain, how to get the OSB 12.1.3 plugin for eclipse?

    Thank you

    Manon...

    see this:

    Eclipse with OSB 12.1.3

    Development environment has been moved to JDeveloper

  • OSB and MQ integration

    Guidance on the implementation requirement below:

    We must send the message to MQ OSB and also whenever we receive the Message must call the Proxy in OSB service.

    Can you please share any good blog on this?

    The steps to get the resource connection mq in OSB also.

    Just use the MQ of OSB transport instead of the adapters.

    Even if you use adapters you will have just the JCA config files created from Jdev and there is no BPEL runtime really. But there is no reason to use with OSB unless you want to use some specific feature which provides adapters MQ is not in the OSB MQ transport.

    The OSB MQ transport should suffice for your case.

Maybe you are looking for

  • Failed the user connection cannot load profile.

    Very good as well. It is a sort of story, but I'll try to be as detailed as possible. There are 2 parts of the story. First of all:So I'm going to turn on my computer today and it loads, it took very long however. Once it starts it showed orange desk

  • Error codes (8000641, 0070641, 641) when you try to do an update?

    I get these error codes in windows updates is an automatic update.

  • How can I access my music files through Windows Media Player?

    OK, here's the facts:I have Windows Vista.Most of my music in my music is missing.I can view and listen to the music of "missing" in Windows Media Player (library).In Windows Media player, if I click on a song and 'open file location' need me for my

  • 1 analog input cannot display this video mode

    This seems to be a popular error. I read through many of the posts but can't find those specifically related to my problem. I have a 4400 Dimension which has had a hard disk crash. I replaced the drive and loaded the Dell supplied successfully recove

  • Problem with addons with the scanned image file

    The Add-ons under the file menu are grayed out when I open a tiff file that was generated by scanning a negative using an Epson 4 x 5 v800.When I open a normal digital image file, they are very good.With the help of Photoshop CC 2015 1.1 release. One