Importing AIA Xpath Functions in to Jdeveloper

Hi,
I have a requirement of using aia Xpath functions, i downloaded the AIAXpath zip folder form metalink and edited the setup.ev to Jdev home even after running the bat file restarted the system but could not see the aia Xpath functions in my Jdev during assiging expression though they were present in jdev/lib/patches.
Please provide your inputs.

Please refer to metalink DOC ID 550378.1.

Similar Messages

  • Issue with AIA XPath Functions while compiling in JDeveloper 11.1.1.2.0

    Hi,
    BPEL flow contains Assign activity as below :
    <assign name="Assign_1"><copy><from expression='aia.getServiceProperty("{http://xmlns.oracle.com/ABCSImpl/SAP/Core/UpdateItemListSAPReqABCSImpl/V1}UpdateItemListSAPReqABCSImpl","Default.SystemID",true())'/>
    <to variable="temp"/></copy> </assign>
    When I try to compile this flow, it gives me below errors :
    SOALog:
    Buildfile: D:\Oracle\Middleware\jdeveloper\bin\ant-sca-compile.xml
    scac:
    [scac] Validating composite : 'D:\test\TestAIAFunc\composite.xml'
    [scac] FATAL_ERROR: in TestAIABPELProcess.bpel(81): unresolved xpath function
    [scac] could not resolve xpath function "aia.getServiceProperty", because function "aia.getServiceProperty" not registered.
    [scac] Make sure this function is either in the system xpath function configuration file or in the custom xpath function configuration file. Refer to the user guide regarding how to register xpath functions in your compiler environment.
    BUILD FAILED
    D:\Oracle\Middleware\jdeveloper\bin\ant-sca-compile.xml:264: Java returned: 1 Check log file : D:\test\TestAIAFunc\SCA-INF\classes\scac.log for errors
    Total time: 9 seconds
    CompilerLog:
    Project: D:\test\TestAIAFunc\TestAIAFunc.jpr
    D:\test\TestAIAFunc\TestAIABPELProcess.bpel
    Error(81): unresolved xpath function
    could not resolve xpath function "aia.getServiceProperty", because function "aia.getServiceProperty" not registered.
    Make sure this function is either in the system xpath function configuration file or in the custom xpath function configuration file. Refer to the user guide regarding how to register xpath functions in your compiler environment.
    I got latest aia.jar from server(SOA11.1.1.2, weblogic 10.3.2, AIA11gR1) and added aia.jar @ JDeveloper 11.1.1.2--> Tools--> Preferences--> SOA
    I also added it in jdeveloper/lib, jdeveloper/jdev/lib
    aia namespace is there in .bpel as : xmlns:aia="http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions"
    Thanks,
    Hema

    You have to include the aia.jar file. I had same issue .. I had aia.jar included in the project but the file was not ther ein the path . so i updated the correct path .. it worked

  • AIA: Missing aia xpath func getEBMHeaderSenderSystemNode in JDev 11.1.1.6

    Hi,
    I have JDev 11.1.1.6 with AIA Service Constructor extension (11.1.1.6).
    In Assign-activity in BPEL I can see aia xpath functions such as getServiceProperty, but I can not see getEBMHeaderSenderSystemNode.
    In xslt aia xpath function getServiceProperty is valid, but function getEBMHeaderSenderSystemNode can not be found.
    If i look in aia.jar under <JDEV_HOME>\jdeveloper\lib I can see function aia:getEBMHeaderSenderSystemNode in ext-soa-xpath-functions-config.xml
    How can I get function getEBMHeaderSenderSystemNode visible inside JDev?
    (I guess this is only a dev-time problem and it will work in run-time, but it is anyway annoying)
    Thankful for help
    Henrik

    Hi,
    just as I though, there is no problem during run-time, only during development.
    Anyone know if this is a known issue?
    /Henrik

  • AIA XREF Functions in Jdeveloper

    Hi,
    I am using XREFs and DVMs in my flows using AIA 3.0. I am not able to see the functions like generate-guid(), functions related to XREF and DVM in the XSLT designer. I remember having installed a AIAXpathFunctions patch for JDeveloper in SOA 10g.
    Is there a similar patch available for 11g or how do we use these functions in XSLs ? Have the definition of the function changed and can we use it the same way we used in AIA 2.0/SOA 10g.
    Cheers,
    - AR

    This is the content from the latest Installation Guide
    JDeveloper enables you to modify AIA delivered content or develop and deploy new AIA custom content. AIA uses special XPath functions and it is necessary to import these into the JDeveloper library. You can import these using either of the following procedures:
    - If you download the AIA plugin from update center to use AIA service constructor, the aia.jar is automatically made available for you.
    - In JDeveloper, navigate to Tools, Preferences, SOA and add the library aia.jar. The aia.jar is available under AIA_HOME/lib directory
    As per the first option, Robert is asking you to use the Service constructor but because this is EAP, we havent made it available in the update center.

  • Ebi:getConvertedDateWithTZ   XPATH function in AIA 11g?

    Hi all,
    There was an XPATH function available with PIP module to convert the datetime into a particular format.
    xmlns:ebi="http://www.oracle.com/XSL/Transform/java/oracle.apps.ebi.core.xpath.EBIXPathFunctions" ebi:getConvertedDateWithTZ .
    Can anybody point me which jar contains the 'oracle.apps.ebi.core.xpath.EBIXPathFunctions' class? Is this jar available with AIA 11g?
    Rgds.

    I understand your reply and we are already doing that.
    the osb installation is common across the domains .but i need these custom xpath function reflected only for my domain.
    so my query is "whether we can set/overwrite any -D property at server startup or any server/domain level settings rather than updating the installation path?"
    I am just trying to understand whether we can avoid conflicts with multiple domains sharing the same installation.

  • Bpel Server Does Not Catch Exceptions Thrown By Custom Xpath Functions

    Hi.
    I am using some custom xpath functions in a bpel process and whenever they fail I get an XPathExecutionError with summary:
    XPath expression failed to execute.
    Error while processing xpath expression, the expression is "<my function>", the reason is FOTY0001: type error.
    Please verify the xpath query.
    I am forcing my function to fail by giving a wrong input, which should result in an XPathFunctionException("Input does not respect format").
    There is a note on Metalink with ID 458434.1 on this subject which says that patch 5926809 should fix my problem.
    Patch 5926809 fixes Bug 5926809 - ORA:PARSEESCAPEDXML XPATH EXPRESSION FAILED TO EXECUTE FOTY0001: TYPE ERROR.
    I am using it, but it does not work :(
    I am using version 10.1.3.3.0 of App Server with various patch sets, including fix for bug 5926809.
    Has anyone suggestions on how to overcome this problem?
    Thanks

    Hello,
    I am trying to add a custom xpath function to the BPEL server, and I see that you made it work. I am using Oracle SOA Suite 10.1.3.3 and jDeveloper 10.1.3.4. I am using this function inside an xsl mapping file, although I am able to compile and deploy the Bpel Process to the server, it stops mapping where I placed the function and I have not seen any meaningful message from the domain/log/ files.
    Can you tell me how you did it?
    I think you will tell me faster than Oracle support, I already placed an SR but they just give me superficial advice.
    I appretiate your time and advice,
    Guillermo

  • XPath function failed in XSLT (OSB 10.3.1)

    Platform : OSB 10.3.1 in Windows XP
    Error : Test following XSLT scripts in OSB Console by getting error
    Error executing the XSLT transformation: java.lang.NoSuchMethodException: For extension function, could not find method weblogic.apache.xpath.axes.WalkingIteratorSorted.upper-case([ExpressionContext,] ).
    XSLT :
    <xsl:stylesheet version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:fn="http://www.w3.org/2004/07/xpath-functions"
         xmlns:imp1="http://www.example.org/FaultMessage">
    <xsl:template match="/">
              <imp1:FaultMessage>
                   <imp1:code>
                        <xsl:text disable-output-escaping="no">Hard-Coding-Error-Code</xsl:text>
                   </imp1:code>
                   <imp1:summary>
                        <xsl:value-of select="/imp1:FaultMessage/imp1:summary" />
                   </imp1:summary>
                   <imp1:detail>
                   <xsl:value-of select="fn:upper-case(/imp1:FaultMessage/imp1:detail)" />
    </imp1:detail>
         </imp1:FaultMessage>
    </xsl:template>
    </xsl:stylesheet>
    Any ideas?
    Thank you
    -Simon
    Edited by: user10981433 on Jun 11, 2009 9:05 PM

    exporting and importing your osb projects to the new environment won't migrate the webservice you were calling from within the Oracle Service Bus.
    if these were created in Eclipse too you can just regenerate an ear-file from them or use the build-scripts to deploy them to you new Weblogic Server.
    don't mix up 2 things
    the osb is only intermediar in here, so you can export/impot the resources from your osb workspace for these.
    but if your process call any external webservice, the webservice itself will also need to get redeployed to the new enviroment, and this is something which has nothing to do with your osb projects.
    it could be these webservice are also build in Eclipse, but they won't be part of the export/import of OSB.
    so check if you have some build.xml script in these webservice projects so you can regenerate the ear archive, or try importing the project in your workspace (if not already done) and rightmouseclick on it > export > ear file
    and use this ear file to deploy the webservice again in the Weblogic Console ( see : http://docs.oracle.com/cd/E13218_01/wlp/docs81/prodOps/deployment.html )

  • Xref:populateXRefRow xpath function.

    Hi All,
    I am facing an issue with xref:populateXRefRow xpath function.
    Requirement:
    To populate the value obtained from Siebel & an autogenerated common value into cross reference table.
    Steps Performed:
    1.Cross reference table (addressed_sbl_ucm) created in xreftool shell.
    2.Run a SQL script on SQLPLUS to create XREF_DATA table in SQL.
    3.In ASSIGN activity, written the below code and assigned it to a string variable.
    xref:populateXRefRow(
    'ADDRESSID_SBL_UCM',
    'SBL_ADDID',
    string(bpws:getVariableData('inputVariable','payload','/ns1:UCMContactExtrnIO/ns1:Contact_INSPersonalAddress/ns1:INSPersonalAddressId')),
    'COMMON_ADDRESSID',
    ora:generateGUID(),
    'ADD')
    4.Deployed the process on server.
    5.Instantiated the process on the BPEL console.
    While instantiating the process on the console we are getting the error shown below:
    Your test request was processed synchronously. It took 63.0milliseconds to finish and generated the following output:
    Value:     
    <Faulthttp://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>env:Server</faultcode>
    <faultstring>ORABPEL-09500 XPath expression failed to execute. Error while processing xpath expression, the expression is "xref:populateXRefRow('ADDRESSID_SBL_UCM','SBL_ADDID',
    string(bpws:getVariableData('inputVariable','payload','/ns1:UCMContactExtrnIO/ns1:Contact_INSPersonalAddress/ns1:INSPersonalAddressId')),
    'COMMON_ADDRESSID',ora:generateGUID(),
    'ADD')",
    the reason is FOTY0001: type error.
    Please verify the xpath query.
    </faultstring>
    </Fault>
    Any pointers to this will be of great help.
    Thanks & Regards,
    Shanty
    P.S. : If possible please provide me link to the documentation & tutorials on cross reference table.

    According to the docs:
    http://download.oracle.com/docs/cd/E11036_01/doc.1013/e10295/esb_xref.htm
    This function is available in Oracle ESB? Are you using that or are you using BPEL? If you are using Oracle AIA, this function is available in BPEL.
    Regards,
    Marc
    http://orasoa.blogspot.com

  • Error using custom xpath function with XSL transformations in BPM

    Hi,
    We have created a custom xpath function for use with SOA Suite and BPM. This has been built as per specified within the http://docs.oracle.com/cd/E29597_01/dev.1111/e10224/bp_appx_functs.htm#SOASE11100. We have also reviewed the Oracle Sample for mapper-107-ExtensionFunctions (sample demonstrates the use of user-defined extension functions). This has been registered with jDeveloper and SOA within the oracle.soa.ext_11.1.1 (run ant to include in oracle.soa.ext.jar)
    We ideally want to use this is BPM within an xsl. However when consuming this function is either BPEL or BPM using an xsl, the xsl fails with an error such as:
    XPath expression failed to execute. An error occurs while processing the XPath expression; the expression is ora:doXSLTransformForDoc("xsl/Transformation_1.xsl", $inputVariable.payload). The XPath expression failed to execute; the reason was: javax.xml.transform.TransformerException: oramds:/deployed-composites/default/gwCustomXpathUtil_rev1.0/xsl/Transformation_1.xsl<Line 9, Column 113>: XML-22043: (Error) Extension function error: Method not found 'getWeekDayDate'. Check the detailed root cause described in the exception message text and verify that the XPath query is correct.
    In an Assign it operates fine and returns the expected result. We have included a combination of both of the Config files (ext-mapper-xpath-functions-config.xml and ext-soa-xpath-functions-config.xml) in the META-INF folder, however neither allow the use of this function in the XSL.
    I believe there may be an issue getting the custom xpath functions within XSL files. Hence I have also raised an SR. Has anyone experiences of this?
    Our SOA / BPM suite environment is using 11.1.1.6.4 and has the following patches applied:
    13801175
    14406487 (11.1.1.6.4 SOA Bundle)
    13896993
    13088538
    Regards Dave
    Edited by: DavidGaskell on Mar 14, 2013 10:08 PM

    Hi All,
    I am also facing the same issue...Experts can you please help us.
    hi DavidGaskell, did you find any resolution, if so can you share it with me.....
    Thanks,
    RR

  • Custom xpath function

    i am creating custom xpath function in jdeveloper(10g).i hav followed every step given in http://prsync.com/oracle/custom-xpath-function-in-bpel--7718.even after configuring jdeveloper,the custom function is nt there in the list of functions.also if anyone can explain the functionality of the mapping(what each element is doing) given in PreBuiltExtensionFunctions.xml file.thanx.
    .

    When I remove entry from $ORACLE_HOME/bpel/system/config/xpath-functions.xml . (
    <function id="getTimeDifference" arity="2">
    <classname>ajr.TimeDifference</classname>
    <comment>
    <![CDATA[The signature of this function is <i>ajr:getTimeDifference(time1, time2)</i>.
          The arguments to the function:
          <ol type="1">
              <li>time1 - String or element containing the datetime of the start of the interval</li>
              <li>time2 - String or element containing the datetime of the end of the interval</li>
          </ol>
          Returns: an XML duration formatted string]]>
    </comment>
    <property id="namespace-uri">
    <value>http://ajr/utilities/xpath</value>
    <comment>Namespace URI for this function</comment>
    </property>
    <property id="namespace-prefix">
    <value>ajr</value>
    <comment>Namespace prefix for this function</comment>
    </property>
    </function>)
    Everything works fine!
    Deploying to http://localhost:8888 domain: default. Please wait....
    [10:37:58 AM] Please check Ant log to determine whether the project deployed successfully.

  • DoTranslateToNative xpath function

    Hi
    What is use of doTranslateToNative xpath function?
    Explain with ex.
    Thanks

    Hi
    I followed the document and used it to convert input xml payload to CSV.
    ora:doTranslateToNative($inputVariable.ip,'C:\JDeveloper\mywork\FlatFileTOFTP\FileTOFTP\xsd\sampleFlatFile_2.xsd','Root_Element','STRING')
    Input is taken using web service.
    But it gives error:The XPath expression failed to execute; the reason was: Error in getting XML input stream:

  • Is it possible to throw a BPELFault from a custom xpath function?

    I'm probably revealing my lack of java chops here, but I'd like to know if there's a way to throw a BPELFault from the "call" method within a custom xpath function.
    The interface for IXPathFunction seems to dictate that "call" throws only an XPathFunctionException and the bpel server doesn't handle this exception properly. It records the exception in the logs but then the process just dies.
    Right now I have this (simplified code):
    public Object call(IXPathContext context,
    List args) throws XPathFunctionException
    if (args.size() == 1)
    // do some stuff and return a value
    throw new XPathFunctionException( "hexToInt() requires one string argument." );
    What I want to have is something like this:
    public Object call(IXPathContext context,
    List args) throws BPELFault
    if (args.size() == 1)
    // do some stuff and return a value
    BPELFault fault = new BPELFault(
    new javax.xml.namespace.QName("http://schemas.xmlsoap.org/ws/2003/03/business-process/",
    "selectionFailure"));
    fault.setPart("code", "intToHex");
    fault.setPart("summary", "hexToInt() requires one string argument.");
    throw fault;
    If I do this, the compiler rejects it saying that "call" must throw XPathFunctionException. Is there a way to extend the IXPathFunction interface to allow it to throw a useful fault?
    Thanks!
    Sean

    Yeah, I'm using that patch (otherwise the process just crashes and you don't have a chance to catch the fault, even in a catchAll). Within the catchAll you can get the details from the error with something like this:
    <copy>
    <from expression="concat(ora:getFaultName(),'')"/>
    <to variable="processFault" part="payload" query="/ns4:summary"/>
    </copy>
    <copy>
    <from expression="concat(ora:getFaultAsString(),'')"/>
    <to variable="processFault" part="payload" query="/ns4:detail"/>
    </copy>

  • How can I call a stateful webservice from a user-defined XPath function?

    I'm calling a stateful webservice from a BPEL process using a PartnerLink which implements Custom Header Handler classes to handle the session state, storing the cookie as a property of the PartnerLink.
    I'd also like to call this same stateful webservice, in the same session, from a user-defined XPath function enabling me to call this from an XSL Transformation.
    Is this in any way possible? Can I access the cookie and attach it to the webservice call made by the user-defined XPath function?

    Actually, as long as the servlet returns valid javascript, you can indeed "call it" from the client. It will initiate a request and return the result to the browser.
    This example uses Perl, but it could be easily modified to go to a servlet instead.
    Note that it is only supported in DOM browsers (IE6+/NN6+/etc)
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
    <html>
    <head>
    <title> Test server-side JS </title>
    </head>
    <body>
    <script type="text/javascript">
    function checkIt(variable, value)
    var newScript = "cgi-bin/validateJS.cgi?"+variable+"="+value;
    var body = document.getElementsByTagName('body').item(0)
    var scriptTag = document.getElementById('loadScript');
    if(scriptTag) body.removeChild(scriptTag);
    script = document.createElement('script');
    script.src = newScript;
         script.type = 'text/javascript';
         script.id = 'loadScript';
         body.appendChild(script)
    </script>
    <p>Test.</p>
    <form id="f1" action="">
    <input type="text" name="t1" id="t1" onChange="checkIt(this.name, this.value)">
    </body>
    </html>
    validateJS.cgi
    #!/opt/x11r6/bin/perl
    use CGI qw(:all);
    my @valArray = split(/=/,$ENV{QUERY_STRING});
    print "Content-type: text/javascript\n\n";
    # myPass is the password
    $myPass = "foobar";
    if ("$valArray[1]" eq "$myPass")
    print "alert(\"Success!!\")";
    else
    print "alert(\"Failure!!\")";

  • Error in import/export of functions - for the apex team

    After exporting functions, the import gives an error.
    Reason :
    the export generates a script with
    function \
    function
    importing this script gives an error because only the first function is imported. or the functions seems to be togheter one function
    the export should generate
    function
    function
    Leo

    Leo - I logged into your workspace and exported the functions. The generated script looks perfectly good. I then uploaded that file into my own workspace and ran the script. The functions were all created as separate functions.
    There must be something happening at your end causing newline characters in the file to be lost or something. Or maybe I didn't follow exactly the steps you did.
    BTW, when you mentioned the "\" character in your original post, I assumed you meant the "/" character.
    Scott

  • Why don't standard XPath functions work in XSLT?

    I'm having a lot of trouble trying to do some simple string processing in XSLT. What I would like to do is make selection using the standard xpath functions defined by the w3c. I'm using this as my cheat sheet:
    http://w3schools.com/xpath/xpath_functions.asp
    I've tried the default XSLT parser that comes with Java, the latest distro of Xalan and the latest distro of Saxon. Nothing seems to recognize the fn namespace:
    xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
    In particular, I'm trying to use the tokenize(string, regex) function. Only Xalan seems to support this at all, only recognizes {http://xml.apache.org/xalan}tokenize, and it is treating the regex as a literal.
    This is very frustrating. Is it possible to get the standard Xpath functions to work for XSLT?

    How did you get it to work with Saxon? I have saxon9he.jar on my classpath. When I try to transform this:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:src="http://xml.kitfox.com/schema/game/tileWorld/textTable"
        xmlns:xalan="http://xml.apache.org/xalan"
        xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
        version="1.0">
        <xsl:output method="text"/>
    <xsl:template match="/">
        <xsl:for-each select="fn:tokenize('a b c', '\s+')">
            "<xsl:value-of select="."/>"
        </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>I get the error
    Error on line 100
      Cannot find a matching 2-argument function named
      {http://www.w3.org/2005/02/xpath-functions}tokenize()Is there some other jar you need to include to get http://www.w3.org/2005/02/xpath-functions to resolve?

Maybe you are looking for