How can I expose a PL/SQL package to a webservice

Hello

Using Jdeveloper 12 c, how can I expose a PL/SQL package as a webservice?

Thanks in advance

Look for the option 'Web of TopLink-DB services provider' under the section of Web Service in the new gallery.

Timo

Tags: Java

Similar Questions

  • How can I use the "fnd_user_pkg.updateuser" package to disable users in bulk?

    Hello

    How can I use the "fnd_user_pkg.updateuser" package to disable users in bulk?

    in EBS R12.1.3, oracle 11g.

    Please see the request for information of the user

    -------------------------------------------------------------------------------------

    SELECT

    SEPARATE

    FU. USER_NAME

    FULL_NAME EMPLOYEE_NAME

    , TO_DATE (LAST_LOGON_DATE, "dd/mm/rrrr") LAST_LOGON_DATE, end_date, FU.start_date

    OF FND_USER FU, PER_ALL_PEOPLE_F PERX

    WHERE 1 = 1

    AND PERX. PERSON_ID = FU. EMPLOYEE_ID

    AND SYSDATE BETWEEN PERX. EFFECTIVE_START_DATE AND PERX. EFFECTIVE_END_DATE

    AND PERSON_TYPE_ID! = 1118 - excluded candidates iRec

    AND LAST_LOGON_DATE < = TO_DATE (December 31, 2012 ', "dd/mm/rrrr") and end_date is null

    ORDER BY TO_DATE (LAST_LOGON_DATE, "dd/mm/rrrr") / / desc

    ------------------------------------------------------------------------------------

    Concerning

    Ngoyi

    Hello

    You need to do the opposite of what the code in the discussion below is:

    fnd_user_pkg. UpdateUser - End Date remove users

    Kind regards

    Bashar

  • How can I save cfquery text sql, not the results

    Hello

    I have the need to save a dynamically generated real sql, cfquery, not the results.

    I can see it in < cfdump var = "# < qry_name > #" > but, how can I capture the real sql

    and save it in a var for later use?

    Thank you

    Bob

    The property of the results of the tag to put this information in a variable for later use.

    I.E.

    ...
    
    
  • How can I download ActionCript 3.0 packages

    How can I update my packages, some of the missing packages (air)

    Maybe I misunderstand you, but if you are looking for Flash Professional to work with ActionScript, it is now called Adobe animate CC and is available in the Creative Cloud packer or Desktop Application.

    Welcome to Adobe animate CC, a new era for Flash Professional | Animate Adobe blog

  • How can I write this in sql? (an another headcracker challenging the report)

    Hi guys!

    I need to create / generate a report. I intend to do all of this with only pure SQL.
    Been cracking my head for days, but nothing helped.

    Hope you gurus here me straightened out.

    Here it goes. I have a table

    TABLE USAGE_REPORT
    ------------------------------------
    Date date of daily
    BalanceCF NUMBER - the sum of initial departure or (balancebf)
    Topup_amount NUMBER amount topup so far
    Usage1 NUMBER - duration of the use of $ on certain prod
    2 NUMBER - duration of the use of $ on certain prod
    BalanceBF NUMBER - BalanceCF + refill - usage1-2 (which is also the next date of BalanceCF)

    -----------------------------------------------

    Example1
    Please see this link
    http://img9.imageshack.us/img9/708/88149028.gif

    asumming that is my sql

    WITH dates in the FORM
    (
    SELECT trunc (sysdate) + level dmy
    DUAL CONNECT BY level < 366
    ),
    Charging as
    (
    As the SELECT trunc (purchase_date), sum (payment_amount)
    Purchase
    Trunc GROUP (purchase_date)
    ),
    Usage1 as
    (
    As the SELECT trunc (connect_date), sum (charged_amount)
    OF tab1
    WHERE prod_id = "xxx".
    GROUP BY trunc (connect_date)
    ),
    2 as
    (
    As the SELECT trunc (connect_date), sum (charged_amount)
    Of THE tab2
    WHERE prod_id = "yyy".
    GROUP BY trunc (connect_date)
    )
    SELECT * DATE D
    LEFT OUTER JOIN RELOAD T
    WE (D.DMY = T.DATED)
    LEFT OUTER JOIN USAGE1 U1
    WE (D.DMY = U1. DATE OF THE)
    LEFT OUTER JOIN U2 2
    WE (D.DMY = U2. (DATED);

    However

    T1) how can I start to 'launch' the 1st row
    BALANCECF so that i can do the math
    of

    BALANCECF + REFILL - USAGE1 - 2 = BALANCEBF

    Q2) how can I put the value of BALANCEBF in the 2nd line of BALANCECF to make more calculation?

    Q3) is that it has something to do and connect? parent-child relationship

    Q4) brief how to make it look like the photo attach above?

    Help, please!
    Best regards
    Noob

    I use 200 as initial balance_cf. did you not sample data, so code below is not tested:

    WITH dates as (
                   SELECT  TRUNC(SYSDATE) + level dmy,
                           200 balance_cf
                     FROM  DUAL
                     CONNECT BY level < 366
                  ),
         topUP as (
                   SELECT  trunc(purchase_date) dated,
                           sum(payment_amount) topup_amount
                     FROM  purchase
                     GROUP by trunc(purchase_date)
                  ),
        Usage1 as (
                   SELECT  trunc(connect_date) dated,
                           sum(charged_amount) usage_amount
                     FROM  tab1
                     WHERE prod_id = 'xxx'
                     GROUP BY trunc(connect_date)
                  ),
        Usage2 as (
                   SELECT  trunc(connect_date) dated,
                           sum(charged_amount) usage2_amount
                     FROM  tab2
                     WHERE prod_id = 'yyy'
                     GROUP BY trunc(connect_date)
                  )
    SELECT  dmy,
            balance_cf + sum(topup_amount - usage1_amount - usage2_amount) over order by dmy rows between unbounded preceding and 1 preceding) balance_cf
            topup_amount,
            usage1_amount,
            usage2_amount,
            balance_cf + sum(topup_amount - usage1_amount - usage2_amount) over order by dmy) balance_bf
      FROM  DATES D LEFT OUTER JOIN TOPUP T ON (D.DMY = T.DATED)
                    LEFT OUTER JOIN USAGE1 U1 ON (D.DMY = U1.DATED)
                    LEFT OUTER JOIN USAGE2 U2 ON (D.DMY = U2.DATED)
      ORDER BY dmy
    /
    

    SY.

  • How can I get the original xml code to a webservice called...

    I use WL 10.3.

    I created a WebService using WSDL as a starting point. The Web service is running as it should, but now I want to go back to the original XML that was passed in.

    I tried to collect the data to a string using JAXB, but he complains that there is no notation for @XmlRootElement - so, who does not work.

    I also tried to access the original data by injecting the WebServiceContext, but this value is always zero (not sure why that doesn't work)...


    Is someone can you PLEASE tell me how can I get the original XML code?

    You can use managers to this end, for example,

    package server.handlers;
    
    import javax.xml.transform.Source;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.ws.LogicalMessage;
    import javax.xml.ws.handler.LogicalHandler;
    import javax.xml.ws.handler.LogicalMessageContext;
    import javax.xml.ws.handler.MessageContext;
    
    public class ServiceLogicalHandler implements LogicalHandler {
    
        public boolean handleMessage(LogicalMessageContext context) {
            Boolean direction = (Boolean) context.get(LogicalMessageContext.MESSAGE_OUTBOUND_PROPERTY);
            if (direction) {
                System.out.println("LOGICAL - DIRECTION IS OUTBOUND");
            } else {
                System.out.println("LOGICAL - DIRECTION IS INBOUND");
            }
            return true;
        }
    
        public boolean handleFault(LogicalMessageContext context) {
            Boolean direction = (Boolean) context.get(LogicalMessageContext.MESSAGE_OUTBOUND_PROPERTY);
            if (direction) {
                System.out.println("LOGICALFAULT - DIRECTION IS OUTBOUND");
    
                LogicalMessage message = context.getMessage();
                Source payload = message.getPayload();
                try {
                    Transformer transformer = TransformerFactory.newInstance().newTransformer();
                    transformer.transform(payload, new StreamResult(System.out));
                } catch (TransformerException ex) {
                    ex.printStackTrace();
                }
            } else {
                System.out.println("LOGICALFAULT - DIRECTION IS INBOUND");
            }
            return true;
        }
    
        public void close(MessageContext context) {
        }
    }
    

    More information on managers can be found here: http://www.javaworld.com/javaworld/jw-02-2007/jw-02-handler.html

  • How to pass objects in PL SQL packaged procedure as parameters to java

    Hello

    His summer job where I created type next. But when we used inside the package, it does not work...

    create or replace package pack1

    T_n ARRAY TYPE IS NUMBER (10);

    PROCEDURE insrt_pay (p_array IN t_n, p_values OUT NUMBER) IS

    v_cnt NUMBER (10): = 0;

    BEGIN

    BECAUSE me in 1... p_array. COUNTING LOOP

    v_cnt: = v_cnt + (i) p_array;

    END LOOP;

    p_values: = v_cnt;

    END;

    end pack1;

    It is now possible in 12 c:

    JDBC reference information: use of Types of PL/SQL

  • How can I combine 2 pl/sql xml documents

    Hello

    We are generating a report with DBMS_XMLGEN. The report is too large and the selection is very heavy. Don't want to use dynamic SQL statements. I am trying to break the queries and generate xml data, and then add the docs together. Is there a way we can add an xml document to another?

    Thank you for your help in advance.

    I plan to write queries (10 queries) in this case and generate XML fragments and inserted into a temporary table and then concatenate them.

    In this case, you will need the aggregation in the rows XMLAgg function, don't not XMLConcat.

  • How can I fix SQL2005 associated SQL OLE DB?

    Nice day!
    We are trying to install an application that requires a COM instance however, we continue to receive an error, no matter what we try.

    For the background; It is a production database that works well for other applications and databases.  We use Windows Server 2003 R2 Service Pack 2 on an x 64 installation of the company.  Load is SQL Server 2005 Enterprise SP2 x 64.  We recently applied these two service packs in the hope of solving this problem.

    The only option that we have not tried is a repair on the installation of SQL that is scheduled for today.  A that someone has had this problem before or maybe solved something similar?  Your expertise would be greatly appreciated.

    Thanks in advance.

    Nice day!
    We are trying to install an application that requires a COM instance however, we continue to receive an error, no matter what we try.

    For the background; It is a production database that works well for other applications and databases.  We use Windows Server 2003 R2 Service Pack 2 on an x 64 installation of the company.  Load is SQL Server 2005 Enterprise SP2 x 64.  We recently applied these two service packs in the hope of solving this problem.

    The only option that we have not tried is a repair on the installation of SQL that is scheduled for today.  A that someone has had this problem before or maybe solved something similar?  Your expertise would be greatly appreciated.

    Thanks in advance.

    Here a few methods:

    http://www.reddit.com/r/Microsoft/comments/2bhntz/how_to_open_corrupted_mdf_file/

    http://www.TechRepublic.com/forums/questions/my-database-MDF-file-got-corrupted/ https://www.sqlserverrepairtoolbox.com/ - SQL Server repair Toolbox (not free)

  • Create the PL/SQL package in SQL Developer 4.0.0.12

    Hello

    I built a model in SQL Developer 4.0.0.12 and I want to create a PL/SQL package.

    In ODMiner 11.1.0.4 of 'Tools' > 'Create pl/sql package' I can get a script to create the package and every thing is OK.

    but in SQL Developer, I select "Deploy" from the popup menu of each node and it generates a folder containing scripts associated with each node. I don't see any relevant script for creating a package.

    How can I create a PL/SQL package in my workflow?

    Thanks for any help you can provide in this situation.

    Please see this whitepaper to find out how to build the PL/SQL package for deployment of workflow:

    Oracle Data Miner (Extension of SQL Developer 4.0)

    PL/SQL script for the deployment of workflow

    http://www.Oracle.com/technetwork/database/options/advanced-analytics/odmrcodegenwhitepaper-2042206.PDF

  • How can I get all the ID of SQL the same SQL literals change?

    My SQL statement is the same throughout, but only changing the literals, and therefore the SQL ID, i.e. SQL ID change also. How can I get all the SQL ID this SQL?

    Hello

    the FORCE_MATCHING_SIGNATURE column is also entered in the ASH / historical AWR views V$ ACTIVE_SESSION_HISTORY / DBA_HIST_ACTIVE_SESS_HISTORY / DBA_HIST_SQLSTAT.

    .. and after all, you can join these views as described with DBA_HIST_SQLTEXT, if necessary.

    DBA_HIST_SQLTEXT displays the text of SQL statements belonging to shared SQL cursors captured in the repository of the workload. This perspective captures information from V$ SQL and is used with the DBA_HIST_SQLSTAT view.

    Concerning

    Stefan

    P.S.: AWR is only based on the captured of course SQLs.

  • How to use my bellows PL/SQL PROCEDURE to export data to a directory with a button in the ADF?

    Mr President.

    Any body give me advice step by step that how can I use my pl/sql below procedure to take the small schema oracle backup with a touch of the adf.

    DECLARE  
       h1   NUMBER;  
       dt   VARCHAR2 (20);  
       myschema VARCHAR2(32):='SCOTT';  
    BEGIN  
       SELECT TO_CHAR (SYSDATE, 'YYYYMMDD')  
         INTO dt  
         FROM DUAL;  
      
      
       h1 :=  
          DBMS_DATAPUMP.OPEN (operation      => 'EXPORT',  
                              job_mode       => 'SCHEMA',  
                              job_name       => myschema||'_EXP_' || dt,  
                              VERSION        => 'COMPATIBLE'  
                             );  
       DBMS_DATAPUMP.set_parallel (handle => h1, DEGREE => 1);  
       DBMS_DATAPUMP.add_file (handle         => h1,  
                               filename       => myschema||'_EXP.LOG',  
                               DIRECTORY      => 'ADMIN_DIR',  
                               filetype       => 3  
                              );  
       DBMS_DATAPUMP.set_parameter (handle      => h1,  
                                    NAME        => 'KEEP_MASTER',  
                                    VALUE       => 0  
                                   );  
       DBMS_DATAPUMP.metadata_filter (handle      => h1,  
                                      NAME        => myschema||'_EXPR',  
                                      VALUE       => 'IN('''||myschema||''')'  
                                     );  
       DBMS_DATAPUMP.add_file (handle         => h1,  
                               filename       => myschema||'_EXP_' || dt || '.DMP',  
                               DIRECTORY      => 'DATA_PUMP_DIR',  
                               filetype       => 1  
                              );  
       DBMS_DATAPUMP.set_parameter (handle      => h1,  
                                    NAME        => 'INCLUDE_METADATA',  
                                    VALUE       => 1  
                                   );  
       DBMS_DATAPUMP.set_parameter (handle      => h1,  
                                    NAME        => 'DATA_ACCESS_METHOD',  
                                    VALUE       => 'AUTOMATIC'  
                                   );  
       DBMS_DATAPUMP.set_parameter (handle      => h1,  
                                    NAME        => 'ESTIMATE',  
                                    VALUE       => 'BLOCKS'  
                                   );  
       DBMS_DATAPUMP.start_job (handle => h1, skip_current => 0, abort_step => 0);  
       DBMS_DATAPUMP.detach (handle => h1);  
    END;  
    /  
    
    
    

    Concerning

    Hello world!

    It's the simple code to call an appModule procedure

        public void callStoreprocedureWithoutInput() {
                String stmt = "BEGIN\n" +
                "  \"dbBackup\"();\n" +
                "--rollback; \n" +
                "END;";
                PreparedStatement st = null;
                try {
                    st = getDBTransaction().createPreparedStatement(stmt, 0);
                    st.executeUpdate();
                    st.close();
    
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
    

    Concerning

  • PL/SQL packages

    How to find a particular PL/SQL Packages for an Oracle database is installed or not?
    For example, I want to know UTL_MAIL package is installed or not?

    Oracle 10g R2

    Thank you
    Smith
    SQL> desc utl_mail
    PROCEDURE SEND
     Argument Name               Type               In/Out Default?
     ------------------------------ ----------------------- ------ --------
     SENDER                VARCHAR2          IN
     RECIPIENTS               VARCHAR2          IN
     CC                    VARCHAR2          IN     DEFAULT
     BCC                    VARCHAR2          IN     DEFAULT
     SUBJECT               VARCHAR2          IN     DEFAULT
     MESSAGE               VARCHAR2          IN     DEFAULT
     MIME_TYPE               VARCHAR2          IN     DEFAULT
     PRIORITY               BINARY_INTEGER          IN     DEFAULT
    PROCEDURE SEND_ATTACH_RAW
     Argument Name               Type               In/Out Default?
     ------------------------------ ----------------------- ------ --------
     SENDER                VARCHAR2          IN
     RECIPIENTS               VARCHAR2          IN
     CC                    VARCHAR2          IN     DEFAULT
     BCC                    VARCHAR2          IN     DEFAULT
     SUBJECT               VARCHAR2          IN     DEFAULT
     MESSAGE               VARCHAR2          IN     DEFAULT
     MIME_TYPE               VARCHAR2          IN     DEFAULT
     PRIORITY               BINARY_INTEGER          IN     DEFAULT
     ATTACHMENT               RAW               IN
     ATT_INLINE               BOOLEAN           IN     DEFAULT
     ATT_MIME_TYPE               VARCHAR2          IN     DEFAULT
     ATT_FILENAME               VARCHAR2          IN     DEFAULT
    PROCEDURE SEND_ATTACH_VARCHAR2
     Argument Name               Type               In/Out Default?
     ------------------------------ ----------------------- ------ --------
     SENDER                VARCHAR2          IN
     RECIPIENTS               VARCHAR2          IN
     CC                    VARCHAR2          IN     DEFAULT
     BCC                    VARCHAR2          IN     DEFAULT
     SUBJECT               VARCHAR2          IN     DEFAULT
     MESSAGE               VARCHAR2          IN     DEFAULT
     MIME_TYPE               VARCHAR2          IN     DEFAULT
     PRIORITY               BINARY_INTEGER          IN     DEFAULT
     ATTACHMENT               VARCHAR2          IN
     ATT_INLINE               BOOLEAN           IN     DEFAULT
     ATT_MIME_TYPE               VARCHAR2          IN     DEFAULT
     ATT_FILENAME               VARCHAR2          IN     DEFAULT
    
    SQL> 
    
  • How to expose a pl/sql procedure via slot shape of apex

    Hi gurus

    I have a form that is create from a procedure.

    I put the auth to pubic_user if it is available to the public.

    So now I need is to know how to find a way to imitate the button submit and draw the corresponding URL

    while I can expose my PL/SQL via a URL through apex procedure.

    I have attached a screenshot of my form

    Thx for all the help.

    Here's the URL of my pl/sql

    https://Apex.Oracle.com/pls/Apex/f?p=30141:1:5404118417577:

    and I look at the code with tool from dev on chrome for the Send button

    If only show.

    < a href = "javascript:apex.submit ('SUBMIT'); "class ="uButton"id ="B67074418713946955629"role ="button"> < span > Submit </span > < /a >

    So how do I know what return? Thx for all the help

    expose_plsql_via_apex.JPG

    Hi Kazuneric,

    kazuneric wrote:

    https://Apex.Oracle.com/pls/Apex/sdev.verify_user?p_user=Spring9111&P_Code=E7FB725F11A62BAFDCFB28C30653B72B

    I intend to pass the parameter in the URL for a user to click through

    You will find the following useful threads:

    Call a rendering of APEX (EPG) form of procedure within the error

    403 Forbidden error URL the PL/SQL procedure call

    I hope this helps!

    Kind regards

    Kiran

  • How to enable and disable a simultaneous program to a Pl/sql Package

    How to enable and disable a simultaneous program to a Pl/sql Package

    I just want to know why this not prvent not the program to run, it updates the backend for open State helped N, but not in Frontend.

    If you can advise on the same.

    Did you use the API to change the ENABLED_FLAG of 'Y' "N"? If so, you commit the changes? What happens if you ask this program contributing to the application (simultaneous > program > set), can you confirm that it is disabled then if this has been done since the backend? The program remains active after the deactivation of the application it?

    Thank you
    Hussein

Maybe you are looking for