XQuery in BPEL PM 10.1.2

Hi!
I'm trying to run a simple XQuery script to manipulate some XML data from my BPEL process... However when i deploy the code I get the following error:
[bpelc] [Error ORABPEL-10071]: unresolved xpath function
[bpelc] [Description]: in line 74 of "D:\dev\SemesterAvgift\SemesterAvgift.bpel"
, could not resolve xpath function "", because function "ora:processXQuery" not registered.
Now I checked the xpath-functions.xml file for my domain, and there was no sign of anything XQuery there.. I also noticed that the Tutorial (115) for XQuery is missing from all my installations of BPEL PM..
Btw. the function is listed in the Designer function listing, and the ora namespace is set to xmlns:ora="http://schemas.oracle.com/xpath/extension"..
I'm using the OAS based BPEL PM 10.1.2..
What am I missing??

Please refer to the documentation on configuring a third party LDAP provider in the BPEL admin guide located here:
http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28982/service_config.htm#BABHBEGH

Similar Messages

  • Bpel-108-UsingXQuery $publisher - oracle.xml.parser.v2.XMLElement@8b8e58

    Hello,
    I am using Oracle SOA Suite 11.1.1.4.0 While executing the XQuery example bpel-108-UsingXQuery I am facing the following problem/error.
    The Xquery in the example is:
    xquery version "1.0";
    declare namespace ns0 = "http://example.com/bpel/books";
    declare namespace ns1 = "http://samples.otn.com/xquerysample";
    declare variable $category as node() external;
    declare variable $publisher as xs:string external;
    <bookReport>
    for $b in //ns0:BOOKS/ns0:ITEM
    where data($b/ns0:PUBLISHER) = $publisher
    order by string-length($b/TITLE) return
    <book>
    <author> { data($b/ns0:AUTHOR) } </author>
    <title> { data($b/ns0:TITLE) } </title>
    <price>{ data(doc("pricelist.xml")/ns1:pricelist/ns1:product[1]/ns1:price) }</price>
    <publisher>{ $publisher }</publisher>
    { $category }
    </book>
    </bookReport>
    The variable $publisher, declared in 'declare variable $publisher as xs:string external' shall have the value 'Associated Press' as this has been assigned in the BPEL but it has in fact the value 'oracle.xml.parser.v2.XMLElement@8b8e58'.
    The variable $category has the correct value.
    What is here wrong or is it a bug in 11.1.1.4.0 in the oracle.xml.parser.v2.XMLElement class.

    What a mess:
    org.w3c.Element element = (org.w3c.Element) payload.get("payload");
    private Document writeOraXMLtoDocument(org.w3c.Element payload) throws ParserConfigurationException, SAXException, IOException, TransformerException{
              ByteArrayInputStream inputStream = new ByteArrayInputStream(writeXMLToStream(new DOMSource(payload)).toByteArray());
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder =factory.newDocumentBuilder();
              return builder.parse(inputStream);
         private ByteArrayOutputStream writeXMLToStream(Source source) throws TransformerException {
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    // Prepare the output file
    Result result = new StreamResult(out);
    // Write the DOM document to the file
    TransformerFactory x = TransformerFactory.newInstance();
    Transformer xformer = x.newTransformer();
    xformer.transform(source, result);
    return out;
    Note, that you have to use the oracle transformer located in the xmlparserv2.jar
    if it is not your default transformer , you have to set it at least for the above code by System.setProperty("javax.xml.transform.TransformerFactory","..classname...");

  • XSLT and XQuery recommendation for BPEL and OSB

    Hi,
    1. Why is XQuery recommeded for OSB and XSLT for BPEL. Are there any specific performance optimization reason behind this.
    2. Apart from OSB and BPEL, both XSLT and XQuery has xml transformation options and creating HTML. What is the difference between these two.
    Thanks in advance!

    you can create the graphical view of Xquery in Eclipse but not for XSLT
    Xquery is much faster than XSLT in OSB.
    Through XSLT however you can achieve more complex transformation.
    OSB has its historic origins in BEA Aqalogic stable and so Xquery was widely used used even though XSLT is supported. It is a matter of choice(your standards in your organization,your developer skillsets,your re-usable libraries etc )
    In Jdeveloper you can develop xslt in graphical mode though and attain complex transformation

  • Bpel-108-XQuery sample error

    Hi,
    I hit error when invoking unit tests for this bpel sample: bpel-108-UsingXQuery.
    Error Message
    asserts the output of the xquery run [Expected presence of child nodes to be 'true' but was 'false' - comparing <bookReport...> at /bookReport[1] to <bookReport...> at /bookReport[1] ]
    Can someone assist how to successfully invoke the SOA composite unit tests?

    Thanks James. The sample .zip file did not have a JDeveloper application that I could see. But I did find the build-global.properties file you mentioned and after finding all the appropriate parameters and changing them to my environment's set up, the install completed successfully. It would of been helpful if the installation instructions had mentioned this rather than assuming I had a Windows and Oracle XE environment. Cheers.
    Edited by: pwaleski on Apr 22, 2010 4:44 PM

  • Embedded XQuery Expression in BPEL 2.0

    The Oracle SOA Suite docs seem to indicate that embedded XQuery expressions can be used in a BPEL 2.0 component.
    The docs here, that is: http://docs.oracle.com/cd/E21764_01/integration.1111/e10224/bp_manipdoc.htm#BABBHIEG
    However, I can't seem to make this obscurely referenced piece of functionality work.
    Has anybody used this before? If in-line XQuery is truly available, it would be very handy.
    Edited by: user8641584 on May 24, 2012 8:02 PM
    Added some tags

    I read the blog post here
    Embedding Java in BPEL process
    Based on that I created this test class to help write code:
    The bolded code is the snippet I actually want to implement when I can solve the problem above.
    package com.f17.customfunction;
    import com.collaxa.cube.engine.ext.bpel.v1.nodes.BPELXExecLet;
    public class codeTyper extends BPELXExecLet {
        public codeTyper() {
            super();
        public void exec(){
         // below code gets pasted in here
    String input = (String)getVariableData("testfile");
    oracle.soa.common.util.Base64Decoder Decoder = new oracle.soa.common.util.Base64Decoder(); 
    try { 
    byte[] decodedByteArray = oracle.soa.common.util.Base64Decoder.decode(input.getBytes());
    setVariableData("compANDstore_merge_InputVariable.AusCreditCollection/ns2:AusCredit/ns2:fileData,decodedByteArray",decodedByteArray);
    } catch(Exception e) {
    e.printStackTrace();

  • Convertion of String to XML node using Xquery transformation in OSB

    How to convert string to XML node elementusing a built in function using Xquery transformation in OSB?

    check this out - http://www.javamonamour.org/2011/06/fn-beainlinedxml.html
    if in SOA (BPEL & Mediator) you can use oraext:parseXML.
    you should thoroughly analyse where to implement your requirement as some good practices advise to implement more complex logic in SOA and leave OSB to only connect to the services' endpoints.
    Hope this helps,
    A.

  • BPEl Human Activity Issue - Reject case is not working

    Hi All,
    I have bpel processs. It is works like this:
    It has a human task for approval from manager with ACCEPT or REJECT as outcomes.
    Once the manager Accepts the request, the initiator (say applicant) should get a email updating the status as accepted.
    And when the request is rejected by manager, then the initiator(say applicant) should get an email updating the status.
    The problem is the human activity is working fine for ACCEPT and sending email. But struck up for REJECT outcome. It is waiting for task completion from manager, i mean completion of human activity even though it is completed as the manager rejected it.
    Audit activity log when Human activity got REJECTed by manager:
    *"waiting for "onTaskCompleted" from "TaskService". Asynchronous callback"*
    I tried the below things.
    1) Deleted the task form --> saved the process --> closed Jdev --Re-opened  JDev and created a new task form. Still the same behavior. Not working for REJECT case.
    Can some body help me in figuring out the issue.
    I am using SOA suite 10.1.3.1 n JDev 10.1.3.1
    Thanks,

    Hi,
    I could figure out the solution to the problem.
    The issue was with xquery. I build it wrongly. I could find this from my domain logs.Then I corrected the query. Now it is working fine.
    Thanks,
    Irfan khan

  • Using XQuery for transformation in Mediator

    I have used successfully XQuery transformation in my BPEL using ora:processXQuery function. But I am struggling to use in my mediator transformations. Can any one confirm whether I can use XQuery for my mediator.. Many Thanks

    You can use Saxon to execute XQuery expressions.

  • Calling ora:processXQuery from bpel with parameters

    I am trying to call ora:processXQuery from bpel with parameters. I am using SOA Suite 11.1.1.7
    ora:processXQuery('selectVersionNumber.xq',bpws:getVariableData('XML_FILE_VAR','/ns4:InputParameters'),"OBJ_ID_VAR","OBJ_ID_INNER_VAR", bpws:getVariableData('OBJ_ID_VAR'),bpws:getVariableData('OBJ_ID_INNER_VAR'))
    selectVersionNumber.xq :
    xquery version "1.0";
    declare namespace ns4="http://www.example.org";
    let $item := //ns4:P_RELATIONSHIP_TBL
    for $x in $item/P_RELATIONSHIP_TBL_ITEM
        for $y in $x/ns4:P_RELATIONSHIP_TBL_INNER/ns4:P_RELATIONSHIP_TBL_ITEM_INNER
        where $x/ns4:OBJECT_ID = $OBJ_ID_VAR and $y/ns4:OBJECT_ID=$OBJ_ID_INNER_VAR
            return <objectVersion>{ $y/ns4:OBJECT_VERSION_NUMBER }</objectVersion>
    but ora:processXQuery dosen't accept more than two arguments. Is there any work around?

    Create a specific xml schema for your xquery as a input and pass that. Extract the required values from xml in your xquery.

  • XQuery in XSL

    Hi,
    I am using 11g. I need to perform complex transformation logic on my incoming message to transform it to outgoing message. I have been trying to do this via the XSL mapper without success. I was reading about Xquery and I have the following questions based on my understanding:
    1) Is it possible to call Xquery from XSL?
    2) Is it possible for Xquery to query XML A type and return the data in XML B type ?
    3) Are there any alternative approaches to achieve the complex transformation within SOA suite?

    Yes you can, what I do is use eclipse to implement the xquery as it has quite nice tooling. But you can you an IDE of your choice. JDev has limited support.
    In BPEL you us an Assign activity and use the expression ora:processXQuery(template,context?), the template = the xquery file, e.g. test.xq and the context is the source variable.
    cheers
    James

  • OSB and BPEL Capacity Planning

    Guys,
    I am looking for a start point to begin a capacity planing of OSB and BPEL infrastructure.
    What are the parameters to take in account?
    How many managed servers?
    RAM?
    CPU?
    I know that some answers might be shallow because there are so many factor to work with, but I need a small guidance.
    Anyone?
    Thanks a lot

    You can't expect a serious answer to your question. With so many unknown factors in place ...
    However, if we stay on this "general level", then based on my experience I can easily say that OSB is not greedy at all. You can handle tens to hundreds of requests per second on a retail hardware. Of course, it all depends on the character of your services. The more complexity (XQuery, XSLT, service callouts, java callouts) you add to your services the more power you need.

  • BPEL or OSB consume external webservices

    Hello all ,
    After I look over documentation and - Getting Started With Oracle SOA Suite 11g R1: A Hands-On Tutorial: Fast-Track Your SOA Adoption: Build a Service-Oriented Composite Application in Just Hours - still is not clear how can I consume a web-service hosted on other system - for example Websphere or SharePoint .
    I had a example one web service register
    <service name="DonateBeanService">
    <port binding="tns:DonateBeanPortBinding" name="DonateBeanPort">
    <soap:address location="http://localhost:8888/TestTopDown/services/DonateBeanPort"/>
    </port>
    </service>
    on my WAS CEE server .
    When I tried to made a business service in OSB - I imported the wsdl - create a new business service -add monitor capabilities but the call is not made to the service endpoint .
    Also inside BPEL how can I invoke a external webservice .
    Can anyone help me please with some points or advices ? What is wrong in the approach ? In the end OSB capabilities should allow me to integrate with other systems very easy .
    Many thanks in advance for all .
    And a HAPPY NEW YEAR .
    Best regards,
    Stefan

    how can invoke from inside a BPEL the same service ? or in the BPEL is better to have only local web-services BPEL can also invoke the same service. To know more about BPEL, please refer -
    http://www.oracle.com/technetwork/middleware/bpel/overview/index-088867.html
    Post BPEL related questions in BPEL forum -
    BPEL
    And the last one - if I need to read information from a file and send parameters to this webservice - how I will do it on the OSB ?Create a messaging type/Any XML proxy service in OSB with FILE/FTP transport (as per your requirement). In message flow of proxy service you may use XQuery/XSLT/MFL to transform the content of the pulled file into the XML required for calling web-service. Use communication actions to call business service from proxy service message flow. You may like to refer -
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e15866/toc.htm
    Regards,
    Anuj

  • XSLT, XPath and XQuery

    Hi,
    1.Can you differentiate these XSLT, XPath and XQuery.
    2.How Do I Force a Rollback in a BPEL Flow.
    Thanks in advance

    shree wrote:
    1.Can you differentiate these XSLT, XPath and XQuery.XSL stands for EXtensible Stylesheet Language, and is a style sheet language for XML documents. XSLT stands for XSL Transformations.
    XQuery is to XML what SQL is to database tables. XQuery was designed to query XML data.
    XPath is used to navigate through elements and attributes in an XML document. XPath is a major element in W3C's XSLT standard - and XQuery and XPointer are both built on XPath expressions.
    http://www.w3schools.com/xsl/default.asp
    http://www.w3schools.com/xquery/default.asp
    http://www.w3schools.com/xpath/default.asp
    Cheers,
    Vlad

  • Convertion of XML node to string using Xquery transformation in OSB

    How to convert XML node to string using a built in function using Xquery transformation in OSB? In BPEL we have the Xpath extension function ora:getContentAsString() to do the same.

    fn:bea-serialize() function converts xml node to string. but it assigns namespace prefix in every xml node during the conversion. So is there any function to remove the namespace prefix from XML node using Xquery built in function?

  • XQuery error in 10.1.3.4

    Hi,
    I am using Oracle SOA Suite 10.1.3.4. While executing the XQuery sample (115. XQueryTransformations) I am facing the following error.
    "AnnotatedNoClassDefFoundError" has been thrown.
    Missing class: oracle.xqs.bpelclient.XQSView Dependent class: com.collaxa.cube.xml.xpath.functions.xml.XQSViewPool Loader: oracle.bpel.common:10.1.3 Code-Source: /u01/app/OAS/10.1.3.1/SOAD1/bpel/lib/orabpel.jar Configuration: in /u01/app/OAS/10.1.3.1/SOAD1/j2ee/oc4j_soad/config/server.xml The missing class is available from the following locations: 1. Code-Source: /u01/app/OAS/10.1.3.1/SOAD1/xqs/lib/xds.jar (from in META-INF/boot.xml in /u01/app/OAS/10.1.3.1/SOAD1/j2ee/home/oc4j.jar) This code-source is available in loader oc4j:10.1.3.
    Do I need to perform some additional steps to enable XQuery. Any help would be appreciated.
    Thanks.

    Solved the problem..
    ora:processXQuery( )
    Added the jars from the em console and restarted.

Maybe you are looking for

  • Need suggestion on career in solman

    Hi, Intially, I was an ABAPer with exposure to Business Workflow. Then, i moved to ChaRM in solman. I have 3 yrs of experience in Change Managment in Solution Manager. I am having doubt over market demand of ChaRM experts. Please let me know if it wi

  • Font Troubles on MacBook Pro

    I recently purchased a MacBook Pro and took all of the fonts off of my Mac Pro at home and copied them to my harddrive>library>fonts folder. Only some of the fonts are working. Others do not work whatsoever in any application (Photoshop, InDesign, Pa

  • Populating a collection with function results

    I am calculating some statistics and need to use a collection to store the results of several function so they can be used in a procedure. Example: PROCEDURE PRODUCTIVITY_INSERT(p_first_of_month IN DATE) AS BEGIN vc_FirstofMonth := p_first_of_month;

  • Downloading music file and opening it

    Just want to know where my I tunes purchased  downoad is located and how do I open /unzip it.Zip files won't let me and how do I include it on my i tunes playlist Please

  • Beginning Java help needed.

    I'm trying to write a program that would display the elapsed time after double clicking in seconds. For instance, first click will start the timer, but it will not display the elapse time after the second click. Here is my code. public class ClickTim