for BPEL XPath query, escape the quotes

Hello

Can someone tell me how to correct this query. Basically, I need the last part in quotes to be somehow escaped and the compilation process.

Ora:countNodes ('Receive_createObject_InputVariable', 'request','/ ns1:CreateObject/req/Object [bpws:getVariableData('counter')] / options/Property [@Name = "ID"]')

The Xpath query component is as follows: /ns1:createObject/req/Object [bpws:getVariableData('counter')] / options/property [@name = 'Id']


I tried follows him:

single quotes around the double quotes
Ora:countNodes ('Receive_createObject_InputVariable', 'request','/ ns1:CreateObject/req/Object [bpws:getVariableData('counter')] / options/Property [@name = '"' Id'" ']')

using the ' & quot;
Ora:countNodes ('Receive_createObject_InputVariable', 'request','/ ns1:CreateObject/req/Object [bpws:getVariableData('counter')] / options/property [@name = & quot;) ID & quot;] ")

Using single quotes around Id
Ora:countNodes ('Receive_createObject_InputVariable', 'request','/ ns1:CreateObject/req/Object [bpws:getVariableData('counter')] / options/Property [@Name = 'Id']')


Kind regards

Hello

You can't escape quotes in the assign activity, the only solution is to use a processing activity.

You can use one of the following in your plan of xslt to count nodes having the Id with quotes.

If Id is an attribute then use the following syntax:

If Id is an element can use the following syntax:

I have

Kind regards
Diakité
http://SOA-HOWTO.blogspot.com

Published by: Dharmendra Dubey on October 15, 2008 20:37

Published by: Dharmendra Dubey on October 15, 2008 20:39

Published by: Dharmendra Dubey on October 15, 2008 20:39

Tags: Fusion Middleware

Similar Questions

  • How to escape the quotes in image.metadata.title

    Was working on a web template that uses image.metadata.title and image.metadata.description but when my user place a quote "or an apostrophe I get an error in the processing of the page html or xml I'm generation. What I would like something isg as php htmlspecialchars. I tried the following:

    String.format('%Q',image. Metadata.title) who escapes from the "------" and the apostrophe with------' but I will get in my xml

    < image title = "She said \"this isn\ ' t work------"" > "

    "Unfortunately the------" isn't escape the quote in xml, I would like to have

    < image title = "says she & quot; This n & #039; work & quot; ">

    Similarly, if my user wants to thml in the title of the image or the title I'm getting the same problem.

    It would be nice to have a function SDK for HTML quoting.  But in the meantime I think you should use string.gsub () to make your own replacements, for example

    String.gsub (s, "\ '", "'")

    You can pass an array to the third parameter, which allows you to make all necessary substitutions with call to string.gsub ().

  • With the help of APEX_JSON translated by JavaScript and escape the quotes

    I am currently generation JSON using the APEX_JSON package.  It works fine, but I got out the JavaScript code on the loading of the page and can not find a way to escape the double quotes.

    function drawChart() {
    
    
            var jsonData = &P9_JSON.;
    
    
            var data = google.visualization.DataTable(jsonData);
    
    
            var options = {
              title: 'Test Chart',
              pieSliceText: 'value'
            };
    
    
            var chart = new google.visualization.PieChart(document.getElementById('piechart'));
    
    
            chart.draw(data, options);
          }
    

    I'm getting errors because "is replaced by & quot;" in the javascript code generated.  Any ideas how to replace these?  I tried to use to replace them, but it doesn't seem to work...

    Thank you!

    Hi LSDev

    Replace this line--> var jsonData = & P9_JSON. ;

    To--> var jsonData = & P9_JSON! RAW. ;

    This work for me...

    Best regards

    Eduardo

  • escape the quotes

    Hello
    A database table column may contain records such as:

    37250; "" 246438 "; » 1 » ; "" Billing contact "; «D-na L. M. SILICA «;» «"" «SILICA LUCREÞIA»;»» I have "; "0000246770"

    How can I use the double escapement of quotes, I can indicate select...... where the column as "" D-%', then I want the lines containing the list * "D-% *" ""

    Thank you

    You don't need to escape the double quotes.

    sql> create table t (id number, something varchar2(10));
    
    Table created.
    
    sql> insert into t values (1, '"D-na"');
    
    1 row created.
    
    sql> select * from t;
    
            ID SOMETHING
    ---------- ----------
             1 "D-na"
    
    sql> select * from t where something like '"D-%';
    
            ID SOMETHING
    ---------- ----------
             1 "D-na"
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    
  • How to escape the quotes when I run the .sql Unix script

    Hello

    I have a ddl script files...
    to keep specific information from the environment, I use a placeholder $variable (for example, the names of patterns etc.)

    and creating a document and say the dba this export variable = value.

    Use of variable for the following cases?

    CREATE DATABASE LINK "abc.ge.com".
    CONNECT TO $SRC_SCHEMA_NAME
    IDENTIFIED BY $SRC_SCHEMA_PWD
    With the HELP of 'abc.ge.com '.


    I want to create a varaiable with value abc.ge.com How can I do this from the command have single and double quotes...

    Thanks and greetings
    REDA

    You don't need quotation marks in your CREATE DATABASE LINK statement. Just leave and forget any of this escape.

    Are you sure you must export all these variables, i.e. will they be mentioned in sublayers without be passed as parameters?

  • How to escape the quotes and commas when you use the command of the coil

    I am creating a file .cvs with data in my database. I call the function of coil and below select stmt

    ' Select ' ' ' | ID | '","' || name | '","' || Description | '","'

    I want everything to be separated by quotes and commas. Description data can have quotes and commas so how I get away from them in my queue code so that when I use SQL Loader data will get entries in the database correctly.

    Thank you!

    Hello

    If the field is closed, so there is nothing else you need to do for the column separator (en).

    To use the character encompassing ("") in the field, double it, the same way you use two single quotation marks to signify a single_quote into a SQL string literal:
    {code}
    ' SELECT ' ' ' | ID
    ||     '","'     || name
    ||     '","'     || REPLACE (description
    , '"'
    , '""'
    )
    ||     '"'
    FROM table_x;

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    
  • How do you manage the quotes inside a string value?

    I use the

    infowindowoptions ranked in the google map api for flash and I want to have some html (link) within a string value. the html code has a pair of quotation marks within the string. How can I get the quotes inside the string without causing an error?

    Here are my actionscript

    import com.google.maps.LatLng;
    import com.google.maps.Map;
    import com.google.maps.MapEvent;
    import com.google.maps.MapType;
    import com.google.maps.InfoWindowOptions;

    var map: map = new Map();
    Map.Key = "ABQIAAAAN14ojD-qIiaujbXTJI-SnhQEt6AsiatPjWK1t6pg54rIwsH2LxSmsfrHffLAXxfpAdOU98D1MzDtVg";
    map.setSize (new Point (stage.stageWidth, stage.stageHeight));
    map.addEventListener (MapEvent.MAP_READY, onMapReady);
    this.addChild (map);

    function onMapReady(event:Event):void {}
    map.setCenter (new LatLng(36.863073,-76.028435), 14, MapType.HYBRID_MAP_TYPE);
    map.openInfoWindow (map.getCenter (), new InfoWindowOptions ({title: "associated with plastic surgery", content: "1037 first Colonial Road, Virginia Beach VA 23454 Get directions < a href ="http://maps.google.com/maps?hl=en & amp; rlz = 1T4GGLL_enUS308US308 & amp; um = 1 & amp; ie = UTF-8 & amp; c id = 0, 0, 10499807723319896793, & amp;})) FB = 1 & amp; AC = associates + in + plastic + surgery & amp; hnear = Virgin ia + Beach & amp; GL = us & amp; daddr = 1037 + 1 + Colonial + Road + Virginia + Beach + GOING + 23454 & amp; geocode = 7383190348801088740,36.863073-76.028435 & amp; EI = MeOGS9q2JoqXtgfys_ybDw & amp; her = X & amp; Oi = loc al_result & amp; CT = instructions - at & amp; resnum = 1 & amp; ved = 0CAwQngIwAA "" > here < /a>. '})); "
    }

    Thanks for the help

    You can also escape the quotes:

    var string: String = "my channel \' city\'; '"

  • Application of automatic certificate for local system failed (0x800706ba) the RPC server is unavailable.

    I get these errors on some Windows 7 machine "registration of automatic certificate for local system failed (0x800706ba) the RPC server is unavailable" ID of the 6 event and event ID 13

    "Registration certificate for Local system failed to enroll for a certificate of computer with application ID N/A dc.contoso.com\contoso-DC-CA (the RPC server is unavailable." 0X800706BA (WIN32: 1722)). »

    other windows XP, Windows 8 and windows machine 7 receive the certificate through auto-enrollment.

    Hi Sam,

    Thanks for posting your query in the Microsoft Community Forums.

    Because the issue is limited to with RPC server, it is better suited for the IT Pro TechNet public. Please ask your question in the Forum on TechNet Support. You can follow the link to your question:
    I hope it helps. If you have problems in the future, please let us know. We will be happy to help you.
  • Assign activity erros with the XPath query string returns multiple nodes.

    It comes to xml message we have with two elements < corecom:BusinessScopeReference > inside. How to assign the first < corecom:BusinessScopeReference > value of the other variable in the string.


    < variableentree >
    < xmlns:corecom fault = "http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2" xmlns:default = "http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2" xmlns = "http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2" >
    < corecom:EBMReference >

    < corecom:BusinessScopeReference >
    < corecom:ID xmlns = "http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/CustomerParty/V2" xmlns:ebo = "http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/CustomerParty/V2" >
    Account: NUANCE (AIMA 17N9IL) < / corecom:ID >
    < / corecom:BusinessScopeReference >

    < corecom:BusinessScopeReference >
    < corecom:ID xmlns = "http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/CustomerParty/V2" xmlns:ebo = "http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/CustomerParty/V2" >
    CREATECUSTOMERPARTYMSG/39303832313732363632373734303732 < / corecom:ID >
    < / corecom:BusinessScopeReference >

    < / corecom:EBMReference >
    < / failures >
    < / variableentree >


    When I use the sub element assign, I get the error: "XPath query string returns multiple nodes." How to point to the specific element in the table.


    < assign the name 'AssignId' = >
    < copy >
    < variable from = part "Variableentree" = "Fault."
    Query = "/ corecom:Fault / corecom:EBMReference / corecom:BusinessScopeReference / corecom:ID" / >
    < variable = "business_object_name" / >
    < / copy >
    < / assign >


    Please suggest.

    Check if this useful BPEL foreach

  • When you type a query in the bar always double the third letter, for example, research, if I want to write a 'youtube' written "youutube" what to do, help

    When you type a query in the bar always double the third letter, for example, research, if I want to write a 'youtube' written "youutube" what to do, help

    Hello chilli.willi, try Firefox Safe Mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • The XPath query results do not get

    Hello

    This is the xpath query and xml. Query is works well but do not fetch all results.

    Select d.

    the left outer join CALC_RUN_XML

    XMLTABLE (XmlNamespaces (DEFAULT 'http://www.cigna.com/coreops/ccmi/internal/calculation/1 http://www.cigna.com/coreops/ccmi/client/2 ','' as "ns2"), )

    "/ calculation/calculationParameters/clientSelections / ns2:client ' to CALC_RUN_XML. CALC_RUN_XML

    columns

    clientId varchar2 (100) path ' @ns2: clientId',.

    Number of account varchar2 (100) path ' @ns2: account number ',

    path of varchar2 (100) branchNumber ' @ns2: branchNumber',.

    path of varchar2 (100) benefitPlanNumber ' @ns2: benefitPlanNumber',.

    path of varchar2 (100) benefitPlanVariationId ' @ns2: benefitPlanVariationId',.

    path of varchar2 (100) benefitClassNumber ' @ns2: benefitClassNumber',.

    path of varchar2 (100) clientAccountEffectiveDate ' @ns2: clientAccountEffectiveDate',.

    path of varchar2 (100) clientAccountTerminationDate ' @ns2: clientAccountTerminationDate'

    ) d

    1 = 1

    <? XML version = "1.0" encoding = "UTF-8" standalone = 'Yes'? >

    " < calculation = xmlns:ns2 ' http://www.CIGNA.com/coreops/CCMI/client/2 "xmlns =" http://www.Cigna.com/coreops/CCMI/Internal/calculation/1 ">

    < calculationParameters rateExhibitType = paymentFrequency "CAP" = "Monthly" calculationPeriod = "02" calculationYear = "2013" retroWindow = "Standard" retroWindowAmount = "" paymentDueDate = "2014-02 - 11 T 05: 00:00.000Z" > "

    < contractRateSheetSelections >

    < contractNumber selection '891' = >

    < rateSheetIds >

    < rateSheetId > 567 < / rateSheetId >

    < / rateSheetIds >

    < / selection >

    < / contractRateSheetSelections >

    < clientSelections >

    < ns2:client clientId = accountNumber "00358430" = "00358430" branchNumber = "A001" benefitPlanNumber = "MOAP001" benefitPlanVariationId = "00003250" benefitClassNumber = "A001" clientAccountEffectiveDate = "" 2009-06 - 01 T 04: 00:00.000Z "clientAccountTerminationDate =" 2199-12 - 31 T 05: 00:00.000Z "/ >"

    < ns2:client clientId = accountNumber "00358430" = "00358430" branchNumber = "A001" benefitPlanNumber = "MOAP001" benefitPlanVariationId = "00003250" benefitClassNumber = "A001" clientAccountEffectiveDate = "" 2009-06 - 01 T 04: 00:00.000Z "clientAccountTerminationDate =" 2199-12 - 31 T 05: 00:00.000Z "/ >"

    < / clientSelections >

    < / calculationParameters >

    < runHistory >

    < run runType = 'Se MOQUER"userId ="M59056"runDescription ="satish11"runDateTime =" "2014-02 - 11 T 17: 01:28.553Z" jobExecutionId = "2064" / > "

    < / runHistory >

    < / calculation >

    Thank you

    Partha

    Hello

    XML attributes belong to no namespace, unless explicitly qualified with a prefix.

    They do not inherit from their parents namespace either.

    So, in short, remove the attributes ns2 prefixes, and it should be OK:

    clientId varchar2 (100) path "@clientId."

    Number of account varchar2 (100) path "@accountNumber."

    path of varchar2 (100) branchNumber "@branchNumber"

    path of varchar2 (100) benefitPlanNumber "@benefitPlanNumber"

    path of varchar2 (100) benefitPlanVariationId "@benefitPlanVariationId"

    path of varchar2 (100) benefitClassNumber "@benefitClassNumber"

    path of varchar2 (100) clientAccountEffectiveDate "@clientAccountEffectiveDate"

    path of varchar2 (100) clientAccountTerminationDate '@clientAccountTerminationDate '.

  • syntax error xPath-&gt; position of the particular element in BPEL

    Hello

    I'm trying to get the position value of the particular BPEL element using xPath, but get the syntax error any idea?

    bpws:getVariableData ('outputVariable', 'payload','/ ns1:Employee / ns1:loc [bpws:getVariableData('currenctRecord')] / ns1:code')

    Thank you
    Ravi

    bpws:getVariableData('outputVariable','payload','/ns1:employee/ns1:loc[$currenctRecord]/ns1:code')

    use the expression in the expression builder above, and the same assign to the target node where you want, it will work

  • Call in the report for PDF download query does nothing

    I am trying to download a PDF report based on 2 queries. Each query has a where clause clause with values taken from the page elements. I installed Publisher OBI 11.1.1.5 and used the term of Publisher 11.1.1.5 OBI plug-in to create the RTF file that I downloaded then the components Shared-> presentation of the State.

    I created a new button in the region to call the report query. However, whenever I click on the button to download the PDF file, nothing happens. I looked at the debug and the button seems to be running OK, except that nothing happens.

    The APEX of BOIP configuration works since I was able to have BOIP generate another report that do not use the predefined query. In other words, parts of reports including the attributes defined print "allow printing of the report = Yes" and 'layout of report = report default layout' work very well. Reports based on the query predefined and launched with a button in the region do nothing.

    Environment: APEX 4.1, DB 11.2.0.2, BOIP 11.1.1.5

    Any contributions to this PDF issue is greatly appreciated.

    Thank you
    Reid

    Hello Reid,

    Thanks for reporting back!

    It now works with a button linked to printing the report query URL. This method was not working before because when I deleted/recreated the presentation of the report, the layout of request report report had to "use generic Report Layout. When I changed the presentation of the report query to the name of the correct report layout, button link to the print URL worked as expected.

    He therefore finally brought its fruits check attributes...

    Still, he doesn't when I create a button with action = 'Download printable report Query'. I tried several times, but couldn't make it work. It seems that it is a bug, but I can't say for sure.

    It should work as long as you have configured the report query according to the needs and assured the session state is included.

    Go ahead rather than use the with action = "Download the printable report query", I'll use a button with Action is "Redirection of URL" where the URL is the URL for the report query printing.

    In this case, my guess would be the session state, because you will always she, when redirecting to the session, and the report query seems to agree.

    -Udo

    P.S.: If you don't mind, please check all useful or correct accordingly to ensure that other users of the forum search can identify those posts easily.
    Thank you!

  • Table names (for quotes, the quote lines and price breaks)

    Hi Experts,

    What are the names of tables for the quote, the quote lines and quotes price breaks.

    Thank you

    MPH

    Quotes and POs share the same tables.
    The type_lookup_code in po_headers_all identifies the type of the document.

    Quotations > po_headers_all (or you can use PO_HEADERS_RFQQT_V)
    lines-online po_lines_all (or you can use PO_LINES_RFQQT_V)
    price breaks-online po_line_locations_all (or you can use PO_LINE_LOCATIONS_V)

    Hope that answers your question,
    Sandeep Gandhi

  • Unable to create the Composite project for BPEL in JDev 11.1.1.3 with SOA Ext

    Hello

    I installed JDeveloper 11.1.1.3
    But I'm not able to create composite projects for BPEL.

    I enabled SOA Composite Editor updates 11.1.1.3.0.25.57.
    It is said he downloaded and installed and restarted my JDeveloper.

    But I still don't see the composite projects for BPEL.
    The download and the Installation went in 2 seconds, so I was wondering whether or not they are correctly installed.
    Is it possible to check whether it is installed correctly.

    Same thing happens when I downloaded framework Web Center.

    Thanks for any help.
    Sameer

    Once you have a local zip file - use help > check for update > and choose the local zip file.

Maybe you are looking for