Is there a way to call a stored proc from the web in Oracle 10g?

I've found an article about Native Oracle XML DB Web Services in 11g, but it appears to be a new feature. Is there any way of accomplishing something similar in 10g? I would like to be able to process XML documents that contain the name and parameters of the stored proc/function to execute.
Link to 11g article:
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28369/xdb_web_services.htm

I agree with you. I was looking into mod_plsql, but it turns out that their development standards include not using Oracle HTTP server. The whole reason why they want to be able to execute a stored proc based on what is specified in an XML doc is that they want to avoid having to change their middle-tier configurations anytime a new stored proc or a change in stored proc parameters is made. I'm not familiar with what all is involved with .NET and the middle-tier, but supposedly this way, they can specify any stored procedure name and its parameters in an XML file. The XML is then suppose to be passed on to an Oracle stored procedure which will parse the XML and dynamically execute the stored procedure that was specified in the XML.
Here is an example of the XML:
'<Root>
  <PackageName>TEST_PKG</PackageName>
  <ProcedureName>TEST_PROC</ProcedureName>
    <Parameters> 
    <Parameter>
        <Name>EmpID</Name>
        <Value>12345</Value>
    </Parameter>
    <Parameter>
        <Name>Org</Name>
        <Value>ABC</Value>
    </Parameter>
    </Parameters>
</Root>I basically need to parse out the pkg/proc names:
  SELECT t.COLUMN_VALUE.extract('//PackageName/text()').getstringval() PkgName,
         t.COLUMN_VALUE.extract('//ProcedureName/text()').getstringval() ProcName
     INTO v_pkg_name, v_proc_name
     FROM TABLE(xmlsequence(XMLTYPE(v_XML_input) .extract('/Root'))) t;...and then execute the procedure:
    EXECUTE IMMEDIATE 'BEGIN '||v_pkg_name||'.'||v_proc_name||'(:a, :b, :c); END;'
      using in v_in_param1, v_in_param2, out v_XML_output;The problem is that this approach is very complicated since there can be any number of IN/OUT parameters and of various datatypes. I would have to create all kinds of possible bind variables!

Similar Messages

  • Is there a way to download a Flash file from the web?

    Hello all.
    I am just wondering if there is a way, similar to downloading QuickTime movies and trailers from the web (using the provided link or its URL) to download a flash file? i.e. a flash-made audio or video?
    Thanks and cheers

    OK!
    I use RealPlayer 11.0 beta for this:
    http://www.macupdate.com/info.php/id/8428
    It automatically tells you if the file is downloadable.
    Works like a charm.
    Even in the West Country....

  • Is there a way to recover my stored emails from the version of Thunderbird I had on my Windows XP system that was upgraded to Windows 8?

    I can find the folder Windows.old and locate the Thunderbird files in there, but can't find any old email info. Do they exist and if so where to find them?

    If you currently have personal data in Thunderbird, the safest thing to do is to use the ImportExportTools add-on. See the second link if you need more detailed usage instructions than those provided in the description.
    * https://addons.mozilla.org/thunderbird/addon/importexporttools/
    * http://kb.mozillazine.org/Importing_folders
    If you need to transfer other data besides mail, see the following article.
    * http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Thunderbird
    If you don't have any personal data in Thunderbird at the moment, then you can simply replace everything in your current profile with data from your old profile:
    # Click the '''≡''' menu icon in the top right.
    # Open the '''Help''' menu and choose '''Troubleshooting Information'''.
    # Click the '''Show Folder''' button. This opens a Windows Explorer window with your current profile.
    # Click the '''≡''' menu icon and choose '''Exit'''.
    # Create a backup copy of your current profile folder.
    # Select all files in your current profile folder ('''Ctrl+A'''), then press the '''Delete''' key to erase them.
    # Open a new Windows Explorer window and navigate to your old profile folder.
    # Copy all files and subfolders from the old profile folder into the current one.
    You're welcome.

  • Is there a way to call a function with in the initializer of a ArrayCollection?

        Is there a way to call a function with in the initializer of a ArrayCollection?
    It won't let me do this:
    var ac:ArrayCollection = new ArrayCollection([
                        {childName:'addTrade',index:addTradeIndex },
                        {childName:'tradeList',dealsCanvas.getChildIndex(tradeList) }

    The correct syntax is
    var ac:ArrayCollection = new ArrayCollection([
                        {childName:'addTrade',index:addTradeIndex },
                        {childName:'tradeList',index:dealsCanvas.getChildIndex(tradeList) }

  • Is there a way to open a new window from the "Go" menu in Mavericks?

    Before Mavericks, I was able to go from the Finder to the top menu "Go" -> "Utilities", or Applications or Home… and a new window would open.
    Now I have to manually open a new window to avoid loosing my existing window.
    Is there a way to open a new window from the "Go" menu?

    Before Mavericks, I was able to go from the Finder to the top menu "Go" -> "Utilities", or Applications or Home… and a new window would open.
    Now I have to manually open a new window to avoid loosing my existing window.
    Is there a way to open a new window from the "Go" menu?
    First, as others have already stated.....make sure the checkbox is deselected for "open folders in tabs instead of windows" in Finder Preferences.
    If you're like me and don't like tabs very much, there is a way to make folders always open in windows with a simple click (I'm using Mavericks 10.9.5).  Go to a root folder (for example, the Documents Folder), open it, and select View > Hide Toolbar, then all folders within that root folder will open in a new window.
    As an alternative method, any folder can be opened in a new window by holding down either Command Key while clicking the folder. But sooner or later you will forget to hold down that key, and then clicking on a folder will open in a tab (which will automatically resize the window and cause much aggravation).
    The Hide Toolbar trick will also work with any folder present on the Desktop. It will make all folders inside that folder open in new windows.
    To make the Applications Folder open in a new window when opening it from the menu bar at the top of the screen, you will have to open the main hard drive folder and use the Hide Toolbar trick. This will cause all folders inside it to open in new windows.
    Hope this helps.

  • HT201269 If we set up a device as new, is there a way to go back and restore from the previous phone?

    If we set up an iPhone 5 as a new device, is there a way to go back and restore from the previous iPhone 4?

    See  How to Restore from a Backup  Here  >  http://support.apple.com/kb/ht1766

  • Is there a way to remove a code snippet  from the library of my snippets in Edge Animate CC2014?

    Is there a way to remove a code snippet  from the library of my snippets in Edge Animate CC2014?

    When you click on "My Snippets", it will list down all saved user snippets, which you can right-click and click on "delete" to delete it.

  • I have to restore my phone from back up but in order to do it i had to update my software. now that my software is updated there isnt enough room on the phone to back up. is there a way to only restore certain things from the backup like contacts?

    i have to restore my phone from back up but in order to do it i had to update my software. now that my software is updated there isnt enough room on the phone to back up. is there a way to only restore certain things from the backup like contacts?

    Because it says it's incompatible when it can't be, I got hope. I get error messages all the time with my iPod and iPhone that it cannot sync and that 'this device is not capapble of connecting to iTunes' stuff. I literally forget that happened, plug it in again and it works, I later realize that iTunes made a mistake, they do that.

  • Is there any way to remove a released transport from the SE10 display?

    Is there any way to remove a released transport from the SE10 display or change the owner of a released transport?

    Hi Joe
    Transport Request once released can not be deleted. We can ignore sending the release request for further systems.
    Kind Regards
    Eswar

  • Trying to call a stored proc from a form ?

    Hi im trying to call a stored procedure that create a web page
    any where from within a form. (the SP It uses the htp package).
    It does not seem to work.
    lets say in the PL/SQL block before the footer i pu
    <schema>.my_procedure;
    i get a not decleared <schema>.my_procedure error.
    Could someone help !
    Also is there a way to call stored proc directly from the url
    I tried httP://hostname/pls/portal30/<schema>.my_procedure
    unsuccessful.
    thanks

    For it to work, you should grant EXECUTE on your Procedure to
    PUBLIC.
    Have you done that?
    If yes then there is a problem.

  • Is there a way to hide my Skype info from the publ...

    The reason I wish to do so is because I've been reciving an influx of of people wanting to find people to talk to, and have been sending me friend requests. However, I have no interest of talking to anyone who I have not met, unless it's from either a website I know and use, or have given written permission and my contact details. I do not like random friend requests at all, and I find it suspicious they all identify as female, and I am male. I do not wish to be bothered by such things, and so I ask if there is a way to somehow maybe hide myself from the directory, and if not, maybe such a feature should be added. I know the directory is what you need to search to find anyone, but there should be a more direct way when you have the Skype name. It may make it harder for friends and family to find a person, however, if I really want people added to my Skype, I will give them my info. It was a wonderful feature, however there are those who wish to abuse it, and something must be done, as this problem will not be going away!
    So far, I've been blocking the people, but this is the 5th time it's happened in the last 2 weeks, and I'm getting rather concerned that just anyone can find me, and add them in. I use Skype to communicate with my friends and family, not find and talk to complete strangers. I am also concerned that this issue is just the tip of the iceburg, as people younger then 18 can also get a Skype account, and could be extorted by people wishing to harm our youths. I am not trying to be a "white knight", but rather a responsible citizen wanting to help make the community safe for all who are in it. I do not ask for immediate changes, but rather for help as to temporary fixes, and the consideration of features that could help protect people who choose to use them.

    If you currently have personal data in Thunderbird, the safest thing to do is to use the ImportExportTools add-on. See the second link if you need more detailed usage instructions than those provided in the description.
    * https://addons.mozilla.org/thunderbird/addon/importexporttools/
    * http://kb.mozillazine.org/Importing_folders
    If you need to transfer other data besides mail, see the following article.
    * http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Thunderbird
    If you don't have any personal data in Thunderbird at the moment, then you can simply replace everything in your current profile with data from your old profile:
    # Click the '''≡''' menu icon in the top right.
    # Open the '''Help''' menu and choose '''Troubleshooting Information'''.
    # Click the '''Show Folder''' button. This opens a Windows Explorer window with your current profile.
    # Click the '''≡''' menu icon and choose '''Exit'''.
    # Create a backup copy of your current profile folder.
    # Select all files in your current profile folder ('''Ctrl+A'''), then press the '''Delete''' key to erase them.
    # Open a new Windows Explorer window and navigate to your old profile folder.
    # Copy all files and subfolders from the old profile folder into the current one.
    You're welcome.

  • Calling a storeed proc from jap

    How do we call a stored procedure from a jsp?

    And to do the call (either from the JSP, which I also don't recommend, or from somewhere else) use CallableStatement. Read the API documentation for more information on how to use it.
    Alin.

  • How to call a function module from the Web Template?

    Hi all,
    how can I call a function module from a BI 7.x web template and then show the result of the FM on the web template?
    Many thanks for your hints.
    Regards, Nils

    Hi!
    I am too working on a similar issue.
    Probably this helps:
    Re: Calling a function module from a Web Template
    Regards,
    Sri

  • Is there any way to call a sql file from a pl/sql block

    Hi,
    I want to call a sql file from a pl/sql block.
    the pl/sql block has an exception handler. The pl/sql block will execute the sql file and in case it throws error then the exception handler will take care of it.
    The sql file will be a master file and it will itself call other sql files.
    is it possible to call any sql file from pl/sql block ?

    When you say "sql file", what precisely do you mean? Do you have a file that has just SQL statements? Or do you have SQL*Plus scripts?
    Where are the files stored? Are they on your client machine? Or the database server?"which in turn calls other sql files" seems to imply that the answer to the first question is that you have SQL*Plus scripts. If you have SQL*Plus scripts, you need SQL*Plus to execute them. PL/SQL is running in the Oracle database, SQL*Plus is a client application. It is not practical to have PL/SQL call SQL*Plus. Since you've already ruled out the best of the bad options, it appears that the answer is no, you can't have your PL/SQL run these files.
    As Alex points out, that's probably a good thing. It sounds like your application has been designed incorrectly. If you need PL/SQL, you should be creating stored procedures and functions and calling those from PL/SQL. Having PL/SQL depend on code in flat files outside the database is not a good idea.
    Justin

  • Is there a way to call a SQL Program from an Oracle Report?

    Morning friends. I had a question about Oracle Reports and them calling a SQL Program. Here is the problem at hand. I am hoping to not have to change the existing program a whole lot!
    Currently, here is what is happening. I have a .sh file which calls the Oracle Report first and then goes on to call a .sql program. I am using Oracle Reports 10g and the call to run the report is RWCLIENT. This was earlier being called using RWRUN.
    Because of certain issues of synchronicity with RWCLIENT, I am now looking to move the call to the .sql program to the Oracle Report (Ideally the AFTER_REPORT trigger). Is this possible?
    The Oracle Report basically outputs a listing and the .sql program does a spool and creates a text file which is later used as attachment to the email and sent out to the person who submitted the Report.
    Here is the shell script.
    # Accept system input parameters
    p_gradapp_user_id=$1
    p_gradapp_job_id=$2
    program_unit='GRAD001A'
    rwrun.exe module=$GRADAPP_PATH/GRAD001A userid=$p_gradapp_user_id paramform=no desformat=$GRADAPP_PRINTER(GRAD001,1) destype=file desname=grad001-$p_job_id-1-1.lis p_gradapp_job_id=$p_gradapp_job_id p_gradapp_user_id=$p_gradapp_user_id batch=yes
    exit_status=$?
    program_unit='GRAD001B'
    sqlplus.exe -s $p_gradapp_user_id @$GRADAPP_PATH/grad001b.sql $p_gradapp_user_id $p_gradapp_job_id
    exit_status=$?
    exit 0

    If you are going to use rwclient try BACKGROUND=NO as an extra parameter:
    background=NO: Runs the report synchronously. The client waits for the report to queue, be assigned to a runtime engine, run, and finish.
    See: http://download.oracle.com/docs/cd/B14099_19/bi.1012/b14048/pbr_cla.htm#i656436

Maybe you are looking for

  • Batch capture question

    by mistake, i just captured video instead of audio for about 20 clips. is there anyway to go back and get the audio only through batch capture. i highlighted the clips and did a batch capture but the only thing it re-captured was the video and no aud

  • Drop partition without disabling foreign key

    Hi All, I have parent and child table. Parent table create table parent_1 (id number, create_date date, constraint parent_1_pk001 PRIMARY KEY (id)) PARTITION BY RANGE (create_date) INTERVAL (NUMTODSINTERVAL(1,'DAY')) (PARTITION parent_1_part VALUES L

  • Error 10403 in "so config" in windows 2000

    Hi I am using Labview 7.1, I Installed it on Windows 2003 advanced server. I configured my sound card and execute my program without error. on the same computer, I had windows 2000 profesional, I installed labview 7.1 on it and compiled my program un

  • PHP Random Images (Mr. Powers or other PHP Experts)

    Hello everyone, This is the script from David Power's book using arrays and the rand function (Disclosure). Basically it changes the images randomly on browser load or refresh. However, I am trying to add an additional, not sure what to call it, a st

  • Tempdb file remove problem

    Hi All. I am trying to remove one of the tempdb logical file alter database tempdb remove file tempdev2 and have the following error: The file "H:\tempdb2.mdf" has been modified in the system catalog. The new path will be used the next time the datab