How can I use XSQLRequest for processing in-memory XMLDocument

How can I use class XSQLRequest for processing in-memory XSQL?
What should i pass in URL parameter value for constructor XSQLRequest(XMLDocument p0, URL p1)?
Could you write the some examples?

Here's one example of doing this:
String xsqlPage = "<page connection='demo' xmlns:xsql='urn:oracle-xsql'>"+
                  "  <xsql:set-page-param name='username' value='{@u}'/>"+
                  "  <xsql:set-page-param name='password' value='{@p}'/>"+
                  "  <xsql:query bind-params='username password'>"+
                  "    select 'Authenticated' from dual"+
                  "    where 'SCOTT' = UPPER(?) /* username */"+
                  "      and 'TIGER' = UPPER(?) /* password */"+
                  "  </xsql:query>"+
                  "</page>";
  DOMParser d = new DOMParser();
  d.parse( new StringReader(xsqlPage));
  XSQLRequest req = new XSQLRequest(d.getDocument(),null);
  StringWriter sw = new StringWriter();
  PrintWriter errors = new PrintWriter(sw);
  Hashtable h = new Hashtable(2);
  h.put("u","scott");
  h.put("p","tiger");
  req.process(h,output,errors);
  output.println(sw.toString());

Similar Messages

  • How can i use AME for the new OAF page.

    Dear all,
    I have developed a new OAF page and registered under Employee Self Service.
    How can i use AME for the approval process.
    Appreciate your ideas?
    zamora

    I will try to answer based on my experience of working with iProcurement and AME. It depends on how you want to make a call to AME , directly from OAF Page or from Workflow and your requirement. You didn't specify what you want to show the users on OAF Page and your business requirement.
    Before calling AME Engine from the OAF page or workflow, I guess you did already setup AME Transaction Type and it's Approval Groups, Conditions, Action Types and Rules. Do some testing from AME Business Analyst Test Workbench. Please note that, AME provides lot of PL/SQL API's that you have to call from your programs (java or workflow pl/sql)
    Let's look at the workflow and putting an OAF Page as notification.
    As Sameer said, you have kick-off workflow process from PR of CO and with in the workflow function, you make a call to AME Engine API's with the AME Transaction ID. This transactionId belongs to the AME Transsaction Type that you setup. Based on the rules setup, AME Engine generates list of approvers/approver and stores them AME Tables for that transactionId. Then, it sends a notification to the approver.
    In the workflow, where that notification is defined, in the message body you have to put an attribute(&XX_WF_FWK_RN) of type document/send. And this attribute will have the constant JSP:/OA_HTML/OA.jsp?OAFunc=XX_FUNC&paramId=-&DOCUMENT_ID-. This function is SSWA Jsp function that makes a web html call to your OAF Region.
    If your requirement is to just show the list of approvers on the OAF Page, you may have to call AME API diectly passing your AME TrasnactionId with other parameters. Then AME generates list of approvers and stores them in AME tables with each approver status. You can pickup those approvers using VO and show them on OAF Page.
    Hope this gives some idea.

  • I have two iphones, different telcos, i am using the same apple id for both - how can i use the 10GB icloud free memory of my new iphone 5?

    I have two iphones, different telcos, i am using the same apple id for both - how can i use the 10GB icloud free memory of my new iphone 5?

    Thank you KiltedTim!
    YES, that is the free 5GB icloud memory for each apple ID. Can I not add the free 5Gb of my second Iphone to my original apple ID (5GB also) as I want to use one Apple ID name on both 2 Iphones? Is it necessary to have a different apple ID for the second Iphone to avail the free 5GB it carries with it?

  • How can I use TopLink for querys that have two and more tables?

    I use TopLink today, and I can use one table to query, but how can I use TopLink for querys that have two and more tables?
    Thank you for see and answer this question.

    You can write a custom SQL query and map it to an object as needed. You can also use the Toplink query language "anyOf" or "get" commands to map two tables as long as you map them as one to one (get command) or one to many (anyOf command) in the toplink mapping workbench.
    Zev.
    check out oracle.toplink.expressions.Expression in the 10.1.3 API

  • How can I use OCCI for oracle8.1.6?

    my database is oralce8.1.6 for solaris8.
    I want to develop database application by OCCI .
    But only oracle9i has OCCI.
    How can I do?
    Where can I get OCCI ,and how can I use it for oralce8.1.6?
    thank you very much!!

    OCI is available for all versions of Oracle including Oracle
    7/8/8i etc. However it is not installed by default with these
    versions. I am assuming that the default 9i installation
    includes OCI. You should be able to install OCI for other
    versions through one of the development platforms e.g. ProC/C++
    etc.

  • How can i use RTFEditorKit for JTextField.

    hi all,
    how can i use RTFEditorKit for JTextField.
    thanks in advance
    daya

    Don't cross post. This is a Swing related question and you have already posted in the Swing forum:
    http://forum.java.sun.com/thread.jspa?threadID=619619&tstart=0

  • How can I use Siri for IPhone?

    How can I use Siri for IPhone?

    Siri only works on the iPhone 4S or iPhone 5. If you have one of those devices, turn it on in Settings > General > Siri.
    If you need more info than that, ask in the Apple forums.

  • How can I use music for ringtones on my iphone 4?

    How can I use music for ringtones on my iphone 4?

    You can take any MP3 file that it 40 seconds or less and change the file extension to M4R. Then drag it into iTunes. It will appear under Ringtones and transfer over next time you sync,

  • How can i use dlls for running rtc3?

    how can i use the dll libraries to use for the rtc3 software?

    amolchoudhary wrote:
    can anyone please help me???
    How? You provide almost no useful information.
    What is rtc3?
    Why do you think you have to use DLLs?
    What did you try so far that hasn't worked?
    What is it you want to accomplish?
    You see what you ask here is just about the same as if someone would ask you to tell them what screw he needs to fix his car.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How can i use autoSuggestBehavior for inputText witha separator

    I use JDEVADF_11.1.1.2.0
    how can i use a input Text Field with auto suggest by sepearted
    in a field with what, is separated
    Example Value :"Name1;Name2;Name3......"
    Sorry for my English

    I'm not exactly sure what do you mean here.
    The basics of working with autosuggest are here:
    http://www.connotea.org/user/jdeveloper/tag/auto%20suggest

  • I have a passport external hard. previously, I used it on windows, then I changed my laptop to mac. Now, It's only read. How can I use it for copying files on it on mac? I don wanna use it on windows again.

    I have a passport external hard. previously, I used it on windows, then I changed my laptop to mac. Now, It's only read. How can I use it on my mac for copying files on my passport? I don wanna use it on windows again.

    If you're not going to use the drive on a Windows machine, you should use Disk Utility (Applications>Utilities folder) to erase the drive and format it as "Mac OS Extended (Journaled)" with a single GUID partition (default):
    Good luck,
    Clinton

  • How can I use NSDictionaryControllers for 2 dicts with common key?

    I have two dictionaries, both with the same key. Using Interface Builder I can build for each dictionary a two-column table, but I did not find out how to connect their keys so that selecting a line in one table automatically selects the corresponding line in the other table.
    Does there exist a binding between the two controllers that solves the problem? If so, how can it be established?
    (First I tried to use only ONE table - with 3 columns:. This appeared to me the best way. But again I could not establish the appropriate binding.)

    I assume you are using a UITableView to show your data. Remember that the table view does not store your data, only shows a few rows of your collection.
    I would detect a selection in one table, then programatically select the row with the same key in the second table. There would be no connection in IB to do that.
    Mobile table programming guide:
    Table View Programming Guide for iOS
    General programming guide:
    Table View Programming guide
    Jason

  • How can I use iCloud for storage without duplication problems?

    I recently set up iCloud to use on my Mac and PC.  With the exception of a single data file that I have stored in the cloud (as a working data file) that I use both on my Mac and PC....I want to use the rest of my 20 gigs of space on iCloud for storage/backup purposes only.  However, I have very little experience with iCloud; and it doesn't seem entirely intuitive to use iCloud.
    For example, if I store all of my music and pictures on iCloud, how do I stop Itunes and iphoto from duplicating the results of each music and picture file in those programs?  I ask this question because I have seen iTunes act up way too many times (in other circumstances) when it creates duplicate music files.
    Just to be clear, I want everything to remain on my local hard drive.  I only want to use iCloud for storage/backup only.  So, again, how do I stop iTunes and iPhoto from reading music and photo files once I successfully get them on iCloud?  (I am thinking I have to hide the archived files once I get them in iCloud, but unsure about how I go about doing that).  And here's my second question.  To upload my personal music and picture files to iCloud, can I simply drag and drop them into the iCloud drive on my computer and assume they will be successfully uploaded?
    My second question seems kind of basic too.  But, once again, iCloud does not seem entirely intuitive to use for a beginner.  For example, I recently purchased some music from the Itunes store.  And while I have it downloaded on my harddrive (like I wanted it)......I don't see it on the iCloud drive (on my computer)....nor do I see it when I log into icloud.com on the web site.  Thanks for any replies.

    If you have a Mac signed into your account running iPhoto, you might want to check iPhoto>Preferences>iCloud to make sure Automatic Upload isn't checked.  If it is checked, all new photos added to iPhoto are automatically added to your photo stream.

  • How can I use OpenGl for iPhone games??

    Hi! As you know I really want to be an iOS developer. I know how Xcode works. But I don't know for the graphics and animation. I've heard that OpenGl can be used in games. But how? I mean like connecting the animations in OpenGl to the program written in XCode. I don't understand that part yet. So please can you guys explain me about that. I thank you all. 

    Hi Eric,
    it would help me frame answers if you give the background information:
    - do you know any 3D computer graphics theory? E.g. viewing transformations.
    - do you know any openGL already?
    - do you already know objectiveC and ios programming?
    To answer your questions:
    - the OpenGL ES libraries are already included as part of the iOS SDK, so if you have that you are set.
    - I am using an Air myself, works fine for developing for iOS, including code using OpenGL ES.
    - OpenGL ES is based on OpenGL 3.0, so is very similar. Almost the same.
    - read the post I linked to:
    http://db-in.com/blog/2011/01/all-about-opengl-es-2-x-part-13/
    He explains how to hook things up quite well. However, you do already need to understand how to develop for iOS.
    As I mentioned above, it helps to know 3D Graphics principles. If you do not know that then it is difficult to animate using openGL (or any other SDK). There are third party tools available (e.g. Corona, Unity, project Anarchy) that can make life easier, but at some point you simply have to learn 3D graphics. Trying to do animation without understanding graphics is like trying to write native apps without understanding programming. You can cheat to do basic stuff, but nothing useful or deep.
    This is not easy stuff, you will have to put some work into it. Start with the above link as an intro, and also the apple docs pointed to by teacup.
    Good luck!

  • How can i use FNDLOAD for XML reports and data defnitions

    I registerd concurrent program and linked xml reports and data defnitions in staging instance, and successfully moved to DEV.. after that stage is refreshed and when i download the details from DEV and uploaded to Stage only concurrent program i can upload...Wheteher we can use FNDLOAD Command for the Data definitions or Data template for the XML Report,used FNDLOAD for the concurrent program, it uploaded only concurrent program details.

    Hi,
    Use XDOLoader.
    Note: 469585.1 - How To Use XDOLoader?
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=469585.1
    Regards,
    Hussein

Maybe you are looking for

  • Effective permissions for LDAP user that is a member of multiple groups?

    We use AD and LDAP group maps to authenticate to UCS, and I'm trying to understand the effective permissions when a user is a member of multiple LDAP groups, each with different UCSM permissions. I expected that UCS would grant access based on the un

  • USB Ports Not Working

    The USB Ports on my 2012 MacBook Pro have stopped working. Initially, port #1 (the one closest to the screen) stopped working, but now (probably nearly 12 months later) they have both stopped working. The SD card reader is starting to work intermitte

  • Problem with getImportedKeys() in MySQL

    Hi everyone, I am using JDK1.5.0 and the jdbc "mysql-connector-java-3.0.16" I've been trying to get the foreign keys from a MySQL 4.1 database using the getImportedKeys() method of the DatabaseMetaData class,but the method returns a ResultSet,which i

  • Keyword Tags; file tags

    In elements organize 12 how can I add tags to files already in catalogue and have the tags show up in organizer? And how can I add tags in organizer and have then show up in the files properties details? Can this be done? All help appreciated. Thanks

  • ESS & MSS installation steps

    hi,    can any one tell me the complete steps to install & configure business packages like ESS, MSS..... i know that these packages comes in .epa or .sca format.....i tried the business packages in market place but i don't have any password or login