Import Java Classes - How manipulate Java List in Oracle Form

Good afternoon,
I call a Web Service from Oracle Application Server 10g Forms Services but the object returned by the method is a java list. I created a stub/skeleton with JDeveloper and the communication between WebService and Oracle form works fine. The problem is how to desencapsulate the list within ORA_JAVA. I imported java.util.List it does not solve my problem.
Method called: public List DecryptToken(Context context, String token) throws Exception
This list will have in List.get(0) -> Context object
List.get(1) -> String
List get(2) -> String
List get(3) -> Param []
Thanks for your help.
best regards,
TT

hi,
try java stored procedure loop ur java list and get data in "type table" of requried data type
and use it as u desired.
piyush

Similar Messages

  • How to pass a "object" as a prameter from one java class to another java

    hi experts, I want to know "How to pass and get object as a parameter from one java class to another java class". I tried follwoing code just check it and give suggetions..
    import Budget.src.qrybean;
    public class ConfirmBillPDF extends HttpServlet
    qrybean db = new qrybean();
    SimplePDFTable pdfTable = new SimplePDFTable();
    pdfTable.simplePDFTableShow("2010","2011","1","2","1","131","102");
    }Here i want to pass db with simplePDFTableShow method. simplePDFTableShow is in another java class. So how can i do this.
    And also i want to know, how this obj will get.
    please help me.
    Edited by: andy_surya on Jul 14, 2010 7:51 AM

    Hi andy_surya
    what is this i am not understand
    pdfTable.simplePDFTableShow("2010","2011","1","2","1","131","102");but i am try to solve your problem try this
    qrybean db = new qrybean();
    SimplePDFTable pdfTable = new SimplePDFTable();
    pdfTable.simplePDFTableShow(db);and access like this in SimplePDFtable class update your method
    simplePDFTable(qrybean tempDB)
    // write your code
    }

  • How to call a Java class from another java class ??

    Hi ..... can somebody plz tell me
    How to call a Java Class from another Java Class assuming both in the same Package??
    I want to call the entire Java Class  (not any specific method only........I want all the functionalities of that class)
    Please provide me some slotuions!!
    Waiting for some fast replies!!
    Regards
    Smita Mohanty

    Hi Smita,
    you just need to create an object of that class,thats it. Then you will be able to execute each and every method.
    e.g.
    you have developed A.java and B.java, both are in same package.
    in implementaion of B.java
    class B
                A obj = new A();
                 //to access A's methods
                 A.method();
                // to access A's variable
                //either
               A.variable= value.
               //or
               A.setvariable() or A.getvariable()

  • How to decode  java class file to java file

    hi
    how to decode java class file into java file
    regards
    kedar

    Its really.......... really BAD.
    Write ur own code... or use open source code..
    Its a bad practice...
    however i am telling u ..there is DJ java decompiler.
    but mind it there are Obfuscator also....like codeshield and others
    take care...
    Alok

  • Java class how to load a JavaFX class?

    I want to start a JavaFX application from a Java class,how can implement it?
    Thank you so much!

    I want to start a JavaFX application from a Java class,how can implement it?
    Thank you so much!

  • [b]What is content Provider java Class & How is it useful?.[/b]

    Hi,
    I would like to know more details on What is content Provider java Class & How is it useful?. Appreciate precise answers on this.
    Thank you,
    Renga
    Email : [email protected]

    Portal Server allows multiple sources of information, applications, and services to be displayed within a single page or set of pages that the user can view in a browser. The page in which the content is included is known as the desktop. The various sources of content are displayed in rectangular areas arranged in rows and columns within the desktop called channels. A Java class, called a provider, is responsible for converting the content in a file, or the output of an application or service into the proper format for a channel. A number of providers are shipped with the Portal Server including a bookmark provider, an application provider, and a notes provider. As the desktop is imaged, each provider is queried in turn for the content of its associated channel.

  • Do we have INCLUDE=JAVA CLASS AND INCLUDE=JAVA SOURCE OPTION IN DATA PUMP

    Hi All ,
    Can any one please tell me ,
    how to import only java class and java source from datapump export file.
    Include=java class or include=java source is not working ..
    Thanks in advance,
    Sanjeev.

    Duplicate post.
    datapump include option.
    Lock this thread

  • How to enable tracing in Oracle Forms 10g

    Hi Friends,
    I am interested to trace my running oracle forms application. When I googled it, I got below useful information. But theory and practical has mismatch somewhere, I am not able to create the trace file(s).
    **************************** Some Notes ****************************************************
    How to Enable Tracing in Oracle Forms 10g
    Enable Tracing from the url by adding the following to your forms url:
    &record=forms&tracegroup=0-98,100-199 (note: item 99 causes some issues, so we are skipping it here. See the Oracle documenation for a description of what is being traced for each item.)
    for example
    [http://machine:port/forms/frmservlet?config=myConfig&record=forms&tracegroup=0-98,100-199]
    You will get a trace file in the following location:
    %ORACLE_HOME%\forms\trace\forms_xxx.trc where xxx is the forms session ID.
    Open dos window and do the following:
    set ORACLE_HOME=
    set PATH=%ORACLE_HOME%\jdk\bin;%PATH%
    set CLASSPATH=%ORACLE_HOME%\jdbc\lib\classes12.zip;%ORACLE_HOME%\forms\java\frmxlate.jar
    java oracle.forms.diagnostics.Xlate datafile=%ORACLE_HOME%\forms\trace\forms_xxx.trc outputfile=%ORACLE_HOME%\forms\trace\html_xxx.html outputclass=WriteOutHTML
    you will get a file html_xxx.html in your %ORACLE_HOME%\forms\trace directory.
    I need information beyond this to make this practically successful.
    Thanks in advance,
    Amol Naik

    Hello,
    <p>Did you read this paper ?</p>
    Francois

  • How to call Reports in oracle forms 10g

    Dear All,
    How to call Reports in oracle forms 10g.
    I am using Oracle Forms 10g Reports 10g and Database 10 and and Operating system Windows XP.
    Please give me the Solution.
    Thanks and Regards,
    Faziludeen

    Hi Omkar,
    Please check the following code.
    DECLARE
      repid REPORT_OBJECT;
      v_rep VARCHAR2(100);
      rep_status VARCHAR2(20);
      plid ParamList;
    BEGIN
      plid := Get_parameter_List('tmp');
      IF NOT Id_Null(plid) THEN
      Destroy_parameter_List( plid );
      END IF;
      plid := Create_parameter_List('tmp');
      add_parameter(plid,'p_parameter',text_parameter,to_char(:POLICY.POLICY_NO));
      Add_parameter(plid, 'PARAMFORM', TEXT_parameter, 'NO');
      repid := FIND_REPORT_OBJECT('POL_REP');
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no');
      v_rep := RUN_REPORT_OBJECT(repid,plid);
      rep_status := REPORT_OBJECT_STATUS(v_rep);
      WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
      LOOP
      rep_status := report_object_status(v_rep);
      END LOOP;
      WEB.SHOW_DOCUMENT('http://'||'LENOVO-428E9E41'||'8889'||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?
      '||'server=prod_report_server&P_parameter='||:POLICY.POLICY_NO||
      '&paramform=no');
    END;
    I am used to Start the Report sever   'Rwserver Server=prod_Report_Server Start'
    OracleAS Report Services
    Version :-   10.1.2.0.2
    Name    :-   prod_report_server
    Status  :-   Server is Shutting down
    Jobs in Queue  0
    Active Engines  0
    I got the Following Error when I trying to run the Report
    FRM-41211: Integration error:SSL failure running another product
    Thanks and Regards,
    Faziludeen

  • How to use css in oracle forms

    Hello,       I am using oracle forms 11g with weblogic server 10.3.5 at windows 7.I have to use CSS in oracle forms.i have tried to search it but no profit.please some one else tell me that how can use css in oracle forms. Thnak You regards aaditya

    Hi
    As Francois pointed out Oracle forms has nothing to do with html based technology. The way you can get the equivalent effect of creating consistancy in the way your objects are displayed is by creating a set of items you want and alter their apperance and behaviour and place them into object libraries (one library should do the trick).  From there you subclass all of you forms items off these libraries.
    Regards
    Quintin

  • How to build wizard in Oracle Forms?

    How to build wizard in Oracle Forms? Is it possible only in JDeveloper?
    Regards
    Rajesh Kumar

    What do you mean here - you want to extend the Forms Builder with your own wizard, or you want to build a Forms Application with a Wizard Style interface?
    If it's the First then you can't, if it's the second then check out the 9i demos there is a re-usable wizard component that shows you how to do it.

  • Creating Web Service from Java Class-How to eliminate nillable="true"

    Does anyone know how to eliminate the attribute, nillable="true", from the element tags which describe the parameters in the WSDL created when creating a web service from a Java Class? It does this only for the string types. Is there something I need to set when creating the web service or before creating the web service? Or the only way is to modify this WSDL then recreate the web service from the WSDL.
    example part of wsdl:
    this is in the <types> tag:
    <complexType name="getData">
    <sequence>
    <element name="schema" type="string" nillable="true"/>
    <element name="table_or_view_name" type="string" nillable="true"/>
    </sequence>
    </complexType>
    <complexType name="getDataResponse">
    <sequence>
    <element name="result" type="string" nillable="true"/>
    </sequence>
    </complexType>

    I did do this and I got the following error when deploying to the Stand-alone OC4j:
    Operation failed with error:
    Error compiling
    :D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBOperationsWSApp-DBData-WS\WebServices: Error instantiating compiler: webservice artifact generation failed :oracle.j2ee.ws.common.tools.api.ValidationException : Exception declaration mismatch between Implementation: dbdatapackage.DBDataOperations and Interface: dbdatapackage.DBDataWS. Impl class Method: getData declares exceptions not declared by the interface (java.lang.Exception)
    I am quite sure what it is saying. It generated the code for the Interface: dbdatapackage.DVDataWS. Impl class. Why would it not do it right? What expection is it complaining about? java.lang.Exception?

  • WSDL generated from java class - how to include headers?

    I am using the servicegen ant task and generating a web service based on a java class. I would like to include a username and password in the soap header and read that info using a handler. I am able to get that working, but how do I get the auto-generated WSDL to include the username/password header information? Is there something that I have to do in the handler so that this information is included in the WSDL?
    Thanks,
    Mike

    I did do this and I got the following error when deploying to the Stand-alone OC4j:
    Operation failed with error:
    Error compiling
    :D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBOperationsWSApp-DBData-WS\WebServices: Error instantiating compiler: webservice artifact generation failed :oracle.j2ee.ws.common.tools.api.ValidationException : Exception declaration mismatch between Implementation: dbdatapackage.DBDataOperations and Interface: dbdatapackage.DBDataWS. Impl class Method: getData declares exceptions not declared by the interface (java.lang.Exception)
    I am quite sure what it is saying. It generated the code for the Interface: dbdatapackage.DVDataWS. Impl class. Why would it not do it right? What expection is it complaining about? java.lang.Exception?

  • How to call a java class placed in java top?

    Hi,
    Can anyone please let me know how we can call the java class placed in the java top using PL/SQL?
    Thanks,
    Bharat

    Bharat ,
    Please refer this link , you can call java static method using sql function
    http://www.stanford.edu/dept/itss/docs/oracle/10g/java.101/b12021/invokeapp.htm
    Keerthi

  • How to decomplie a java class file when java application is running/launch?

    I have a simple java application with some components being displayed, now i need to get the components instance names that are been created in that java application. How do i do that?
    Eg: Button b1 = new button();
    now how to write a java application to decompile this class file & return me the button instance ie "b1".

    I think you wanna do two different things:
    1. find out which objects were created at runtime.
    2. decompile class file.
    I'm no so sure why.
    have you tried insrospecting the class using reflection ?
    Here is a code snippet that prints class field names.
    try{
      Class c = Class.forName("MyClass");
      java.lang.reflect.Field[]  f=    c.getFields();
      for (int i = 0;i<f.length; i++)
           System.out.println(f.getName());
    catch(Exception e){ }
    Regards
    Joseph.

Maybe you are looking for

  • The Vista Guide

    Vista Guide For The Dumbies! Note I managed to recover the old copy of this I had. But all the changes I made were lost due to the reformat. So I will get eveything back up to date ASAP! Introduction This is a guide for advice with installing, and tr

  • When editing a photo with external editor I can't open that photo in viewer

    When I edit a photo in an external program like NIK Collection after I save the photo I can't open any pictures anymore in Aperture. Mosaic and grid view is no problem but in full Viewer nothing happens. When I restart Aperture I can, untill the next

  • Manual Adjust

    It says in the Help section: "To make manual color adjustments by changing a photo's saturation, temperature, or tint, click the Adjust button in the Edit toolbar and drag the Saturation, Temperature, and Tint controls". I do not see an "Adjust butto

  • VZ Edge a New way to Purchase a Phone

    Have a Look at this New way to Purchase a Verizon phone it was talked about not to Long ago and Will Go Full Live Aug 25). Take a Look and Comment what you think about this new way to Get a Phone) It's Launch will be close to the same time as When Mo

  • Why won't my iPad sync with iTunes?

    It is stuck on the last step. i have restarted the computer and the iPad several times. it says "waiting for changes to be applied" and step"7 of 7" OR "step 8 of 8"...at the bottom, it shows in blue my audio capacity, however the iPad says there is