Getting PLS-00302 component must be declared on callout to web service

- set up callout utility on source db
- created plsql package on target database:
SQL> desc pkgwssignature;
FUNCTION WSSIGNATUREDEV RETURNS NUMBER
Argument Name Type In/Out Default?
P_OPERATION VARCHAR2 IN
P_ID NUMBER IN
P_TOOLNAME VARCHAR2(16) IN
P_BASE_ID VARCHAR2(64) IN
P_BASE_SUBID VARCHAR2(64) IN
P_LABEL VARCHAR2(164) IN
P_NAME VARCHAR2(256) IN
P_DESCRIPTION VARCHAR2(4000) IN
P_ID_INCIDENTTYPE NUMBER IN
P_ID_MODULE NUMBER IN
P_ID_EVENTCLASS NUMBER IN
P_THREATLEVEL NUMBER IN
P_COMMENTS_INTERNAL VARCHAR2(4000) IN
P_PATCHINFO VARCHAR2(4000) IN
- Made the pacakge available as a web service
java -jar $ORACLE_HOME/webservices/lib/wsa.jar -plsqlAssemble -appName
wsSignatureDEV -sql pkgwsSignature -dataSource jdbc/OracleDS -dbConnection
jdbc:oracle:thin:@//10.0.203.161:1521/devseam -dbUser globals/##### -style rpc
-use encoded -jpubProp plsqlload -debug true
- Set up the source db as web service consumer:
jpub -u globals/##### -sysuser sys/#####
-url=jdbc:oracle:thin:@//10.0.203.161:1521/devocdb
-proxywsdl=http://10.0.203.161:8888/wsSignatureDEV/wsSignatureDEV?WSDL
-endpoint=http://10.0.203.161:8888/wsSignatureDEV/wsSignatureDEV -dir=tmp
SQL> desc jpub_plsql_wrapper;
FUNCTION WSSIGNATUREDEV RETURNS NUMBER
Argument Name Type In/Out Default?
POPERATION_ VARCHAR2 IN
PID_ NUMBER IN
PTOOLNAME_ VARCHAR2 IN
PBASEID_ VARCHAR2 IN
PBASESUBID_ VARCHAR2 IN
PLABEL_ VARCHAR2 IN
PNAME_ VARCHAR2 IN
PDESCRIPTION_ VARCHAR2 IN
PIDINCIDENTTYPE_ NUMBER IN
PIDMODULE_ NUMBER IN
PIDEVENTCLASS_ NUMBER IN
PTHREATLEVEL_ NUMBER IN
PCOMMENTSINTERNAL_ VARCHAR2 IN
PPATCHINFO_ VARCHAR2 IN
- try to call the web service:
select
jpub_plsql_wrapper.WSSIGNATUREDEV('INSERT',1,'test','test','test','test','test',
'test',1,null,1,1,'test','test')
from dual;
=> always getting following error:
ERROR at line 2:
ORA-29532: Java call terminated by uncaught Java exception:
java.rmi.RemoteException: java.rmi.ServerException:
start fault message:
Internal Server Error (caught exception while handling request:
java.rmi.RemoteException: java.sql.SQLException: ORA-06550: line 1, column 36:
PLS-00302: component 'WSSIGNATUREDEV' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
:end fault message
Can someome give me an idea where to look/ what I'm missing ? Thanks in advance

Try this ->
CREATE OR REPLACE PROCEDURE D_COMMANDS
IS
PRAGMA AUTONOMOUS_TRANSACTION;
     CURSOR CR_MJI_SIN
     IS
     SELECT sno, cno, iumber 
     FROM TEST1.m_mca;
     C_SUBNO VARCHAR2(20);
     C_CARDNO VARCHAR2(12);
     C_IMSI_NUMBER VARCHAR2(30);
     TRANSNO1 NUMBER(8);
BEGIN
  OPEN CR_SMS_SUB;
  LOOP
    FETCH CR_SMS_SUB INTO C_SUBNO,C_CARDNO,C_IMSI_NUMBER;
    EXIT WHEN CR_SMS_SUB%notfound;
    SELECT  spc_trans.NEXTVAL
    INTO TRANSNO1
    FROM DUAL;
    INSERT INTO EIM_COMMAND_RECORD(SUBSCR_TYPE, AREA, SUBNO, SERORDNO, TRANSNO, EXC, EXCSYSTEM,
                                   PORTNO, SPC_FUNCTION, APPDATE, NXTROUTINE, RETRANSMIT, TRANSSTATUS,
                                   EQUIPID, SOTYPE, CARDNO, CARD_TYPE)
    VALUES ( 'G', '0', C_SUBNO, NULL , TRANSNO1, 'GSM1', 'GSM1', '1', 'SERI', sysdate,
             'SPC001', 'Y', 10, 'MCA' , 66, C_CARDNO, 'PLI');
    INSERT INTO EIM_EXECUTED_COMMANDS ( TRANSNO, CMDNO, COMMAND, TIMEOUT)
    VALUES (TRANSNO1, 1, 'ADD MCA FOR '||C_SUBNO||' USING (IMSINO='||C_IMSI_NUMBER||')', 30);
  END LOOP;
  CLOSE CR_SMS_SUB;
  COMMIT;
EXCEPTION
WHEN OTHERS THEN
      raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
END;
BEGIN
  D_COMMANDS;
END;N.B.: Not Tested....
Regards.
Satyaki De.

Similar Messages

  • PLS-00302: component 'SET_NO_OUTLINES' must be declared

    Windows 2000 Server
    Oracle 10.2.0.1 upgraded from 9.2.0.1
    IMP-00058: ORACLE error 6550 encountered
    ORA-06550: line 1, column 33:
    PLS-00302: component 'SET_NO_OUTLINES' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    IMP-00000: Import terminated unsuccessfully
    Trying to import into a 10.2.0.1 database from a 9.2.0 database export.dmp file. Yes, I have seen the thread in this forum regarding the same error when doing an export but in this situation, I am using the import utility of the destination database (10.2.0.1) $ORACLE_HOME/ora102/bin and the db_block values are the same for both source and destination databases.
    I think this is caused by Oracle 10.2 want to use SET_NO_OUTLINES and 9.2 doesn't know what it is.
    Would appreciate any advise in fixing this situation.
    Thanks

    If you export with 9i utility to export and while importing 10g utiltiy to import you will get these compatability errors..
    Always use the export utility of the lower version of source and target database.
    if you still have any questions, Please Refer to Basic Compatibility Section in Metalilnk Note 132904.1
    Hope this helps
    Click here to learn [Oracle data pump export and import with examples.|http://www.oracleracexpert.com/2009/08/oracle-data-pump-exportimport.html]
    Click here for steps to [upgrade Oracle version from 10.2.0.x to 10.2.0.4|http://www.oracleracexpert.com/2009/10/oracle-version-upgrade-from-1020x-to.html]
    http://www.oracleracexpert.com

  • PLS-00302: component 'SET_NO_OUTLINES' must be declared on EXP

    Hey all,
    Not sure why I'm getting this. Any ideas where to start?
    C:\>exp userid=me/me@mine owner=me file=c:\temp\me.dmp
    Export: Release 10.2.0.1.0 - Production on Tue Aug 9 11:14:00 2005
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    EXP-00056: ORACLE error 6550 encountered
    ORA-06550: line 1, column 41:
    PLS-00302: component 'SET_NO_OUTLINES' must be declared
    ORA-06550: line 1, column 15:
    PL/SQL: Statement ignored
    EXP-00000: Export terminated unsuccessfully
    C:\>sqlplus me/me@mine
    SQL*Plus: Release 10.2.0.1.0 - Production on Tue Aug 9 11:16:02 2005
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options

    Hello Everyone,
    The mentioned issue is due to the fact that you already have several oracle versions installed on your system ( 8i, 9i, 10g, 11g). The issue happens basically whenever you are trying to exp where the command runs from ORACLE_HOME so if your ORACLE_HOME is set to ORACLE 10 for example and you are exporting a database on 8i the issue occurs and hence to solve it you just need to go into cmd then go to oracle 8i HOME which basically will be under c:\oracle\8i\bin and run the exp command again. It will work smoothly.
    All the best
    SEMOS

  • PLS-00302: component 'DISABLE_OLAP_POLICY' must be declared

    Database: 11.2.0.4.0
    OLAP Analytic Workspace
    11.2.0.4.0
    Oracle OLAP API
    11.2.0.4.0
    OLAP Catalog
    11.2.0.4.0
    I am receiving the following error when trying to delete a dimension in AWM 12.1.0.1.0A.
    java.sql.SQLException: ORA-06550: line 1, column 20:
    PLS-00302: component 'DISABLE_OLAP_POLICY' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    at oracle.olap.awm.util.ORASUtil.reportException(ORASUtil.java:64)
    at oracle.olap.awm.util.ORASUtil.disableOLAPDSP(ORASUtil.java:659)
    at oracle.olap.awm.dataobject.olapi.UDimensionDO.delete(UDimensionDO.java:905)
    at oracle.olap.awm.navigator.node.DeleteThread.run(DeleteThread.java:283)
    I don't get this error with AWM 11.2.0.4.0A. I take it this means we shouldn't be using AWM 12 on a 11 database even though the AWM 12 login window specifies a cube type of: OLAP 11g/12c?

    You have encountered a known AwM bug 18616303 in AwM 12.1.0.1.0A. The workaround as you have
    already determined is to use 11.2.0.4.0A patch of AwM when working against an 11.2 Oracle rdbms server when
    you need to drop a dimension, cube or analytic workspace.
    This bug is currently fixed in the yet unreleased AwM 12.1.0.2.0. I expect it will be fixed shortly in an
    12.1.0.1.0B patch of AwM. Sorry for the inconvenience.
    I will update this thread when the 12.1.0.1.0B patch of AwM is available for download off of OTN with
    the link to the download.

  • Data Template - PLS-00302: component 'P_PARAMETER' must be declared

    All,
    I'm new to the Data Template. I'm following the User's Guide example and examples from this Forum. I can't get a parameter to work. I'm creating a Data Template because I need to execute a PL/SQL call before the report runs.
    My Data Template:
    <?xml version="1.0" encoding="UTF-8" ?>
    <dataTemplate name="DATA_TEMPLATE" version="1.0" dataSourceRef="dev" defaultPackage="TEST_JC_PKG">
    <dataTrigger name="beforeReport" source="TEST_JC_PKG.record_report_usage('beforeReport_trigger')"/>
    <parameters>
    <parameter name="p_parameter" datatype="character" defaultValue="X"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="ROW">
    <![CDATA[SELECT dummy FROM dual WHERE :p_parameter = 'X']]>
    </sqlStatement>
    </dataQuery>
    </dataTemplate>
    I get this error when I click the "View" button in BI Pub:
    ORA-06550: line 2, column 13:
    PLS-00302: component 'P_PARAMETER' must be declared
    ORA-06550: line 2, column 1:
    PL/SQL: Statement ignored
    xdo:
    <?xml version = '1.0' encoding = 'utf-8'?>
    <report version="1.1" xmlns="http://xmlns.oracle.com/oxp/xmlp" defaultDataSourceRef="dev">
    <title>beforeReport_trigger_manual_dataTemplate</title>
    <properties>
    <property name="showControls" value="true"/>
    <property name="online" value="true"/>
    <property name="parameterColumns" value="3"/>
    <property name="openLinkInNewWindow" value="true"/>
    <property name="autoRun" value="true"/>
    </properties>
    <dataModel defaultDataSet="Q1">
    <dataSet id="Q1">
    <dataTemplate name="DATA_TEMPLATE" dataSourceRef="dev" defaultPackage="TEST_JC_PKG">
         <dataTrigger name="beforeReport" source="TEST_JC_PKG.record_report_usage('beforeReport_trigger_manual_dataTemplate')"/>
         <parameters>
         <parameter name="p_parameter" datatype="character" defaultValue="X"/>
         </parameters>
    <dataQuery>
    <sqlStatement name="ROW">
    <![CDATA[SELECT dummy FROM dual WHERE :p_parameter = 'X']]>
    </sqlStatement>
    </dataQuery>
    </dataTemplate>
    </dataSet>
    </dataModel>
    <valueSets/>
    <parameters/>
    <templates default="detail">
    <template label="detail" type="rtf" url="beforeReport_trigger_manual_dataTemplate.rtf"/>
    </templates>
    <burst enabled="false"/>
    </report>

    Hi,
    This is a known bug when using DataTemplates, but it has only just started with 10.1.3.3. You will need to put p_parameter as a global variable in you default package, and you will also need to create a parameter called p_parameter inside BIP. You can set this parameter to being hidden if you do not want Users to be able to change it.
    See Tim Dexter's blog on this for more information:
    http://blogs.oracle.com/xmlpublisher/2007/10/18#a614
    Hope this helps you.
    Regards,
    Cj

  • Help me resolve this---- PLS-00302: component 'STRING' must be declared

    Can anyone please guide me in resolving the below error
    The statement below is in the package spec.
    TYPE rec IS RECORD ( proj AV_ACTIVITY.proj%TYPE, act AV_ACTIVITY.act%TYPE );
    TYPE object_table_type is TABLE OF rec INDEX BY BINARY_INTEGER;
    temp_as_rn object_table_type;
    Then i am wrting a cursor in the package body and trying to access the component...but it throws up the
    PLS-00302: component 'PROJ' must be declared
    The below code is in the package body
    CURSOR c2_memo_attr(proj_temp varchar2,act_temp varchar2) is
    select distinct
    dup.proj,
    dup.proj_ds as proj_ds,
    dup.act,
    dup.act_ds as act_ds,
    initcap(to_char(ac.eid, 'fmMonth DDth, YYYY')),
    initcap(to_char(ac.lid, 'fmMonth DDth, YYYY')),
    initcap(to_char(ac.act_due_date, 'fmMonth DDth, YYYY')),
    dup.uc03 as Study_no
    from dup_resource_status dup, av_activity ac
    where ( ac.proj = proj_temp
    and ac.act = act_temp)
    and dup.proj = ac.proj
    and dup.act = ac.act
    and ac.ver = 0;
    for c2_memo_attr_rec in c2_memo_attr(temp_as_rn.proj,temp_as_rn.act)
    loop
    text := 'abcd......'
         end loop;

    Cursor loops are obsolete technology? Hmm, not sure I agree with you there.
    Yes, sometimes they are an indication of slow-by-slow processing that could be better done in one dml statement, or with bulk collections, etc, but sometimes that's not the case - unless I'm missing something.
    For example, I'm writing a procedure to take care of deleting partitions on a periodic basis, and I'm taking into consideration the case where there might be more than one partition to delete. So I'm using a cursor to identify the partitions to delete, and using a cursor for loop to loop round and execute the dynamic drop partition statement.
    Since there's never going to be that many partitions, this isn't going to be particularly unperformant, and so I don't see a problem with using the cursor for loop construction for it.
    I'd like to hear more on why you think it's obsolete technology in reference to my specific example - and also what you think I should be using.

  • PLS-00302: component 'REGISTER_PROPAGATOR' must be declared

    Hi,
    The following error occured, while running the repadmin user creation script.
    Can any one help in rectifying this?
    BEGIN dbms_defer_sys.register_propagator('REPADMIN'); END;
    ERROR at line 1:
    ORA-06550: line 1, column 22:
    PLS-00302: component 'REGISTER_PROPAGATOR' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    SQL> exit
    Thnk u,
    Rgds,
    Maha.
    null

    How were you connected to the database when you ran the DBMS_DEFER_SYS procedure? as SYSTEM?
    Also, check to make sure that the DBMS_DEFER_SYS package and package body exist, are valid, and have synoyms created for them. Query DBA_OBJECTS for this information.

  • Adpatch fails with PLS-00302: component 'INITIALIZE_WITH_CALENDAR' must be

    Hi Guru's....
    This is my first post.I am a new dba.
    while applying adpatch , I am getting the below error.Please help. this is on r12.
    About to do IREP processing...
    Attempting to process IREP files ...
    AutoPatch error:
    Error in adusnapRunAdPostPatch() while executing statement
    AutoPatch error:
    ORA-06550: line 1, column 16:
    PLS-00302: component 'INITIALIZE_WITH_CALENDAR' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    ORA-06512: at "APPS.FND_GLOBAL", line 413
    ORA-06512: at "APPS.FND_GLOBAL", line 2272
    ORA-06512: at "APPS.FND_GLOBAL", line 2546
    ORA-06512: at "APPS.FND_GLOBAL", line 2698
    ORA-06512: at "APPS.FND_GLOBAL", line 2636
    ORA-06512: at "APPS.FND_ADPATCH", line 53
    ORA-06512: at line 3
    Error while processing IREP files, continuing...
    Done IREP processing.
    Thank you.....

    Hi Ronald and Hussein,
    Thank you for your response.
    There are no invalids in my environment.
    I am applying R12.1.X: FORMS INTEROPERABILITY PATCH FOR 10.1.2.3 -- 13001977
    >>
    OS:
    SunOS sandebus03 5.10 Generic_147440-01 sun4v sparc SUNW,T5240
    >>
    RELEASE_NAME
    12.1.2
    DB:11.2.0.3
    >>
    SQL> desc fnd_date
    FUNCTION ADJUST_DATETIME RETURNS DATE
    Argument Name Type In/Out Default?
    DATE_TIME DATE IN
    FROM_TZ VARCHAR2 IN
    TO_TZ VARCHAR2 IN
    FUNCTION CANONICAL_TO_DATE RETURNS DATE
    Argument Name Type In/Out Default?
    CANONICAL VARCHAR2 IN
    FUNCTION CHARDATE_TO_DATE RETURNS DATE
    Argument Name Type In/Out Default?
    CHARDATE VARCHAR2 IN
    FUNCTION CHARDT_TO_DATE RETURNS DATE
    Argument Name Type In/Out Default?
    CHARDT VARCHAR2 IN
    FUNCTION DATE_TO_CANONICAL RETURNS VARCHAR2
    Argument Name Type In/Out Default?
    DATEVAL DATE IN
    FUNCTION DATE_TO_CHARDATE RETURNS VARCHAR2
    Argument Name Type In/Out Default?
    DATEVAL DATE IN
    FUNCTION DATE_TO_CHARDT RETURNS VARCHAR2
    Argument Name Type In/Out Default?
    DATEVAL DATE IN
    FUNCTION DATE_TO_DISPLAYDATE RETURNS VARCHAR2
    Argument Name Type In/Out Default?
    DATEVAL DATE IN
    FUNCTION DATE_TO_DISPLAYDT RETURNS VARCHAR2
    Argument Name Type In/Out Default?
    DATEVAL DATE IN
    FUNCTION DATE_TO_DISPLAYDT RETURNS VARCHAR2
    Argument Name Type In/Out Default?
    DATEVAL DATE IN
    NEW_CLIENT_TZ_CODE VARCHAR2 IN
    FUNCTION DISPLAYDATE_TO_DATE RETURNS DATE
    Argument Name Type In/Out Default?
    CHARDATE VARCHAR2 IN
    FUNCTION DISPLAYDT_TO_DATE RETURNS DATE
    Argument Name Type In/Out Default?
    CHARDT VARCHAR2 IN
    FUNCTION DISPLAYDT_TO_DATE RETURNS DATE
    Argument Name Type In/Out Default?
    CHARDT VARCHAR2 IN
    NEW_CLIENT_TZ_CODE VARCHAR2 IN
    PROCEDURE INITIALIZE
    Argument Name Type In/Out Default?
    P_USER_MASK VARCHAR2 IN
    P_USERDT_MASK VARCHAR2 IN DEFAULT
    FUNCTION STRING_TO_CANONICAL RETURNS VARCHAR2
    Argument Name Type In/Out Default?
    P_STRING VARCHAR2 IN
    P_MASK VARCHAR2 IN
    FUNCTION STRING_TO_DATE RETURNS DATE
    Argument Name Type In/Out Default?
    P_STRING VARCHAR2 IN
    P_MASK VARCHAR2 IN
    PROCEDURE TEST
    SQL>
    >>
    SQL> column rcsid format a35 word
    break on name skip 1
    SQL> select name,type,substr(text,instr(text,'$Header: ')+9,
    instr(text,' ',instr(text,'$Header: '),4)
    SQL> 2 3 - instr(text,'$Header: ') - 9) rcsid
    4 from all_source
    5 where text like '%$Header: %'
    6 and name like upper('%%FND_DATE%%') escape '\'
    7 order by name
    8 , type
    9 /
    undefine 1
    clear breaks
    NAME TYPE RCSID
    FND_DATE PACKAGE AFDDATES.pls 115.11 2003/10/28
    PACKAGE BODY AFDDATEB.pls 120.1 2005/07/02
    FND_DATE_TZ PACKAGE AFDATTZS.pls 115.4 2003/10/28
    PACKAGE BODY AFDATTZB.pls 115.4 2003/10/28
    SQL> SQL> breaks cleared
    SQL>

  • Error(586,27): PLS-00302: component 'EDR_RPT_GEN_TMP_WEIGHT_RANGES' must be

    Hi ,
    In my procedure ,i'm calling another stored proc as below
    edr_rpt_generic_package.edr_rpt_gen_tmp_weight_ranges
        in_report_parameter_id
      );while compiling it throws up error as "component must be declared".
    could anyone help me to solve this?
    thanks in advance.

    hi all i got the answer.
    thx
    Edited by: user10641405 on Oct 16, 2009 2:45 PM

  • How to get the list of values for a dynamic parameter using Web Services SDK?

    <p>I am struggling to get the list of values for a dynamic parameter of a report.</p><p>I am using Java Web Services SDK ... I tried to use PromptInfo.getLOV().getValues() method but it does not work.</p><p>First of all ... is this possible (to get the list of values for a dynamic param) using Web Services?</p><p>Second of all, if this is possible, how should I do it ... it seems it works fine when running the report from CMC. It asks for DB logon info and after that it provides a list of values.</p><p>Thx </p>

    <p>Your assumption is correct. We are trying to get the LOVs from the Crystal Report. I was not aware that this is not supported by Web Services SDK.</p><p>We used Web Services SDK to integrated the Crystal Reports in our web application. We implemented some basic actions for reports: schedule, view instances, run ad-hoc reports.</p><p>We encountered this problem when trying to run/schedule reports with dynamic parameters (a list of values from DB). We were unable to get the LOVs.</p><p>Please let me know if you can think of an alternative to look at.</p><p>Thanks a lot,</p><p>Catalin </p>

  • PLS-00201 identifier must be declared

    Hi All,
    Can any one please help me regarding this error.
    I am getting the PLS-00201 identifier tree_sorting must be declared at the line " Tree_Sorting(1, 0); ".
    if i comment the " Tree_Sorting(1, 0); " at pkgfc_gi.v_cphase := '01-13'; and uncomment the " Tree_Sorting(1, 0); " at pkgfc_gi.v_cphase := '01-09' then the procedure is compiling successfully; This is my stored procedure.
    Please help me in solving this.
    CREATE OR REPLACE PACKAGE BODY FA_Main AS
    /*-------------------------------- Calcul_FA -------------------------------*/
    FUNCTION Calcul_FA (
    p_client_group IN tfc_stc_client_groups.s_client_group%TYPE DEFAULT NULL,
    p_admin_group IN tfc_stc_clients.c_admin_group %TYPE DEFAULT NULL,
    p_client IN tfc_stc_clients.s_client %TYPE DEFAULT NULL,
    p_report_group IN tfc_stc_report_groups.g_classification%TYPE DEFAULT NULL,
    p_contract IN tfc_stc_contracts.s_contract %TYPE DEFAULT NULL,
    p_fa_typ IN tfc_prm_fa_master.c_fa_typ %TYPE DEFAULT NULL,
    p_fa IN tfc_prm_fa_master.s_fa %TYPE DEFAULT NULL,
    p_beg_period IN DATE DEFAULT NULL,
    p_end_period IN DATE DEFAULT NULL,
    p_y_all_ok IN VARCHAR2 DEFAULT 'Y',
    p_y_estimate IN VARCHAR2 DEFAULT 'N',
    p_est_date IN DATE DEFAULT NULL)
    RETURN NUMBER IS
    ----------------------------------------------------------------------- CURSEURS
    -- List of FA to calculate --
    CURSOR c_fa IS
    SELECT pfm.s_fa s_fa, pfm.c_fa_typ c_fa_typ, sct.s_contract s_contract, srg.g_classification g_classification,
    scl.s_client s_client, scl.c_admin_group c_admin_group, scg.s_client_group s_client_group
    FROM tfc_prm_fa_master pfm, tfc_stc_contracts sct, tfc_stc_clients scl, tfc_stc_client_groups scg, tfc_stc_report_groups srg
    WHERE pfm.c_fa_structure_typ = 'PARM'
    AND ((p_fa IS NOT NULL AND pfm.s_fa = p_fa ) OR p_fa IS NULL)
    AND ((p_fa_typ IS NOT NULL AND pfm.c_fa_typ = p_fa_typ ) OR p_fa_typ IS NULL)
    AND ((p_contract IS NOT NULL AND sct.s_contract = p_contract ) OR p_contract IS NULL)
    AND ((p_report_group IS NOT NULL AND srg.g_classification LIKE p_report_group||'%') OR p_report_group IS NULL)
    AND ((p_client IS NOT NULL AND scl.s_client = p_client ) OR p_client IS NULL)
    AND ((p_admin_group IS NOT NULL AND scl.c_admin_group = p_admin_group ) OR p_admin_group IS NULL)
    AND ((p_client_group IS NOT NULL AND scg.s_client_group = p_client_group ) OR p_client_group IS NULL)
    AND (NVL(p_client_group,NVL(p_client,NVL(p_contract, p_fa))) IS NOT NULL OR p_admin_group IS NOT NULL OR p_report_group IS NOT NULL)
    AND (p_beg_period IS NULL OR ((p_beg_period IS NOT NULL AND pfm.d_first_calculation IS NOT NULL AND p_beg_period >= pfm.d_first_calculation) OR pfm.d_first_calculation IS NULL))
    AND (p_end_period IS NULL OR ((p_end_period IS NOT NULL AND pfm.d_end_calculation IS NOT NULL AND p_end_period <= pfm.d_end_calculation) OR pfm.d_end_calculation IS NULL) OR (p_end_period IS NOT NULL AND sct.d_inception <= p_end_period ))
    AND sct.s_contract = pfm.fk_contract
    AND scl.s_client = sct.fk_client
    AND scg.s_client_group (+)= scl.fk_client_group
    AND srg.s_report_group (+)= sct.fk_report_group
    AND pfm.y_fee_to_calculate = 'Y'
    AND sct.c_contract_status = 'ACTIVE'
    AND ROWNUM < 2;
    BEGIN
    COMMIT;
    IF pkgfc_faed.v_y_estimate = 'Y' THEN
    INSERT INTO tfc_log_application_master (
    s_log, l_log,
    d_t_begin_task,
    c_application_task, c_task_status,
    g_key_0, g_key_1,
    g_key_2, g_key_3,
    g_key_4, g_key_5,
    g_key_6, g_key_7,
    g_key_8, g_key_9)
    VALUES (
    pkgfc_faed.v_s_log, v_l_log, SysDate,
    'ESTIMATE', 'RUNNING',
    TRIM(TO_CHAR(p_client_group)), p_admin_group,
    TRIM(TO_CHAR(p_client)), p_report_group,
    TRIM(TO_CHAR(p_contract)), p_fa_typ,
    TRIM(TO_CHAR(p_fa)), TO_CHAR(p_beg_period,'DD/MM/YYYY'),
    TO_CHAR(p_end_period,'DD/MM/YYYY'), v_y_all_ok);
    ELSE
    INSERT INTO tfc_log_application_master (
    s_log, l_log,
    d_t_begin_task,
    c_application_task, c_task_status,
    g_key_0, g_key_1,
    g_key_2, g_key_3,
    g_key_4, g_key_5,
    g_key_6, g_key_7,
    g_key_8, g_key_9)
    VALUES (
    pkgfc_faed.v_s_log, v_l_log,
    SysDate,
    'CALCULATION', 'RUNNING',
    TRIM(TO_CHAR(p_client_group)), p_admin_group,
    TRIM(TO_CHAR(p_client)), p_report_group,
    TRIM(TO_CHAR(p_contract)), p_fa_typ,
    TRIM(TO_CHAR(p_fa)), TO_CHAR(p_beg_period,'DD/MM/YYYY'),
    TO_CHAR(p_end_period,'DD/MM/YYYY'), v_y_all_ok);
    END IF;
    v_return := pkgfc_faed.v_s_log;
    COMMIT;
    -- Loop on all Fee/Alloc to calculate --
    -- Added by Santhakumar
    BEGIN
    INSERT INTO tmp_prm_fa_details(
    SELECT USERENV('SESSIONID') SESSION_ID,
    LEVEL CUR_LEVEL,
    (CASE WHEN (SELECT MAX(LEVEL)
    FROM tfc_prm_fa_details fad2
    WHERE fad2.fk_fa = fad1.fk_fa
    START WITH fad2.s_fa_detail=fad1.s_fa_detail
    CONNECT BY PRIOR fad2.s_fa_detail = fad2.fk_fa_detail_upper_level) > 1
    THEN LEVEL + 1
    ELSE LEVEL
    END) NEXT_LEVEL,
    fad1.s_fa_detail,
    fad1.fk_fee_alloc_detail,
    fad1.fk_fa,
    fad1.l_fa_detail,
    fad1.g_fa_4calculation,
    fad1.fk_fa_detail_upper_level,
    fad1.fk_third_party,
    fad1.g_consolidation_rule,
    fad1.c_fa_calculation_typ,
    fad1.fk_aggregation_rule,
    fad1.fk_scale,
    fad1.g_scale_band_unit,
    fad1.g_value,
    fad1.n_detail_order,
    fad1.y_ref_amount_equal_total_aum,
    fad1.c_validation_status,
    fad1.g_val_by,
    fad1.d_t_val,
    fad1.g_ins_by,
    fad1.d_t_ins,
    fad1.g_upd_by,
    fad1.d_t_upd
    FROM tfc_prm_fa_details fad1
    START WITH fad1.fk_fa_detail_upper_level IS NULL
    CONNECT BY PRIOR fad1.s_fa_detail = fad1.fk_fa_detail_upper_level
    END;
    -- Added by Santhakumar
    pkgfc_gi.v_cphase := '00-02';
    FOR v_fa IN c_fa LOOP
    pkgfc_gi.v_cphase := '01-08';
    DECLARE
    -- Tree Sorting Recursive Procedure --
    PROCEDURE Tree_Sorting (p_level IN NUMBER,p_fk_fa_detail_upper_level IN NUMBER) IS
    -- Cursor to retrieve data at current level --
    CURSOR c_tfd IS
    SELECT *
    FROM tfc_tmp_fa_details tfd
    WHERE tfd.fk_fa = v_fa.s_fa
    AND tfd.session_id = USERENV('SESSIONID')
    AND tfd.cur_level = p_level
    AND tfd.fk_fa_detail_upper_level = p_fk_fa_detail_upper_level
    ORDER BY tfd.n_detail_order ASC;
    Error_Found_in_Tree_Sorting EXCEPTION;
    -------------------------------------------------------------------------- BEGIN
    BEGIN
    FOR v_tfd IN c_tfd LOOP
    pkgfc_dts.put_nline('Level : '||TO_CHAR(v_tfd.cur_level)||' - '||v_tfd.g_fa_4calculation||' - '||TO_CHAR(p_fk_fa_detail_upper_level));
    pkgfc_gi.v_cphase := '01-14';
    pkgfc_faed.v_nb_fa_det := pkgfc_faed.v_nb_fa_det + 1;
    pkgfc_faed.v_fa_details(pkgfc_faed.v_nb_fa_det) := v_tfd;
    pkgfc_faed.v_nb_max_level := GREATEST(pkgfc_faed.v_nb_max_level,
    pkgfc_faed.v_fa_details(pkgfc_faed.v_nb_fa_det).cur_level);
    -- Break the link with Root Record --
    IF (pkgfc_faed.v_fa_details(pkgfc_faed.v_nb_fa_det).fk_fa_detail_upper_level = 0) THEN
    pkgfc_faed.v_fa_details(pkgfc_faed.v_nb_fa_det).fk_fa_detail_upper_level := NULL;
    END IF;
    IF (v_tfd.cur_level < v_tfd.next_level) THEN
    pkgfc_gi.v_cphase := '01-15';
    Tree_Sorting(v_tfd.next_level, v_tfd.s_fa_detail);
    END IF;
    IF (pkgfc_gi.v_cretour <> '0') THEN
    RAISE Error_Found_in_Tree_Sorting;
    END IF;
    END LOOP;
    ---------------------------------------------------------------------- EXCEPTION
    EXCEPTION
    WHEN Error_Found_in_Tree_Sorting THEN
    IF (c_tfd%ISOPEN ) THEN CLOSE c_tfd ; END IF;
    WHEN OTHERS THEN
    IF (c_tfd%ISOPEN ) THEN CLOSE c_tfd ; END IF;
    pkgfc_gi.v_cretour := '9'; -- When Others Error
    pkgfc_gi.v_cproc := 'FA_Engine_Main.Tree_Sorting';
    pkgfc_gi.v_mess := SUBSTR(SQLERRM(SQLCODE), 1, 255);
    pkgfc_dts.put_nline('Err : '||pkgfc_gi.v_cretour||' - '||pkgfc_gi.v_cphase||' - '||pkgfc_gi.v_cproc||' - '||pkgfc_gi.v_mess);
    ---------------------------------------------------------------------------- END
    END Tree_Sorting;
    PROCEDURE Autonomous_0108 IS
    PRAGMA AUTONOMOUS_TRANSACTION; -- Permit Commit/Rollback independently of the current transaction
    BEGIN
    -- Clean Temporary Table --
    pkgfc_gi.v_cphase := '01-09';
    DELETE tfc_tmp_fa_details WHERE session_id NOT IN (SELECT DISTINCT audsid FROM all_sessions);
    COMMIT;
    --Tree_Sorting(1, 0);
    END Autonomous_0108;
    BEGIN
    Autonomous_0108;
    END;
    -- Get FA Details from Prm_Fa_Details --
    pkgfc_gi.v_cphase := '01-10';
    select count(1) into v_num from tfc_tmp_fa_details;
    Dbms_output.put_line('first' || v_num);
    Dbms_output.put_line('Session Id --> ' || USERENV('SESSIONID'));
    INSERT INTO tfc_tmp_fa_details (SELECT * FROM tmp_prm_fa_details WHERE fk_fa = v_fa.s_fa);
    -- Insert a Root Record for Tree Sorting purpose --
    pkgfc_gi.v_cphase := '01-11';
    INSERT INTO tfc_tmp_fa_details (
    session_id, cur_level, next_level,
    s_fa_detail, fk_fa, fk_fa_detail_upper_level)
    VALUES (
    USERENV('SESSIONID'), 0, 1,
    0, v_fa.s_fa, NULL);
    -- Link the Level 1 with Root Level (0) --
    pkgfc_gi.v_cphase := '01-12';
    UPDATE tfc_tmp_fa_details
    SET fk_fa_detail_upper_level = NVL(fk_fa_detail_upper_level, 0)
    WHERE fk_fa = v_fa.s_fa
    AND s_fa_detail > 0
    AND session_id = USERENV('SESSIONID');
    -- Sort FA Details Tree according n_detail_order field --
    pkgfc_gi.v_cphase := '01-13';
    Tree_Sorting(1, 0);
    -- Clean Temporary Table --
    pkgfc_gi.v_cphase := '01-16';
    WHEN OTHERS THEN
    dbms_output.put_line('OTHERS');
    pkgfc_gi.eev_cur := v_eev_cur;
    v_loop_ret := -1;
    IF (c_fa%ISOPEN ) THEN CLOSE c_fa ; END IF;
    IF (c_cli%ISOPEN) THEN CLOSE c_cli; END IF;
    IF (c_ctr%ISOPEN) THEN CLOSE c_ctr; END IF;
    IF (c_fam%ISOPEN) THEN CLOSE c_fam; END IF;
    IF (c_cad%ISOPEN) THEN CLOSE c_cad; END IF;
    IF (c_fad%ISOPEN) THEN CLOSE c_fad; END IF;
    pkgfc_gi.v_cretour := '9'; -- When Others Error
    pkgfc_gi.v_cproc := 'FA_Engine_Main.Calcul_FA';
    pkgfc_gi.v_mess := SUBSTR(SQLERRM(SQLCODE), 1, 255);
    pkgfc_dts.put_nline('Err : '||pkgfc_gi.v_cretour||' - '||pkgfc_gi.v_cphase||' - '||pkgfc_gi.v_cproc||' - '||pkgfc_gi.v_mess);
    -------------------------------------------------------------------- END
    END;
    END LOOP;
    return(v_return);
    END Calcul_FA;
    END FA_Main;
    /

    It looks to me like procedure 'tree_sorting' is declared as a local procedure within a nested BEGIN .. END block (which spans lines 288 - 438). You cannot call this procedure outside that block, it is out of scope - you would have to move it to a higher scope.
    It would help if you posted something remotely readable in future.

  • Getting from an xml file to an XMLBean argument to web service

    I'm a newbie here, so I apologize for the lack of understanding, but the docs are
    not helping me at all here.
    I'm trying to write a simple SOAP client to call into a JWS (document style) generated
    in Workshop and deployed in 8.1 SP2. The Web Service was in turn generated from
    a Java Control with one method. That method took as an argument an XMLBean type.
    After deploying my EAR, I downloaded the proxy jar and am trying to use that
    to develop a client outside workshop to call into my web service.
    ServiceTest_Impl proxy = new ServiceTest_Impl("<pathtoWSDL>");
    ServiceTestSoap soap = proxy.getServiceTestSoap();
    On that soap variable, I have a method:
    validateLoanApp(LOANAPPLICATION arg)
    LOANAPPLICATION exists as a class at com.foo.BAR.LOANAPPLICATION, and there's
    a LOANAPPLICATIONCodec in the same package, and a com.foo.BAR.holders.LOANAPPLICATIONHolder
    Now I have a file on disk that is an XML document. I'd like to read that file,
    convert it to a LOANAPPLICATIOAN, and pass it to my method. I cannot for the
    life of me figure out how to do this. The LOANAPPLICAITON class just has getters
    and setters, and I don't want to have to go through the document and hand parse
    it; there must be a way to do it automatically.
    I see the deserialize method, but that is expecting a DeserializationContext,
    which doesn't seem to have a constructor I can find. Any help here would be appreciated!
    Thanks.

    Michael, thanks for the quick reply. And crud. Unfortunately, this document is
    huge and immensely complicated, so I was hoping to avoid using the getters and
    setters for it by populating the Javabeans in some automatic way. I guess I'll
    have to just send the doc as a String, and parse it in the client using the Factory.
    Thanks!
    "Michael Wooten" <[email protected]> wrote:
    >
    Hi Brian,
    No, you won't have to "hand-parse" it, but something must :-)
    Those Codec classes are JavaBeans, not XMLBeans, so you won't find a
    method like
    parse(String xml), on them. If this arg type is really an XMLBean type,
    you should
    have a .jar file in the APP-INF/lib director (under the directory for
    your Workshop
    app), which has it (a LOANAPPLICATIONDocument class) in it. You should
    be able
    to use:
    LOANAPPLICATIONDocument mydoc = LOANAPPLICATIONDocument.Factory.parse(new
    File("filename.xml"));
    to parse (and validate) the file for you. Then you can just use the "getters"
    on the mydoc object, with the "setters" on the LOANAPPLICATION class
    from the
    proxy .jar, to get the results you want.
    For the record, it has been brought to the attention of the BEA engineers
    (by
    myself, and others), that there is a real desire to just use XMLBeans
    with the
    XXX_Impl and XXXSoap classes in the client proxy .jar, and they are working
    on
    this for a future release :-)
    Regards,
    Mike Wooten
    "Brian Sensale" <[email protected]> wrote:
    I'm a newbie here, so I apologize for the lack of understanding, but
    the docs are
    not helping me at all here.
    I'm trying to write a simple SOAP client to call into a JWS (document
    style) generated
    in Workshop and deployed in 8.1 SP2. The Web Service was in turn generated
    from
    a Java Control with one method. That method took as an argument anXMLBean
    type.
    After deploying my EAR, I downloaded the proxy jar and am trying to
    use that
    to develop a client outside workshop to call into my web service.
    ServiceTest_Impl proxy = new ServiceTest_Impl("<pathtoWSDL>");
    ServiceTestSoap soap = proxy.getServiceTestSoap();
    On that soap variable, I have a method:
    validateLoanApp(LOANAPPLICATION arg)
    LOANAPPLICATION exists as a class at com.foo.BAR.LOANAPPLICATION, and
    there's
    a LOANAPPLICATIONCodec in the same package, and a com.foo.BAR.holders.LOANAPPLICATIONHolder
    Now I have a file on disk that is an XML document. I'd like to read
    that file,
    convert it to a LOANAPPLICATIOAN, and pass it to my method. I cannot
    for the
    life of me figure out how to do this. The LOANAPPLICAITON class just
    has getters
    and setters, and I don't want to have to go through the document and
    hand parse
    it; there must be a way to do it automatically.
    I see the deserialize method, but that is expecting a DeserializationContext,
    which doesn't seem to have a constructor I can find. Any help herewould
    be appreciated!
    Thanks.

  • Getting the Request Object in the EJB published as a Web Service

    Hi experts,
    I have a Portal Service that call a BAPI in a back-end system with the Connector Framework. I have a Portal Component that calls the Portal Service, passing the Locale (request.getLocale()) and the User (request.getUser()) object. It's work fine!
    I need to call the Portal Service by an EJB that is published as a Web Service. The connection between the EJB and Portal Service is ok, but I don't know how to get the Locale and the User object in the EJB to pass to the Portal Service.
    Is possible to get the request object from the HTTP SOAP Request?
    Thanks,
    Gustavo

    Hey Alice!
    The Feature Hashing module is actually a wrapper around
    Vowpal Wabbit's implementation of the murmurhash. Thus, it takes text in, and produces 2^N new features based on the text, where N is the bitsize specified in the module. These features (and not the original text!) should be used during model training.
    The Learner will then keep track of these features behind the scenes.
    When you publish your web service and these features are recomputed for new input text (same N), they are used as the features for scoring.
    Does that make sense?
    Regards,
    AK

  • Getting 415 Unsupported Media Type error when calling a windows web service

    I have a BPEL process that invokes a windows web service. This process is working currently on the production system. When trying to run the process in a new test clustered environment, I'm getting the error below (bolded).
    We're using 10.1.3.3 Oracle Application Server and BPEL. Please advise on what config files might need to be tweaked to fix this.
    InvokeWindowsLoggingWebService(faulted)
    [2010/04/16 17:26:35] Faulted while invoking operation "WriteLog" on provider "WindowsLoggingWebService". less
    -<messages>
    -<input>
    -<InvokeWindowsLoggingWebService_InputVariable>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="parameters">
    -<WriteLog xmlns="http://tempuri.org/">
    <FileAbsolutePath>
    R:\CV & RM\upload_from_test.log
    </FileAbsolutePath>
    <Content>
    ||*************************************************************************************|Append to log file 2010-04-16T16:57:08-04:00|*************************************************************************************||START DATE: 2010-04-16T16:57:08-04:00|END DATE: 2010-04-16T17:25:58-04:00|COUNT: 106|TRANSFER OF FILES TO TAS SUCCESSFUL
    </Content>
    <NewLineDelimiter>
    |
    </NewLineDelimiter>
    </WriteLog>
    </part>
    </InvokeWindowsLoggingWebService_InputVariable>
    </input>
    -<fault>
    -<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="summary">
    <summary>
    exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 415 Unsupported Media Type
    </summary>
    </part>
    </remoteFault>
    </fault>
    </messages>
    [2010/04/16 17:26:35] "{http://schemas.oracle.com/bpel/extension}remoteFault" has been thrown. less
    -<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="summary">
    <summary>
    exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 415 Unsupported Media Type
    </summary>
    </part>
    </remoteFault>

    I generated a proxy service in jdev and used the same parms as was done on OAS...
    <WriteLog xmlns="http://tempuri.org/">
    <FileAbsolutePath>
    R:\CV & RM\upload_from_test.log
    </FileAbsolutePath>
    <Content>
    ||*************************************************************************************|Append to log file 2010-04-16T16:57:08-04:00|*************************************************************************************||START DATE: 2010-04-16T16:57:08-04:00|END DATE: 2010-04-16T17:25:58-04:00|COUNT: 106|TRANSFER OF FILES TO TAS SUCCESSFUL
    </Content>
    <NewLineDelimiter>
    |
    </NewLineDelimiter>
    </WriteLog>
    and was able to call the service fine and it returned successful. Just seems to be an issue on the server when I execute it from there.

  • Is there a way to get a dump of the raw request data of a web service call?

    Hello experts,
    on our SAP machine we provide a web service based on a normal SAP function module. The service is working fine, but one of the external systems (web service clients) does have a problem when using non-ASCII characters within the request XML data.
    Ok, so I thought I check whats going on in soapUI, but there the same request works fine, even with the non-ASCII characters. So it seems soapUI can correctly use the encoding as it should be, whereas the faulty client can't.
    Hence I wanted to check the payload trace in SOAMANGER, but unfortunately there is no trace if this error occured. It seems the error occurs in SAP even before any trace can be made (at least via SOAMANGER).
    So my question is: Do I have any other option to get a 1:1 copy of the whole request the client is sending to the web service on the SAP machine? Or is the only option we have to use a tcpdump on the OS level of the SAP machine?
    Thanks in advance for any ideas and help!
    Kind regards, Matthias

    Hi Matthias,
    You can try using the ICF Recorder in TCode SICF, steps below:
    [http://help.sap.com/saphelp_nw70/helpdata/en/12/adc54044ed7b2de10000000a155106/frameset.htm]
    That should at least catch the entire client request (1:1) before the error occurs. Remember to de-activate the recorder after you're done. There's also an option to activate a ICF trace using the similar menu path, this also should be de-activated once you're completed.
    Regarding the SOAMANAGER traces, it needs to be activated before anything is logged there. That might be why you're not seeing anything there.
    Regards, Trevor

Maybe you are looking for

  • Cannot print PDF files on shared Laserjet Pro P1102w over network.

    Having an issue with a P1102w not printing PDF files when sent to it over the network. Printer is shared on a networked PC via USB (wireless enabled but not used) and listed in the Active Directory so anyone can find it and print, However, if any com

  • Problems viewing the edited raw file in bridge

    Up until recently my Adobe Bridge has been working beautifully. I opened up a job to edit in Adobe Bridge that are all shot in RAW with my 5D Mark II camera. I am working on a MacBook Pro (10.4.11). When I bring a photo into Camera Raw (by pressing a

  • CONNE_IMPORT_WRONG_FIELD_TYPE with exception CX_SY_IMPORT_MISMATCH_ERROR

    Hi, I'm implementing IS-Retail in our landscape. After the EhP4 update I've activated the SAP retail framework and when I'm trying to execute the program RSBRAN03 to change the short text after importing the latest update as per the nore 897714, I'm

  • Usage Tracking  of Hyperion Financial Reporting

    I'm on Version 11.1.2. can anyone tell me is there a way to track reports usage in Hyperion Financial Reporting? Thanks in Advance RSG Edited by: RSG on May 23, 2011 10:30 AM Edited by: RSG on May 23, 2011 10:31 AM

  • Loading GeoTiff in Oracle

    Hi, I am trying to load a Raster GeoTiff (has location tags, but extension is .tif) in Oracle Spatial 11.2 version. The things I did are : *1)* --Creating Georaster table CREATE TABLE city_images (image_id NUMBER, image_description VARCHAR2(50), imag