Inserting content in a Variable [HELP!]

Hello all,
I'm creating a business process using OBPM and my situation is:
I have a web service that returns a XML file in string format. After this web service I have another one that receives a complex type sequence.
Between these two services I put a Java Embedding to convert the XML string to a XML Document, and then I must add this XML document as a child of my another web service input.
Being, more clear.
My web service A returns this:
<getArrPersonReturn type="ns2:Vector">
     <item type="ns2:Person">
          <age type="xsd:int">23</idade>
          <name type="soapenc:string">Alan</nome>
     </item>
     <item type="ns2:Person">
          <age type="xsd:int">20</idade>
          <name type="soapenc:string">Charles</nome>
     </item>
</getArrPessoaReturn>
As I told, this is all XML String, and not XML Document.
My next web service receives a sequence of Person. So, I am trying to convert those XML string to a XML Document and insert each <item> in the input variable to the next web service. To achieve this, I tryed:
1. Got the next web service input as an Element:
Element element_varTest = (Element)getVariableData("TestWS","v","/v");
When I give a System.out.println(element_varTest), I get:
<v xmlns:def="urn:WSPerson" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="def:Vector"></v>
2. So I try to give a element_varTest.appendChild(each_above_item) to put those itens inside <v></v>, but it doesn't work. Always I receive an error saying only NULL. :'-(
If anyone could help me I would appreciate so much!!!!
Thanks a lot,
Fabricio.

As it is defined as a string, it will not be recognized as an XML document. So, the first step you need to take, is to convert the string to an XML doc. The easiest way to do so, is to use parseEscapedXML, like:
<assign name="copyXMLstring">
<copy>
<from expression="ora:parseEscapedXML(bpws:getVariableData('input'))"/>
<to variable="output" query="/ns1:return"/>
</copy>
</assign>
where the structure is defined in ns1. After this, you can handle 'output' as an XML document.

Similar Messages

  • How to insert a table with variable rows in smart form

    Hi all,
    How to insert a table with variable rows in smart form?
    Any help would be appreciated.
    Regards,
    Mahesh.

    Hi,
    Right click the mouse->create->table
    If you want 5 columns, you need to declare 5 cells in one line type of the table
    Click on Table -> Details, then do the following
    Line Type 1 2 3 4 5
    L1 2mm 3mm etc
    Here specify the width of the columns as many as you want..
    then in the header/main area of the table, click create Table Line, Rowtype is L1, automatically 5 cells will come,In each cell create a text element, display the variable to be printed there.

  • How to execute the content of varchar  variable like a simple query

    Hi everyone!
    I did a PL/SQL region in apex, in this region I did the query which is storaged in a variable; it was did it concatenate several times,
    in the procedure I have several sentences.
    I thought that the command 'execute immediate' would get a good result but it do not print the result.
    declare
    variable varchar2(1000);
    begin
    --sentences
    --execute inmmediate( variable );
    --return variable
    end;
    I only want to how to execute the content of varchar variable.
    For example, suppose that the result of this procedure is
    'SELECT SYSDATE FROM DUAL'
    How and what do I must do for this query execute like a normal query that is in apex?
    I expect your prompt reply.
    Thank you for your help.
    Best regards

    Let us say your table containing SQL is
    t_sql_table
    and has two columns
    primary_key
    and
    sql_query.
    You would need to do the following:
    1. Create a Report of type "Function returning SQL Query"
    2. Put the following there:
    DECLARE
       v_query   VARCHAR2 (4000);
    BEGIN
       SELECT sql_query
         INTO v_query
         FROM t_sql_table
        WHERE primary_key = 1;
       RETURN v_query;
    END;Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Script logic : determine the content of a variable according to a IF test

    Hello experts,
    I have the following need in a script logic
    determine the content of a variable according to a IF test
    For example I tried :
    *WHEN %ENTITY%
    *IS "CH20","CH30","ES10"
    *SELECT(%ENTITYPBPD%, "[ID]", "ENTITYCC", "[ID] = '%ENTITYCC_SET%_PBPD'")
    *ENDWHEN
    Syntax is correct but I get a query execution error (Error in WHEN/ENDWHEN structure)
    I guess it's because this when don't have any REC instructions.
    In other words, if the user selection at the package prompt step are CH20, CH30 or ES10
    the variable has to be selection_PBPD
    if another member is selected
    the variable has to take other value
    Hope I've made my need clear, and thanks in advance.
    G.

    Hi G,
    Will the *TEST_WHEN() statement work for this case?
    The way that it works is that if the condition evaluates to TRUE, then the subsequent WHEN...ENDWHEN is processed, else it is not.
    Have a look at Page 66 of "How To Use BPC Scripting Logic, Version 1.00, April 21, 2006" (It's a bit old but I use it a lot on our MS7.0 SP9 installation).
    Hope this helps.
    Regards
    Nick

  • Error When inserting Content Query Web part onto the page

    i am using share point 2010 and when i am trying to insert content query web part onto the page i am getting the following error
    i checked the correlation id in the logs file but could not find anything useful in it.
    please suggest why this problem occuring everytime when i try to insert content query webpart onto the page

    Hi,
    Check the correlation id in your logging files are the best way to investigate.
    Did you check these files with "SharePoint ULS Log viewer". Maybe, that will be more easy for you to get the correlation Id.
    Moreover, check the account's permissions with which you try to insert your webpart.
    Regards.
    Gilles Martinez
    Twitter
    Blog
    Please mark as helpful/answer if this resolved your post

  • How to insert, as an input variable within formula, the total time window on scope?

    How to insert, as an input variable within formula, the total time window on scope (i.e. 20ms/div x 10 div = 200ms)?
    BELOW IS AN EXAMPLE OF ISSUE:
    FORMULA FOR ACTION INTEGRAL:
    STATISTICS:
    Input variable: DPO4034(CH1);
    Check Box: number of samples.
    FORMULA
    Input variable 0: DPO4034(CH1); alias: x0
    Input variable 1: "Total Time Window on Scope???"; alias: x1
    Input variable 2: Number of Samples (CH1); alias: x2
    Under Operation Setup: Formula
    Y= (x0^2)*(x1/x2)
    Output: Processed Data 1 (CH1)
    THEN USING STATISTICS:
    Input signal: Processed Data 1 (CH1)
    Check Box: SUM
    Output: CH1 Action Integral [A^2s]
    Solved!
    Go to Solution.

    Hi again Catherine,
    I have now added another TekScope (TDS3032B) along with the DPO4034 and run the same work-around on the TDS3032B using CH1 as the "real" signal channel and CH2 as the "burst width" channel. However, the value returned for CH2 is nominally 99E+36 (min 99E+36, max 99E+36) with very few retrievals of correct burst width (~200ms). Seems the SignalExpress program is unable to consistently retrieve from TDS3032B the actual burst width (scope's time scale/window) and defaults to 99E+36 value. Any ideas on what is occurring and how to make it work? Attached are some screen captures to help guide discussion.
    Regards,
    Michael
    Attachments:
    TDS3032B - incorrect burst width.png ‏301 KB
    TDS3032B - correct burst width.png ‏287 KB
    DPO4034 - always correct burst width.png ‏302 KB

  • Syncing my 3rd Gen IPod Touch, All my music and videos show in the device on iTunes, but when I look at the device itself, it say no content.  Can someone help?

    Automatically Syncing my 3rd Gen IPod Touch, All my music and videos show in the device on iTunes, but when I look at the device itself, it say no content.  Can someone help?  The Apps seem to sync fine, just not the music, videos, podcasts, or audiobooks.

    Change your iCloud ID password: http://support.apple.com/kb/HT5624.  After doing so, go to Settings>iCloud, tap Delete Account, then sign back in with the new password.

  • I can't place the content of a variable in a TextField

    Hi.
    I have a TextField made at authoring time. I need to place
    the content of a variable in a TextField.
    The variable counts the clicks and i want to display the sum
    in a TextField.
    Here is the code I made:
    var limit:Number=29;
    var count:Number=0;
    var current:Number=0;
    _root.mask_mc.onPress = function() {
    _root.bat_mc.gotoAndPlay(2);
    if(count<limit) {
    count++;
    }else{
    _root.nextFrame;
    count=0;
    _root.scor_txt.text = count;

    yes, that's right, (this code look very similar to something
    I wrote for someone the other day ;)
    I would also not call to _root as it doen't look like it's
    needed here, if this resides on the main timeline (it looks that
    way from here :) (if not leave them in there, I just don't like
    calls to _root much)
    also you will need to use:
    nextframe();
    so it should look more like:

  • Inserting text from a variable in actionscript

    what is it called when you insert text from a variable in actionscript?

    Your question is not clear.  There is no specific name for the process of inserting text from a variable that I am aware of.
    If you have a dynamic textfield that you have assigned an instance name to, let's say you named it "tField", then to assign a variable called "aVar" to that textfield you would use:
    tField.text = aVar;

  • I have Maveriks. I downloaded numerous ACID Fonts and purchased Stuffit as instructed by ACID Fonts in order to use them. However, now I am unable to figure out how to get them into my Font Family drop down list or insert into Pages. PLS HELP!

    I have Maveriks. I downloaded numerous ACID Fonts and purchased Stuffit as instructed by ACID Fonts in order to use them. However, now I am unable to figure out how to get them into my Font Family drop down list or insert into Pages. PLS HELP!

    Hi FancyJean!
    Here is an article for you about using Font Book and installing fonts that you have downloaded:
    Mac Basics: Font Book
    http://support.apple.com/kb/ht2509
    Thanks for being a part of the Apple Support Communities!
    Cheers,
    Braden

  • View contents of record variable at debug time

    My PL/SQL package I'm debugging contains some RECORD type definitions. How can I see the contents of variables fo these types at debug time.
    The data tab shows the variable with an empty value and a type of 'OPAQUE'. As things currently stand for me I am simply unable to debug this code if I can;t see the contents of my variables.
    What have I done wrong? Or is the tool currently not able to show me this information. If this is the case is there any sort of workaround.

    Naveen,
    I am able to find document_type_id with this
    SELECT --document_extra_info_id
    FROM hr_document_extra_info
    where person_id=<>
    But I am not sure how I need to see the document.
    I dont know whether document exists or not?
    My Questions are
    1) Which path will documents store at server side?
    2) I am able to create docs now and I am able to view the docs now. But I am not able to view the existing docs. I am not sure whether docs exist or not.
    for this reason, I need to check whether docs exits in the path or not? Is it conversion issue or not? Please let me know.

  • INSERT using a %ROWTYPE variable

    In PL/SQL I need to "copy" a row in a table, changing the sequence number in a key and changing a couple of other columns. Most of the 20 or so columns are unchanged. I declare a variable using %ROWTYPE, to hold the entire row, and do a SELECT into it. Then I change the 3 columns, and want to do an INSERT, using the %ROWTYPE variable. But it seems that INSERT does not let me do this - I have to specify all the columns individually. This is tedious, and also means I have to know all the columns, which is bad for maintenance (new columns added in the future). Is there a way to INSERT the entire row? Whay does Oracle not allow this?
    Dave E. at McGill Univ.

    Oracle will allow this....but in Oracle9i and after. Right now you cannot do this in Oracle8i or less.
    Gio
    null

  • HT203390 even when i insert my sim card it says insert your sim card kindly help me in this regard i cant use my phone

    even when i insert my sim card it says insert your sim card kindly help me in this regard i cant use my phone

    Sounds like the phone was jailbroken or hacked to unlock it. Was it?

  • Business content cubes . Please help me in identification

    Hello ,
    I am still looking out below information , I tried to find the same in help.sap.com but could not identify the cube from business content . can u please help and let me know which could be the cubes or multiprovider from business content .
    Could you please help me and let me know the cubes which are provided by SAP .
    1.    Invoices for analysis of actual sales, pricing and special charges (2 standard cubes)
    2.    Analysis of Delivery processing (incl. analysis of distribution costs) (2 standard cubes)
    3.   Sales Orders for analysis of incoming sales orders, open orders, backlog (4 standard cubes)
    4.    Inventory, for analysis of inventory levels, turnover and slow stock (1 standard cube)
    5..   Purchase Orders for analysis of purchase orders, open purchase orders (5 standard cubes)
    Thanks .

    Hi,
    1. Invoices for analysis of actual sales, pricing and special charges (2 standard cubes)
        0SD_C03 And also  check for 0SD_C*
    2. Analysis of Delivery processing (incl. analysis of distribution costs) (2 standard cubes)
       Use DS -->2LIS_12_VCITM and create a Custome Cube for that DataSource
    3. Sales Orders for analysis of incoming sales orders, open orders, backlog (4 standard cubes)
        0SD_C03 And also  check for 0SD_C*
    4. Inventory, for analysis of inventory levels, turnover and slow stock (1 standard cube)
       0IC_C03
    5.. Purchase Orders for analysis of purchase orders, open purchase orders (5 standard cubes)
         0PUR_C01  And also check 0PUR_*
    Thanks
    Reddy

  • When I try to download iTunes, I recieve the message: "69.31.21.67:80- 10.239.97.15:53037 Download request is dropped due to exceeding max content size."  Please help!

    I cannot download any version of iTunes to my Windows Vista laptop.  When I try, I recieve the message "69.31.21.67:80->10.239.97.15:53037 Download request is dropped due to exceeding max content size."  Please help me so I can start using my new iPad!! Thank you!

    Acrobat Support

Maybe you are looking for

  • CMSS3D is not working !!!! after modding teh shell32.dll PLEASE HELP

    ? hello there, i have a question...why does cmss3d uses the shell32.dll in system32? cause i wanted to edit my shell32 to have a new icons, etc... so, when i change the shell32, even i change onnly one icon, the cmss3d is not working anymore... as so

  • Opened my email yesterday and inbox no longer has emails from 2/14 to 9/15. They are completely gone.

    My inbox has some emails that go back a couple of years. Anything important I try to put in folders. Otherwise, I read or delete them when I get around to it. Just discovered that all of my inbox emails from the middle of February to the middle of Se

  • ISE 1.2.1 AD machine authent fails

    We put ISE into bypass mode due to the 2012 R2 issue and after upgrading to 1.2.1 in ISE, and taking it out of bypass. i am seeing machines fail due to either "supplicant stopped responding" or it fails saying not found in Identity Stores. The only t

  • Delete lines from iternal table

    Hi All! The problem what I'm having is I have to delete all the entries from the internal table which are lets say equal 'XXXXXX' regards sas data lt_itab type standard table of IS_PDATFU. data wa_itab type IS_PDATFU. data: lt_roles   type BAPIBUS100

  • Where is the Advanced Button in OSX/Finder?

    Aside from Apple's own termed pro apps, where is the option in the OS to turn on by default the Finder windows they use, for all applications? i.e. for example in final cut or aperture, the darkened, tidier, less waste, earier to navigate, faster win