Include variable into xpath expression of transformation activity

Are we able to include variable from the BPEL process into the xpath expression of the transformation activity?
I tried it but I received error saying it does not recognize the function bpws:getVariableData('loopCounter') when I included it into the xpath expression inside the transformation.
Thanks.
Kenny

Maybe I am giving a bad example. Instead of bpws:getVariableData('loopCounter'), I need something like bpws:getVariableData('accountName') which is being used in the filter like /root/accounts/account[name=bpws:getVariableData('accountName')]
The assign will not work in this xpath expression because it return multiple nodes in source.

Similar Messages

  • Including variable into dynamic sql

    Hi,
    Ive problems including v_end_month variable.
    which is the correct way to include v_end_month in the next dynamic sql expression?
    v_end_month DATE;
    v_max_day DATE;
    EXECUTE IMMEDIATE 'SELECT max(date) FROM table1 WHERE trunc(date,''mm'') = '''||v_end_month||'' INTO v_max_day;thanks in advanced..

    what is the way to know if I need the statement to be dynamic in the first place?Are you building the SQL string with, for example, a variable table name?
    More generally, is there any part of the statement that's not known at runtime?
    If the answer's no, then you don't need dynamic SQL, just use :
    SELECT max(dt)
    INTO v_max_day
    FROM table1
    WHERE trunc(dt, 'MM') = v_end_month
    ;

  • Using the XPATH expression function in Transformation activity

    Hi,
    I have to map the variable value(other than the source variable) to one of the node in the target variable in the transformation activity. For that I am using the XPATH expression function bpws:getVariableData ('variableName') and map it to corrsponding target node. But this mapping is not at all happening. The same prolem occurs while using function ora:getInstanceID() in transformation function. Then I could find a metalink note id: 387381.1,saying it as the bug in 10.1.2.2 BPEL PM, which they are covering in the next release. But our BPEL PM version is 10.1.3.3. But still the same type of problem occurs.
    Please let me know, is there are any solution for using the ora:getInstanceID() , bpws:getVariableData in Transformation activity.

    Hi,
    I dont understand why would you need to use the "bpws:getVariableData" function.
    When you are mapping a source-node to a target-node, it usually assigns the value in the source-node to the target-node, which is as good as using the "bpws:getVariableData" function.
    So, technically speaking you need to use this function explicitly to achieve that ...
    Also, if you want the instance-id, you can use the "ora:getInstanceId()" directly in the BPEL code than using it in the transformation.
    Regards,
    Madhu.

  • Using the variable placeholder ? in an XPath expression

    I'm trying to using the variable operator (?) in an Oracle prepared statement used in a query where clause. Here is the query:
    select xt.APPLICATION_NAME, xt.VERSION, xt.EVENT_TYPE, xt.SENDING_SITE, xt.RECEIVING_SITE, xt.EVENT_ID
          from AUDITED_EVENT_XML_MIN e,
             XMLTable(XMLNAMESPACES('http://gov/va/med/datasharing/audit/endpoint/audit' AS "xae"),
                    '/xae:auditable-event'
                    PASSING e.xml_event_content
                    COLUMNS
                    APPLICATION_NAME VARCHAR2(255) PATH 'xae:application-name',
                    VERSION          VARCHAR2(255) PATH 'xae:version',
                    EVENT_TYPE       VARCHAR2(255) PATH 'xae:event-type',
                    SENDING_SITE     VARCHAR2(255) PATH 'xae:xml-event-content/*/MSH/MSH.4/HD.2',
                    RECEIVING_SITE   VARCHAR2(255) PATH 'xae:xml-event-content/*/MSH/MSH.6/HD.2',
                    EVENT_ID         VARCHAR2(255) PATH 'xae:xml-event-content/*/MSH/MSH.10') xt
                where existsNode(E.XML_EVENT_CONTENT, '/xae:auditable-event[xae:event-type=?]','xmlns:xae="http://gov/va/med/datasharing/audit/endpoint/audit"') = 1This code works when the ? is replaced with "aValue". I need to use the ? so that my Java client can pass a variable value into the query.
    Is this a supportable feature or am I doing something wrong?
    I didn't see any examples in the Oracle XML DB Developers Guide where there was a ? in an XPath expression.
    I also tried "?" with the same issue...
    Here is the version info:
    SQL*Plus: Release 11.1.0.6.0 - Production on Mon Sep 10 18:41:55 2012
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing optionsAny assistance would be greatly appreciated.
    Thanks in advance...
    Edited by: flyeagle5683 on Sep 10, 2012 5:49 PM

    select xt.APPLICATION_NAME, xt.VERSION, xt.EVENT_TYPE, xt.SENDING_SITE, xt.RECEIVING_SITE, xt.EVENT_ID
          from AUDITED_EVENT_XML_MIN e,
             XMLTable(XMLNAMESPACES('http://gov/va/med/datasharing/audit/endpoint/audit' AS "xae"),
                    '/xae:auditable-event'
                    PASSING e.xml_event_content
                    COLUMNS
                    APPLICATION_NAME VARCHAR2(255) PATH 'xae:application-name',
                    VERSION          VARCHAR2(255) PATH 'xae:version',
                    EVENT_TYPE       VARCHAR2(255) PATH 'xae:event-type',
                    SENDING_SITE     VARCHAR2(255) PATH 'xae:xml-event-content/*/MSH/MSH.4/HD.2',
                    RECEIVING_SITE   VARCHAR2(255) PATH 'xae:xml-event-content/*/MSH/MSH.6/HD.2',
                    EVENT_ID         VARCHAR2(255) PATH 'xae:xml-event-content/*/MSH/MSH.10') xt
                where XMLEXISTS(
                           'declarre namespace xae ="http://gov/va/med/datasharing/audit/endpoint/audit"; (: :)
                            $XML/xae:auditable-event[xae:event-type=$VALUE]'
                            passing e.xml_event_content as "XML",
                                      :1 as "VALUE"
                ) or you can do
    select xt.APPLICATION_NAME, xt.VERSION, xt.EVENT_TYPE, xt.SENDING_SITE, xt.RECEIVING_SITE, xt.EVENT_ID
          from AUDITED_EVENT_XML_MIN e,
             XMLTable(XMLNAMESPACES('http://gov/va/med/datasharing/audit/endpoint/audit' AS "xae"),
                    '/xae:auditable-event'
                    PASSING e.xml_event_content
                    COLUMNS
                    APPLICATION_NAME VARCHAR2(255) PATH 'xae:application-name',
                    VERSION          VARCHAR2(255) PATH 'xae:version',
                    EVENT_TYPE       VARCHAR2(255) PATH 'xae:event-type',
                    SENDING_SITE     VARCHAR2(255) PATH 'xae:xml-event-content/*/MSH/MSH.4/HD.2',
                    RECEIVING_SITE   VARCHAR2(255) PATH 'xae:xml-event-content/*/MSH/MSH.6/HD.2',
                    EVENT_ID         VARCHAR2(255) PATH 'xae:xml-event-content/*/MSH/MSH.10') xt
          WHERE EVENT_TYPE = :1Edited by: mdrake on Sep 10, 2012 7:23 PM
    Edited by: mdrake on Sep 10, 2012 7:24 PM

  • Using the variable ? operator in an XPath Expression

    I'm trying to using the variable operator (?) in an Oracle prepared statement used in a query where clause. Here is the query:
    select xt.APPLICATION_NAME, xt.VERSION, xt.EVENT_TYPE, xt.SENDING_SITE, xt.RECEIVING_SITE, xt.EVENT_ID
          from AUDITED_EVENT_XML_MIN e,
             XMLTable(XMLNAMESPACES('http://gov/va/med/datasharing/audit/endpoint/audit' AS "xae"),
                    '/xae:auditable-event'
                    PASSING e.xml_event_content
                    COLUMNS
                    APPLICATION_NAME VARCHAR2(255) PATH 'xae:application-name',
                    VERSION          VARCHAR2(255) PATH 'xae:version',
                    EVENT_TYPE       VARCHAR2(255) PATH 'xae:event-type',
                    SENDING_SITE     VARCHAR2(255) PATH 'xae:xml-event-content/*/MSH/MSH.4/HD.2',
                    RECEIVING_SITE   VARCHAR2(255) PATH 'xae:xml-event-content/*/MSH/MSH.6/HD.2',
                    EVENT_ID         VARCHAR2(255) PATH 'xae:xml-event-content/*/MSH/MSH.10') xt
                where existsNode(E.XML_EVENT_CONTENT, '/xae:auditable-event[xae:event-type=?]','xmlns:xae="http://gov/va/med/datasharing/audit/endpoint/audit"') = 1This code works when the ? is replaced with "aValue". I need to use the ? so that my Java client can pass a variable value into the query.
    Is this a supportable feature or am I doing something wrong?
    I didn't see any examples in the Oracle XML DB Developers Guide where there was a ? in an XPath expression.
    I also tried "?" with the same issue...
    Here is the version info:
    SQL*Plus: Release 11.1.0.6.0 - Production on Mon Sep 10 18:41:55 2012
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing optionsAny assistance would be greatly appreciated.
    Thanks in advance...

    I incorporated this suggestion and it worked very well. Thanks!
    Now I have converted my solution to use a structured index. As such, I want to write the where clauses in terms of column names rather than XPath expressions.
    I hoped it was as simple as changing the code that generates the XPath expression to generate a SQL expression. After making that change, I'm now getting this error:
    Caused by: java.sql.SQLSyntaxErrorException: ORA-00920: invalid relational operator
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:91)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
         at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:686)
         at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:617)
         at oracle.jdbc.driver.T2CPreparedStatement.executeForDescribe(T2CPreparedStatement.java:559)
         at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1077)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3425)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1490)
         at gov.va.med.datasharing.audit.dao.jdbc.runner.MapQueryRunner.run(MapQueryRunner.java:47)
         at gov.va.med.datasharing.audit.web.dao.jdbc.AuditableEventsQueryDAOImpl.getAuditableEventsByDate(AuditableEventsQueryDAOImpl.java:150)It seemed to me that if it worked for the XPath expression that it should also work for the SQL expression.
    The static SQL is:
    SELECT PK_ID, EVENT_TYPE, OUTCOME, SENDING_SITE, RECEIVING_SITE, CREATED_TIME, EVENT_ID, PATIENT_ID FROM
      (SELECT rownum as rn, PK_ID, EVENT_TYPE, OUTCOME, SENDING_SITE, RECEIVING_SITE, CREATED_TIME, EVENT_ID, PATIENT_ID FROM
         (SELECT aet.AUDITABLE_EVENT_XML_PK_ID AS PK_ID, xt.EVENT_TYPE, xt.OUTCOME, xt.SENDING_SITE, xt.RECEIVING_SITE, aet.CREATED_TIME as CREATED_TIME, xt.EVENT_ID, xt.PATIENT_ID
            FROM AUDITABLE_EVENT_XML aet,
              XMLTable(XMLNAMESPACES('http://gov/va/med/datasharing/audit/endpoint/audit' AS "xae"),
                '/xae:auditable-event'
                PASSING aet.xml_event_content
                COLUMNS
                EVENT_TYPE       VARCHAR2(255) PATH 'xae:event-type',
                SENDING_SITE     VARCHAR2(255) PATH 'xae:sending-site',
                RECEIVING_SITE   VARCHAR2(255) PATH 'xae:receiving-site',
                EVENT_ID         VARCHAR2(255) PATH 'xae:event-id',
                PATIENT_ID           VARCHAR2(255) PATH 'xae:patient-id',
                OUTCOME                VARCHAR2(255) PATH 'xae:outcome') xt
            WHERE aet.CREATED_TIME BETWEEN ? AND ?
                 AND ?
          ) ORDER BY CREATED_TIME desc
        ) WHERE rn > ? and rn <= ?So I'm thinking that Oracle must perform strong checking in SQL, not allowing the '=' operator to be substituted. If I run this query in Toad, replacing the ? with the SQL, it runs fine...
    Can someone tell me whether or not this is a legal substitution?
    The SQL that runs in Toad is:
    SELECT PK_ID, EVENT_TYPE, OUTCOME, SENDING_SITE, RECEIVING_SITE, CREATED_TIME, EVENT_ID, PATIENT_ID FROM
      (SELECT rownum as rn, PK_ID, EVENT_TYPE, OUTCOME, SENDING_SITE, RECEIVING_SITE, CREATED_TIME, EVENT_ID, PATIENT_ID FROM
         (SELECT aet.AUDITABLE_EVENT_XML_PK_ID AS PK_ID, xt.EVENT_TYPE, xt.OUTCOME, xt.SENDING_SITE, xt.RECEIVING_SITE, aet.CREATED_TIME as CREATED_TIME, xt.EVENT_ID, xt.PATIENT_ID
            FROM AUDITABLE_EVENT_XML aet,
              XMLTable(XMLNAMESPACES('http://gov/va/med/datasharing/audit/endpoint/audit' AS "xae"),
                '/xae:auditable-event'
                PASSING aet.xml_event_content
                COLUMNS
                EVENT_TYPE       VARCHAR2(255) PATH 'xae:event-type',
                SENDING_SITE     VARCHAR2(255) PATH 'xae:sending-site',
                RECEIVING_SITE   VARCHAR2(255) PATH 'xae:receiving-site',
                EVENT_ID         VARCHAR2(255) PATH 'xae:event-id',
                PATIENT_ID         VARCHAR2(255) PATH 'xae:patient-id',
                OUTCOME             VARCHAR2(255) PATH 'xae:outcome') xt
            WHERE aet.CREATED_TIME BETWEEN TO_DATE ('9/19/2011 12:00:01 AM','MM/DD/YYYY HH:MI:SS PM')
                                         AND TO_DATE ('12/20/2012 12:00:00 AM','MM/DD/YYYY HH:MI:SS PM')
                AND (OUTCOME=0 or OUTCOME=1)
          ) ORDER BY CREATED_TIME desc
        ) WHERE rn > 0 and rn <= 5;Any assistance will be appreciated,
    Thanks in advance.

  • Access Multiple Source Variables in Transform  Activity

    We have a transform activity that fills a complex type from another complex type that is received from a webservice invoke activity.
    One of the nodes in that destination complex type does not exist in the source complex type. The actual value of that destination node exists as a value in the current bpel process wsdl file, but I can't figure out how to set that value in the transform activity.
    I've been trying to use the xpath document method to parse an external xml file to grab the node that contains the value. Here is my xsl transformation file. Notice the line that contains the document method call. Does this not work in the BPEL transformations? The error I always receive is.
    Invalid XPath expression
    Is there another way to access a second source file within a transformation xslt file?
    <?xml version="1.0" encoding="UTF-8" ?>
    <?oracle-xsl-mapper
      <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
      <mapSources>
        <source type="WSDL">
          <schema location="StorePrice.wsdl"/>
          <rootElement name="GetPricingResponse" namespace="http://services.darr.fastenal.com/GetPrice/StorePriceOutput.xsd"/>
        </source>
      </mapSources>
      <mapTargets>
        <target type="WSDL">
          <schema location="TestMobilieQuote.wsdl"/>
          <rootElement name="TestMobilieQuoteProcessResponse" namespace="http://xmlns.oracle.com/TestMobilieQuote"/>
        </target>
      </mapTargets>
      <!-- GENERATED BY ORACLE XSL MAPPER 10.1.2.0.0(build 050923.1500) AT [THU FEB 02 14:10:26 CST 2006]. -->
    ?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:tns="http://services.darr.fastenal.com/GetPrice/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:ns0="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:s1="http://services.darr.fastenal.com/GetPrice/StorePriceOutput.xsd"
    xmlns:s0="http://services.darr.fastenal.com/GetPrice/StorePriceInput.xsd"
    xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:client="http://xmlns.oracle.com/TestMobilieQuote"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    exclude-result-prefixes=
    "xsl tns mime wsdl soap12 http ns0 soap soapenc s1 s0 tm plnk client bpws ldap xp20 ora orcl">
      <xsl:template match="/">
        <client:TestMobilieQuoteProcessResponse>
          <client:result>
            <client:AccountNumber>
              <xsl:value-of select="document('TestMobilieQuote',/)/TestMobilieQuoteProcessRequest/CustomerNumber"/>
            </client:AccountNumber>
            <xsl:for-each select="/s1:GetPricingResponse/s1:GetPricingResult/s1:PricingInformation">
              <client:PartList>
                <client:PartNumber>
                  <xsl:value-of select="s1:PartNumber"/>
                </client:PartNumber>
                <client:SellPrice>
                  <xsl:value-of select="s1:SellPrice"/>
                </client:SellPrice>
                <client:IsValid>
                  <xsl:value-of select="not(xp20:matches(s1:SellPrice,"^0$"))"/>
                </client:IsValid>
              </client:PartList>
            </xsl:for-each>
          </client:result>
        </client:TestMobilieQuoteProcessResponse>
      </xsl:template>
    </xsl:stylesheet>

    I noticed in my post that I had a copy error for the line in the xsl transformation that I have a question about. Here is the proper line
    <xsl:value-of select="document('TestMobilieQuote.wsdl',/)/TestMobilieQuoteProcessRequest/CustomerNumber"/>

  • Reuse a variable in OSB XPATH expression editor

    I have a problem with replacing activity in Oracle Service Bus.
    I created a variable with the follow content
    <response>
    <operationResponse name="OPERATION1" result=""/>
    <operationResponse name="OPERATION2" result=""/>
    <operationResponse name="OPERATION3" result=""/>
    <operationResponse name="OPERATION4" result=""/>
    </response>
    For each operationResponse I call a businessProxy that invokes an external webservice. If this call is made with success, I replace `result=""` with `result="1"`.
    I have created a replace activity like this:
    <con3:replace contents-only="true" varName="responseElement"> <!-- var responseElement = <response>.*</response> -->
    <con2:id>_ActionId-3886365367816551561--27a55993.13f0a38ab8f.-7c95</con2:id>
    <con3:location>
    <con2:xpathText>./operationResponse/@result</con2:xpathText>
    </con3:location>
    <con3:expr>
    <con2:xqueryText>"1"</con2:xqueryText>
    </con3:expr>
    </con3:replace>
    After running this program, all the attributes "results" are replaced by "1", if the businessService is called successfully.
    The problems is that I need to replace the attribute "result" only for the element operationResponse that have the attribute "name" equal to the operationResponse that invokes the businessService.
    I have created a variable called operationName that contains the current response/operationResponse. I used ./operationResponse[@name=$operationName]/@result.
    The OSB XPATH expression editor is throwing the follow error:
    Variable "$operationName" used but not declared for expression
    Can anyone help with this?

    Hi, XPath and XQuery are conceptually different. XPath expression can not have variables while an XQuery expression can have a variable inside the XPath when the expression is bound to a variable.
    To work around the issue, instead of using the condition in XPath expression inside replace you should write the XQuery expression of REplace in such a way that it results in what you need.
    For ex. if I take the example above:
    say the content of $body is as below:
    <soap-env:Body>
    <aaa>
    <bbb>
    <ccc>A</ccc>
    <key>1</key>
    </bbb>
    <bbb>
    <ccc>B</ccc>
    <key>2</key>
    </bbb>
    </aaa>
    </soap-env:Body>
    and you wanted to replace values of ccc to X for any bbb elements which have key=1(and you have saved a variable called keyCheck with value '1' earlier in the flow), then you could do the following:
    Replace contents of  . in body with
    <aaa>
    for $bbb in $body/aaa/bbb
    if ($bbb/key/text() = $keyCheck)
    then
    <bbb>
    <ccc>X</ccc>
    <key>{$bbb/key/text()}</key>
    </bbb>
    else
    $bbb
    </aaa>

  • BPEL Variables in to Transform activity (XSL)

    Hi,
    I need to access a BPEL variable from within a Transform activity (XSL).
    I need an output like this:
    <XML>
    <val1>1</val1>
    <val2>2</val2>
    <val3>3</val3>
    <val4>4</val4>
    </XML>
    Val1 and val2 is reachable from the xsd in the Transform activity (source variable). A DB-adapter is used to provide these data.
    Val3 and val4 is present in the BPEL, within BPEL variables.
    I have created a Transform activity with source = result of DP-adapter (val1 + val2), but will then need to get val3 + val4 (BPEL vars) from inside the Transform activity as well.
    How can I do this ?
    I have tried passing the variables in as parameters, but can't get this to work. I either only get the parameters, or only get the values from the DB-adapter, as it seems I only can have 1 source.
    Similar thread, but with no answer:
    Global Variables in to XSL

    Thank you for answering.
    The link you're referring to is the thing that I mentioned that I couldn't get to work.
    Works fine when just passing parameters, but when I already have a source (like my DB-adapter output), and want the parameters as well, it's getting tricky. Seems there can only be 1 source: Parameters or DB-adapter output.
    What I need is values from a source (DB-adapter output) + be able to send BPEL variables to the same Transform activity (XSL).
    Have you tried this ? Is it at all possible ?

  • Using a xpath expression stored in a variable

    Hi All,
    I have an xpath expression which is stored in the database which I need to use against the request XML. I am able to retrieve this Xpath expression from the database, but not able to use it against the request XML.
    Xpath expression got from the database is: /request/param//name.
    I have tried $body/$XpathVariable, this does not work. I can not hard code this expression during my design time, so the details of the expression has to be fetched at run time.
    Any ideas to get the value would helpful.
    Thanks

    try to assign this value to a temp variable and then in the XqueryExpression try to retrieve it starting with "//"

  • Is there a way to use a OSB variable into an XQuery Transformation?

    Hi,
    I´m trying to access to a variable that I declared in the OSB with an Assign, but I´m gettin and Error that the variabe is used but not declared, I also tried to use a OSB variable like $messageID and still have the same Error, has somebody used a previous declared variable into an XQuery Transformation?
    Thanx in Advanced!
    Kind Regards!

    Hi,
    In order to use a varible into a XQuery transformation you need to declare it as an input.
    When you are defining the source types (in the 'new XQuery Transformation' wizard) you should add the variable that you want to use.
    So if you assigned a variable called messageId and you want to use it in your message transformation using a XQuery resource you should add the following in the source types screen:
    - On the Available source targets click 'XML' and then select the xml message that you want to transform and click 'Add'
    - On the Available source targets click 'Simple' and then select 'string' and click 'Add'
    This should declare the xml that you want to transform and the variable that you want to use during the transformation.
    Hope it helps.
    Regards,
    Rodrigo

  • In XSLT, make XPath expression to retrieve attribute nodes

    I have a problem fetching attribute nodes in an Xpath expression.
    SOAP Request:
    <Create ID=5/>
    <Name>Per</Name>
    I want to fetch the value of ID and put it into another variable with an XPath expression in a XSLT transformation.
    If you look at http://www.w3schools.com/xpath/xpath_syntax.asp
    You should be able to do this with "//Create[@ID]" according to the examples, but this is not working at all in JDev.
    Any thoughts?
    /Per

    Thanks, that worked!
    Just thought about it. How do you do the other way around.
    <Create>
    <ID>7</ID>
    to
    <Create ID=7>
    .

  • Concat Operation failing.[Error ORABPEL-10039]: invalid xpath expression

    Hi ,
    I am trying to concat two values which are as mentioned below
    concat(bpws:getVariableData('paramsVar','/ns7:parameters/ns7:item[ns7:name='ContractNumber']/ns7:value'),bpws:getVariableData('AccumilateEmail','/ns1:AccumilatePLAContracts/ns1:AccumilatePLAType[$PLACount]/ns1:ContractInfoType[$ContractInfoTypeCount]/ns1:ContractNumber'))
    to /ns7:parameters/ns7:item[ns7:name='ContractNumber']/ns7:value (which is same as first parameter of concat operation)
    the error is [Error ORABPEL-10039]: invalid xpath expression
    [Description]: in line 681 of "C:\Users\varsha.tm\Desktop\InitiateMaintainContractRolesEmail\bpel\InitiateMaintainContractRolesEmail.bpel", xpath expression "concat(bpws:getVariableData('paramsVar','/ns7:parameters/ns7:item[ns7:name='ContractNumber']/ns7:value'),bpws:getVariableData('Ac
    cumilateEmail','/ns1:AccumilatePLAContracts/ns1:AccumilatePLAType[$PLACount]/ns1:ContractInfoType[$ContractInfoTypeCount]/ns1:ContractNumber'))" specified in <from> is not valid, because XPath query syntax error.
    Syntax error while parsing xpath expression "concat(bpws:getVariableData('paramsVar','/ns7:parameters/ns7:item[ns7:name='ContractNumber']/ns7:value'),bpws:getVariableData('AccumilateEmail','/ns1:AccumilatePLAContracts/ns1:AccumilatePLAType[$PLACount]/ns1:ContractInfoType[$ContractInfoTyp
    eCount]/ns1:ContractNumber'))", at position "76" the exception is Expected: ).
    Please verify the xpath query "concat(bpws:getVariableData('paramsVar','/ns7:parameters/ns7:item[ns7:name='ContractNumber']/ns7:value'),bpws:getVariableData('AccumilateEmail','/ns1:AccumilatePLAContracts/ns1:AccumilatePLAType[$PLACount]/ns1:ContractInfoType[$ContractInfoTypeCount]/ns1:Co.....
    I also tried converting both the variables of concat to string and then giving to concat operation. please let me know what could be the possible way to do this

    Hi,
    try storing the values of the below into a separate variables var1,var2 and then use concat(bpws:getVariableData('var1'),bpws:getVariableData(var2))....also try using the predicate[] without
    bpws:getVariableData for the below variables...for this in the assign activity create copy operation window....u see the xpath text box and u can mention the predicate values there...some
    thing like */ns7:parameters/ns7:item[ns7:name='ContractNumber']/ns7:value* , *ns1:AccumilatePLAContracts/ns1:AccumilatePLAType[$PLACount]/ns1:ContractInfoType
    [$ContractInfoTypeCount]/ns1:ContractNumber* instead of the below values
    bpws:getVariableData('paramsVar','/ns7:parameters/ns7:item[ns7:name='ContractNumber']/ns7:value')
    bpws:getVariableData('AccumilateEmail','/ns1:AccumilatePLAContracts/ns1:AccumilatePLAType[$PLACount]/ns1:ContractInfoType[$ContractInfoTypeCount]/ns1:ContractNumber')

  • Transform activity - 10.1.2.2

    I have a syncronous read file activity that reads a csv, works great. Then I try to transform to the next partner link. Here is what I get in the console. They payload looks fine to me, it was created by the native conversion wizard in the tool.
    receiveInput
    [2007/08/13 16:56:32] Received "inputVariable" call from partner "client" More...
    <inputVariable>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
    <SyncronousReadFileProcessRequest xmlns="http://xmlns.oracle.com/SyncronousReadFile">
    <input>io</input>
    </SyncronousReadFileProcessRequest>
    </part>
    </inputVariable>
    Invoke_PL_SyncrounousReadFile
    [2007/08/13 16:56:32] Invoked 2-way operation "Write" on partner "PL_SyncronousReadFile". less
    <messages>
    <Invoke_PL_SyncrounousReadFile_Write_InputVariable>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Empty">
    <empty xmlns="http://xmlns.oracle.com/pcbpel/adapter/file/ReadFile/" />
    </part>
    </Invoke_PL_SyncrounousReadFile_Write_InputVariable>
    <Invoke_PL_SyncrounousReadFile_Write_OutputVariable>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="response-headers">null</part>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Root-Element">
    <Root-Element xmlns="http://xmlns.oracle.com/ReadFile">
    <Record>
    <SIM_Status>Activated</SIM_Status>
    <TNS_Division>Vending</TNS_Division>
    <ICCID>89310380106020419182</ICCID>
    <IMSI>310380062437960</IMSI>
    <MSISDN />
    <PIN1>1111</PIN1>
    <PUK1>41165716</PUK1>
    <PUK2>7765</PUK2>
    <PIN2>13845106</PIN2>
    <Wireless_Carrier>Cingular</Wireless_Carrier>
    <Rate_Plan>1MB</Rate_Plan>
    <Roaming>No</Roaming>
    <Internet>No</Internet>
    <M2M>No</M2M>
    <Telco_Activation_Date>03/02/2007</Telco_Activation_Date>
    <Telco_De-Activation_Date />
    <Customer_Activation_Date />
    <Customer_De-Activation_Date />
    <Ship_Date />
    <Customer_Name />
    <Customer_Contact_Name />
    <Custome_Contact_Number />
    <Customer_Contact_Email />
    <Customer_Address />
    <Sub_Customer_Name />
    <Notes />
    <Cingular_APN_Profile>02</Cingular_APN_Profile>
    <PDP1>VENDING</PDP1>
    <PDP2>MEI-RDP</PDP2>
    <PDP3>191</PDP3>
    <PDP4>MEI030220071.txt</PDP4>
    <PDP5 />
    <MO />
    <MT />
    <Cingular_Roaming>No</Cingular_Roaming>
    <Cingular_Plan_Code>01MB</Cingular_Plan_Code>
    <Plan_Description />
    <Action_Type />
    <Monthly_Fee>$8.99</Monthly_Fee>
    <O2_APN_Profile_1 />
    <O2_APN_Ref_1 />
    <O2_APN_Profile_2 />
    <O2_APN_Ref_2 />
    <O2_APN_Profile_3 />
    <O2_APN_Ref_3 />
    <O2_APN_Profile_4 />
    <O2_APN_Ref_4 />
    <O2_APN_Profile_5 />
    <O2_APN_Ref_5 />
    <O2_Roaming_Country />
    <Radius_Login />
    <Radius_Password />
    <Radius_APN_Name />
    <TNS_Radius_Activation_Date />
    <Telco_Radius_Activation_Date />
    <TCP_Port />
    <Number_of_Transactions />
    <Remedy_Request_ID />
    </Record>
    <Record>
    <SIM_Status>Activated</SIM_Status>
    <TNS_Division>Vending</TNS_Division>
    <ICCID>89310380106020419190</ICCID>
    <IMSI>310380062437961</IMSI>
    <MSISDN />
    <PIN1>1111</PIN1>
    <PUK1>48908411</PUK1>
    <PUK2>7965</PUK2>
    <PIN2>49374779</PIN2>
    <Wireless_Carrier>Cingular</Wireless_Carrier>
    <Rate_Plan>1MB</Rate_Plan>
    <Roaming>No</Roaming>
    <Internet>No</Internet>
    <M2M>No</M2M>
    <Telco_Activation_Date>03/02/2007</Telco_Activation_Date>
    <Telco_De-Activation_Date />
    <Customer_Activation_Date />
    <Customer_De-Activation_Date />
    <Ship_Date />
    <Customer_Name />
    <Customer_Contact_Name />
    <Custome_Contact_Number />
    <Customer_Contact_Email />
    <Customer_Address />
    <Sub_Customer_Name />
    <Notes />
    <Cingular_APN_Profile>02</Cingular_APN_Profile>
    <PDP1>VENDING</PDP1>
    <PDP2>MEI-RDP</PDP2>
    <PDP3>192</PDP3>
    <PDP4>MEI030220071.txt</PDP4>
    <PDP5 />
    <MO />
    <MT />
    <Cingular_Roaming>No</Cingular_Roaming>
    <Cingular_Plan_Code>01MB</Cingular_Plan_Code>
    <Plan_Description />
    <Action_Type />
    <Monthly_Fee>$8.99</Monthly_Fee>
    <O2_APN_Profile_1 />
    <O2_APN_Ref_1 />
    <O2_APN_Profile_2 />
    <O2_APN_Ref_2 />
    <O2_APN_Profile_3 />
    <O2_APN_Ref_3 />
    <O2_APN_Profile_4 />
    <O2_APN_Ref_4 />
    <O2_APN_Profile_5 />
    <O2_APN_Ref_5 />
    <O2_Roaming_Country />
    <Radius_Login />
    <Radius_Password />
    <Radius_APN_Name />
    <TNS_Radius_Activation_Date />
    <Telco_Radius_Activation_Date />
    <TCP_Port />
    <Number_of_Transactions />
    <Remedy_Request_ID />
    </Record>
    <Record>
    <SIM_Status>Activated</SIM_Status>
    <TNS_Division>Vending</TNS_Division>
    <ICCID>89310380106020657658</ICCID>
    <IMSI>310380076448307</IMSI>
    <MSISDN />
    <PIN1>1111</PIN1>
    <PUK1>39526324</PUK1>
    <PUK2>5003</PUK2>
    <PIN2>32190875</PIN2>
    <Wireless_Carrier>Cingular</Wireless_Carrier>
    <Rate_Plan>1MB</Rate_Plan>
    <Roaming>No</Roaming>
    <Internet>No</Internet>
    <M2M>No</M2M>
    <Telco_Activation_Date>03/02/2007</Telco_Activation_Date>
    <Telco_De-Activation_Date />
    <Customer_Activation_Date />
    <Customer_De-Activation_Date />
    <Ship_Date />
    <Customer_Name />
    <Customer_Contact_Name />
    <Custome_Contact_Number />
    <Customer_Contact_Email />
    <Customer_Address />
    <Sub_Customer_Name />
    <Notes />
    <Cingular_APN_Profile>02</Cingular_APN_Profile>
    <PDP1>VENDING</PDP1>
    <PDP2>MEI-RDP</PDP2>
    <PDP3>91</PDP3>
    <PDP4>MEI030220071.txt</PDP4>
    <PDP5 />
    <MO />
    <MT />
    <Cingular_Roaming>No</Cingular_Roaming>
    <Cingular_Plan_Code>01MB</Cingular_Plan_Code>
    <Plan_Description />
    <Action_Type />
    <Monthly_Fee>$8.99</Monthly_Fee>
    <O2_APN_Profile_1 />
    <O2_APN_Ref_1 />
    <O2_APN_Profile_2 />
    <O2_APN_Ref_2 />
    <O2_APN_Profile_3 />
    <O2_APN_Ref_3 />
    <O2_APN_Profile_4 />
    <O2_APN_Ref_4 />
    <O2_APN_Profile_5 />
    <O2_APN_Ref_5 />
    <O2_Roaming_Country />
    <Radius_Login />
    <Radius_Password />
    <Radius_APN_Name />
    <TNS_Radius_Activation_Date />
    <Telco_Radius_Activation_Date />
    <TCP_Port />
    <Number_of_Transactions />
    <Remedy_Request_ID />
    </Record>
    <Record>
    <SIM_Status>Activated</SIM_Status>
    <TNS_Division>Vending</TNS_Division>
    <ICCID>89014103201146533075</ICCID>
    <IMSI>310410114653307</IMSI>
    <MSISDN />
    <PIN1>1111</PIN1>
    <PUK1>95266730</PUK1>
    <PUK2>2222</PUK2>
    <PIN2>20970882</PIN2>
    <Wireless_Carrier>Cingular</Wireless_Carrier>
    <Rate_Plan>1MB</Rate_Plan>
    <Roaming>No</Roaming>
    <Internet>No</Internet>
    <M2M>No</M2M>
    <Telco_Activation_Date>04/02/2007</Telco_Activation_Date>
    <Telco_De-Activation_Date />
    <Customer_Activation_Date />
    <Customer_De-Activation_Date />
    <Ship_Date />
    <Customer_Name />
    <Customer_Contact_Name />
    <Custome_Contact_Number />
    <Customer_Contact_Email />
    <Customer_Address />
    <Sub_Customer_Name />
    <Notes />
    <Cingular_APN_Profile>08</Cingular_APN_Profile>
    <PDP1>VENDING</PDP1>
    <PDP2>MEI-RDP</PDP2>
    <PDP3>941</PDP3>
    <PDP4>MEI040220071.txt</PDP4>
    <PDP5 />
    <MO />
    <MT />
    <Cingular_Roaming>No</Cingular_Roaming>
    <Cingular_Plan_Code>VRG1</Cingular_Plan_Code>
    <Plan_Description />
    <Action_Type />
    <Monthly_Fee>$5.99</Monthly_Fee>
    <O2_APN_Profile_1 />
    <O2_APN_Ref_1 />
    <O2_APN_Profile_2 />
    <O2_APN_Ref_2 />
    <O2_APN_Profile_3 />
    <O2_APN_Ref_3 />
    <O2_APN_Profile_4 />
    <O2_APN_Ref_4 />
    <O2_APN_Profile_5 />
    <O2_APN_Ref_5 />
    <O2_Roaming_Country />
    <Radius_Login />
    <Radius_Password />
    <Radius_APN_Name />
    <TNS_Radius_Activation_Date />
    <Telco_Radius_Activation_Date />
    <TCP_Port />
    <Number_of_Transactions />
    <Remedy_Request_ID />
    </Record>
    <Record>
    <SIM_Status>Activated</SIM_Status>
    <TNS_Division>Vending</TNS_Division>
    <ICCID>89014103201146533083</ICCID>
    <IMSI>310410114653308</IMSI>
    <MSISDN />
    <PIN1>1111</PIN1>
    <PUK1>16266729</PUK1>
    <PUK2>2222</PUK2>
    <PIN2>8235397</PIN2>
    <Wireless_Carrier>Cingular</Wireless_Carrier>
    <Rate_Plan>1MB</Rate_Plan>
    <Roaming>No</Roaming>
    <Internet>No</Internet>
    <M2M>No</M2M>
    <Telco_Activation_Date>04/02/2007</Telco_Activation_Date>
    <Telco_De-Activation_Date />
    <Customer_Activation_Date />
    <Customer_De-Activation_Date />
    <Ship_Date />
    <Customer_Name />
    <Customer_Contact_Name />
    <Custome_Contact_Number />
    <Customer_Contact_Email />
    <Customer_Address />
    <Sub_Customer_Name />
    <Notes />
    <Cingular_APN_Profile>08</Cingular_APN_Profile>
    <PDP1>VENDING</PDP1>
    <PDP2>MEI-RDP</PDP2>
    <PDP3>942</PDP3>
    <PDP4>MEI040220071.txt</PDP4>
    <PDP5 />
    <MO />
    <MT />
    <Cingular_Roaming>No</Cingular_Roaming>
    <Cingular_Plan_Code>VRG1</Cingular_Plan_Code>
    <Plan_Description />
    <Action_Type />
    <Monthly_Fee>$5.99</Monthly_Fee>
    <O2_APN_Profile_1 />
    <O2_APN_Ref_1 />
    <O2_APN_Profile_2 />
    <O2_APN_Ref_2 />
    <O2_APN_Profile_3 />
    <O2_APN_Ref_3 />
    <O2_APN_Profile_4 />
    <O2_APN_Ref_4 />
    <O2_APN_Profile_5 />
    <O2_APN_Ref_5 />
    <O2_Roaming_Country />
    <Radius_Login />
    <Radius_Password />
    <Radius_APN_Name />
    <TNS_Radius_Activation_Date />
    <Telco_Radius_Activation_Date />
    <TCP_Port />
    <Number_of_Transactions />
    <Remedy_Request_ID />
    </Record>
    <Record>
    <SIM_Status>Activated</SIM_Status>
    <TNS_Division>Vending</TNS_Division>
    <ICCID>89014103201146533091</ICCID>
    <IMSI>310410114653309</IMSI>
    <MSISDN />
    <PIN1>1111</PIN1>
    <PUK1>78942885</PUK1>
    <PUK2>2222</PUK2>
    <PIN2>13007195</PIN2>
    <Wireless_Carrier>Cingular</Wireless_Carrier>
    <Rate_Plan>1MB</Rate_Plan>
    <Roaming>No</Roaming>
    <Internet>No</Internet>
    <M2M>No</M2M>
    <Telco_Activation_Date>04/02/2007</Telco_Activation_Date>
    <Telco_De-Activation_Date />
    <Customer_Activation_Date />
    <Customer_De-Activation_Date />
    <Ship_Date />
    <Customer_Name />
    <Customer_Contact_Name />
    <Custome_Contact_Number />
    <Customer_Contact_Email />
    <Customer_Address />
    <Sub_Customer_Name />
    <Notes />
    <Cingular_APN_Profile>08</Cingular_APN_Profile>
    <PDP1>VENDING</PDP1>
    <PDP2>MEI-RDP</PDP2>
    <PDP3>943</PDP3>
    <PDP4>MEI040220071.txt</PDP4>
    <PDP5 />
    <MO />
    <MT />
    <Cingular_Roaming>No</Cingular_Roaming>
    <Cingular_Plan_Code>VRG1</Cingular_Plan_Code>
    <Plan_Description />
    <Action_Type />
    <Monthly_Fee>$5.99</Monthly_Fee>
    <O2_APN_Profile_1 />
    <O2_APN_Ref_1 />
    <O2_APN_Profile_2 />
    <O2_APN_Ref_2 />
    <O2_APN_Profile_3 />
    <O2_APN_Ref_3 />
    <O2_APN_Profile_4 />
    <O2_APN_Ref_4 />
    <O2_APN_Profile_5 />
    <O2_APN_Ref_5 />
    <O2_Roaming_Country />
    <Radius_Login />
    <Radius_Password />
    <Radius_APN_Name />
    <TNS_Radius_Activation_Date />
    <Telco_Radius_Activation_Date />
    <TCP_Port />
    <Number_of_Transactions />
    <Remedy_Request_ID />
    </Record>
    <Record>
    <SIM_Status>Activated</SIM_Status>
    <TNS_Division>Vending</TNS_Division>
    <ICCID>89014103201146533109</ICCID>
    <IMSI>310410114653310</IMSI>
    <MSISDN />
    <PIN1>1111</PIN1>
    <PUK1>58803732</PUK1>
    <PUK2>2222</PUK2>
    <PIN2>67919281</PIN2>
    <Wireless_Carrier>Cingular</Wireless_Carrier>
    <Rate_Plan>1MB</Rate_Plan>
    <Roaming>No</Roaming>
    <Internet>No</Internet>
    <M2M>No</M2M>
    <Telco_Activation_Date>04/02/2007</Telco_Activation_Date>
    <Telco_De-Activation_Date />
    <Customer_Activation_Date />
    <Customer_De-Activation_Date />
    <Ship_Date />
    <Customer_Name />
    <Customer_Contact_Name />
    <Custome_Contact_Number />
    <Customer_Contact_Email />
    <Customer_Address />
    <Sub_Customer_Name />
    <Notes />
    <Cingular_APN_Profile>08</Cingular_APN_Profile>
    <PDP1>VENDING</PDP1>
    <PDP2>MEI-RDP</PDP2>
    <PDP3>944</PDP3>
    <PDP4>MEI040220071.txt</PDP4>
    <PDP5 />
    <MO />
    <MT />
    <Cingular_Roaming>No</Cingular_Roaming>
    <Cingular_Plan_Code>VRG1</Cingular_Plan_Code>
    <Plan_Description />
    <Action_Type />
    <Monthly_Fee>$5.99</Monthly_Fee>
    <O2_APN_Profile_1 />
    <O2_APN_Ref_1 />
    <O2_APN_Profile_2 />
    <O2_APN_Ref_2 />
    <O2_APN_Profile_3 />
    <O2_APN_Ref_3 />
    <O2_APN_Profile_4 />
    <O2_APN_Ref_4 />
    <O2_APN_Profile_5 />
    <O2_APN_Ref_5 />
    <O2_Roaming_Country />
    <Radius_Login />
    <Radius_Password />
    <Radius_APN_Name />
    <TNS_Radius_Activation_Date />
    <Telco_Radius_Activation_Date />
    <TCP_Port />
    <Number_of_Transactions />
    <Remedy_Request_ID />
    </Record>
    <Record>
    <SIM_Status>Activated</SIM_Status>
    <TNS_Division>Vending</TNS_Division>
    <ICCID>89014103201146533117</ICCID>
    <IMSI>310410114653311</IMSI>
    <MSISDN />
    <PIN1>1111</PIN1>
    <PUK1>67010609</PUK1>
    <PUK2>2222</PUK2>
    <PIN2>61424518</PIN2>
    <Wireless_Carrier>Cingular</Wireless_Carrier>
    <Rate_Plan>1MB</Rate_Plan>
    <Roaming>No</Roaming>
    <Internet>No</Internet>
    <M2M>No</M2M>
    <Telco_Activation_Date>04/02/2007</Telco_Activation_Date>
    <Telco_De-Activation_Date />
    <Customer_Activation_Date />
    <Customer_De-Activation_Date />
    <Ship_Date />
    <Customer_Name />
    <Customer_Contact_Name />
    <Custome_Contact_Number />
    <Customer_Contact_Email />
    <Customer_Address />
    <Sub_Customer_Name />
    <Notes />
    <Cingular_APN_Profile>08</Cingular_APN_Profile>
    <PDP1>VENDING</PDP1>
    <PDP2>MEI-RDP</PDP2>
    <PDP3>945</PDP3>
    <PDP4>MEI040220071.txt</PDP4>
    <PDP5 />
    <MO />
    <MT />
    <Cingular_Roaming>No</Cingular_Roaming>
    <Cingular_Plan_Code>VRG1</Cingular_Plan_Code>
    <Plan_Description />
    <Action_Type />
    <Monthly_Fee>$5.99</Monthly_Fee>
    <O2_APN_Profile_1 />
    <O2_APN_Ref_1 />
    <O2_APN_Profile_2 />
    <O2_APN_Ref_2 />
    <O2_APN_Profile_3 />
    <O2_APN_Ref_3 />
    <O2_APN_Profile_4 />
    <O2_APN_Ref_4 />
    <O2_APN_Profile_5 />
    <O2_APN_Ref_5 />
    <O2_Roaming_Country />
    <Radius_Login />
    <Radius_Password />
    <Radius_APN_Name />
    <TNS_Radius_Activation_Date />
    <Telco_Radius_Activation_Date />
    <TCP_Port />
    <Number_of_Transactions />
    <Remedy_Request_ID />
    </Record>
    <Record>
    <SIM_Status>Activated</SIM_Status>
    <TNS_Division>Vending</TNS_Division>
    <ICCID>89014103201146533125</ICCID>
    <IMSI>310410114653312</IMSI>
    <MSISDN />
    <PIN1>1111</PIN1>
    <PUK1>86920575</PUK1>
    <PUK2>2222</PUK2>
    <PIN2>48985958</PIN2>
    <Wireless_Carrier>Cingular</Wireless_Carrier>
    <Rate_Plan>1MB</Rate_Plan>
    <Roaming>No</Roaming>
    <Internet>No</Internet>
    <M2M>No</M2M>
    <Telco_Activation_Date>04/02/2007</Telco_Activation_Date>
    <Telco_De-Activation_Date />
    <Customer_Activation_Date />
    <Customer_De-Activation_Date />
    <Ship_Date />
    <Customer_Name />
    <Customer_Contact_Name />
    <Custome_Contact_Number />
    <Customer_Contact_Email />
    <Customer_Address />
    <Sub_Customer_Name />
    <Notes />
    <Cingular_APN_Profile>08</Cingular_APN_Profile>
    <PDP1>VENDING</PDP1>
    <PDP2>MEI-RDP</PDP2>
    <PDP3>946</PDP3>
    <PDP4>MEI040220071.txt</PDP4>
    <PDP5 />
    <MO />
    <MT />
    <Cingular_Roaming>No</Cingular_Roaming>
    <Cingular_Plan_Code>VRG1</Cingular_Plan_Code>
    <Plan_Description />
    <Action_Type />
    <Monthly_Fee>$5.99</Monthly_Fee>
    <O2_APN_Profile_1 />
    <O2_APN_Ref_1 />
    <O2_APN_Profile_2 />
    <O2_APN_Ref_2 />
    <O2_APN_Profile_3 />
    <O2_APN_Ref_3 />
    <O2_APN_Profile_4 />
    <O2_APN_Ref_4 />
    <O2_APN_Profile_5 />
    <O2_APN_Ref_5 />
    <O2_Roaming_Country />
    <Radius_Login />
    <Radius_Password />
    <Radius_APN_Name />
    <TNS_Radius_Activation_Date />
    <Telco_Radius_Activation_Date />
    <TCP_Port />
    <Number_of_Transactions />
    <Remedy_Request_ID />
    </Record>
    </Root-Element>
    </part>
    </Invoke_PL_SyncrounousReadFile_Write_OutputVariable>
    </messages>
    Transform_FileInput (faulted)
    [2007/08/13 16:56:32] "XPathException" has been thrown. less
    XPath expression failed to execute.
    Error while processing xpath expression, the expression is "ora:processXSLT("XSLT_FileInput_CreateRemedy.xsl", bpws:getVariableData("Invoke_PL_SyncrounousReadFile_Write_OutputVariable", "Root-Element"))", the reason is The XML data is invalid.
    The XML data is invalid; the reason is "Error on line 2 of document : The markup in the document following the root element must be well-formed. Nested exception: The markup in the document following the root element must be well-formed.".
    Please verify xml data.
    Please verify the xpath query.

    Still getting the same error, why is the xml not valid, this xml was produced from a file adapter and is indentical to another project i have that is fine. I have checked all namespaces and the xsd if fine. my apology for the long payload I pasted into here, I meant to cut that in 1/3.
    Here is the error that I have, please disregard the previous error.
    [2007/08/21 16:42:36] "XPathException" has been thrown. less
    XPath expression failed to execute.
    Error while processing xpath expression, the expression is "ora:processXSLT("tsfrmtoRemedy.xsl", bpws:getVariableData("Receive_ReadFileInput_onResult_OutputVariable", "payload"))", the reason is The XML data is invalid.
    The XML data is invalid; the reason is "Error on line 2 of document : The markup in the document following the root element must be well-formed. Nested exception: The markup in the document following the root element must be well-formed.".
    Please verify xml data.
    Please verify the xpath query.
    thanks

  • SOA11g: Transform Activity shows as Pending

    Guys,
    After migration of a process from 10.1.3.4 into 11.1.1.4, In many processes Transform/Assign activity always shows in pending state. Here is the xsl used in one of the Transform activity.
    *<?xml version = '1.0' encoding = 'UTF-8'?>*
    *<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"*
    xmlns:tns="http://xmlns.oracle.com/AddUser"
    xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue">
    *<xsl:output method="text" omit-xml-declaration="yes"/>*
    *<xsl:template match="/">*
    *<xsl:for-each select="/tns:AddUserRequest/tns:UserGroups/tns:UserName">*
    *<xsl:text>~ </xsl:text>*
    *<xsl:value-of select="."/>*
    *<xsl:text> </xsl:text>*
    *</xsl:for-each>*
    *</xsl:template>*
    *</xsl:stylesheet>*
    This is just one of the case, there are many processes in which assign/Transform activity shows as pending after migration.
    the error it shows in audit trail is:
    Error in evaluate <from> expression at line "140". The result is empty for the XPath expression : "ora:processXSLT(........)
    and fault thrown by process is:
    Non Recoverable System Fault :
    *<bpelFault><faultType>0</faultType><selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"></selectionFailure></bpelFault>*
    can someone help on this?
    Thanks,
    AB
    Edited by: AB on Sep 26, 2011 11:28 PM

    There is a known bug related to ORA:PROCESSXSLT() in PS3 (11.1.1.4). Raise a case with support and you should get a patch.
    Regards,
    Anuj

  • OAGIS Get XPath Expression

    We are using the OAGis schema and a client is sending us data in an expression instead of in the actual schema location using the <Get> portion of the schema.
    <Get uniqueIndicator="true">
          <Expression expressionLanguage="XPath">//Credit/FirstName[.="John"]</Expression>
          <Expression expressionLanguage="XPath">//Credit/LastName[.="Smith"]</Expression>
    </Get>What is the best way in BPEL to evaluate this xpath expression to set the FirstName to John and LastName to Smith? We are currently using a transform to parse each expression using XSLT into our database schema. It's not very elegant because it uses an if statement to check the path then has to parse out between the quotes then passes the value to the new var/schema.
    It seems like there should be a way to evaluate the XPath and set the path to the noted string.
    Thanks,

    This Example works fine for arrays that are part of a WSDL message.
    But in 10.1.3.1 this does not work with a array that is part of an XSD declaration
    for Example XSD snippet
    <xsd:element name="itemList">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element maxOccurs="unbounded" minOccurs="1" ref="tns:Item" />
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
    using the following in assign statement
    <copy>
    <from expression="concat('/ns9:itemList/ns9:Item[',string(bpws:getVariableData('index')),']')"/>
    <to variable="idxXpath"/>
    </copy>
    <copy>
    <from expression="bpws:getVariableData('OutputItemList',bpws:getVariableData('idxXpath'))"/>
    <to variable="idx_item"/>
    </copy>
    gives a compiler error that is
    Error(176):
    [Error ORABPEL-10085]: invalid argument
    [Description]: in line 176 of "D:\OnlineShopping_1\bpel\OnlineShopping.bpel", the second argument "bpws:getVariableData("idxXpath")" for getVariableData is not a literal expression.
    [Potential fix]: Please correct the second argument, you might need to escape using single quote or " to make it literal.
    Can anyone site the reason for the same or a possible solution?
    Message was edited by:
    user607972

Maybe you are looking for

  • ITunes card has no code. Can anyone help?

    I just scratched off the label on the back of an itunes card and there's no code. Has anyone else had this problem? There's just a sticky mess where the code should be. Any help would be appreciated.

  • Incorrect Inventory Values

    HI,   I am using inventory cube. The issue i am facing is that I am getting correct stock levels - QUANTITIES be it current or past. But if I look into stock values of past they are current. But stock values of current are correct. Can anyone suggest

  • Mail is not opening images on macbook

    Mail is not opening images on Macbook Pro

  • Auto Time Changes?

    Hi Guys, Is it possible to automate a time change gradually from say 120 to 96 over a bar or two? I thought I might be able to do this on an automated channel but I need it to apply across all tracks. Any possibility of this being done in the hyper e

  • Start tomcat with ovjm

    I have read all the help. I cannot figure out how to start tomcat such that it is using the ovjm. Please help.