How  to use  refcursor in a package

i want to use refcursor in a package
but when i am trying to declare a refcursor variable ,
I get no error but the refcursor does not return anything .
why is this happenning ?
I also read that we cannot define cursor variables in a paclage .
Then how to go about it ?
regards
shubhajit

Since Oracle 7.3 REF CURSORS have been available which allow recordsets to be returned from stored procedures, functions and packages. The example below uses a ref cursor to return a subset of the records in the EMP table.
First, a package definition is needed to hold the ref cursor type:
CREATE OR REPLACE PACKAGE Types AS
TYPE cursor_type IS REF CURSOR;
END Types;
Note. In Oracle9i the SYS_REFCURSOR type has been added making this first step unnecessary. If you are using Oracle9i or later simply ignore this first package and replace any references to Types.cursor_type with SYS_REFCURSOR.
Next a procedure is defined to use the ref cursor:
CREATE OR REPLACE
PROCEDURE GetEmpRS (p_deptno IN emp.deptno%TYPE,
p_recordset OUT Types.cursor_type) AS
BEGIN
OPEN p_recordset FOR
SELECT ename,
empno,
deptno
FROM emp
WHERE deptno = p_deptno
ORDER BY ename;
END GetEmpRS;
The resulting cursor can be referenced from PL/SQL as follows:
SET SERVEROUTPUT ON SIZE 1000000
DECLARE
v_cursor Types.cursor_type;
v_ename emp.ename%TYPE;
v_empno emp.empno%TYPE;
v_deptno emp.deptno%TYPE;
BEGIN
GetEmpRS (p_deptno => 30,
p_recordset => v_cursor);
LOOP
FETCH v_cursor
INTO v_ename, v_empno, v_deptno;
EXIT WHEN v_cursor%NOTFOUND;
DBMS_OUTPUT.PUT_LINE(v_ename || ' | ' || v_empno || ' | ' || v_deptno);
END LOOP;
CLOSE v_cursor;
END;
In addition the cursor can be used as an ADO Recordset:
Dim conn, cmd, rs
Set conn = Server.CreateObject("adodb.connection")
conn.Open "DSN=TSH1;UID=scott;PWD=tiger"
Set cmd = Server.CreateObject ("ADODB.Command")
Set cmd.ActiveConnection = conn
cmd.CommandText = "GetEmpRS"
cmd.CommandType = 4 'adCmdStoredProc
Dim param1
Set param1 = cmd.CreateParameter ("deptno", adInteger, adParamInput)
cmd.Parameters.Append param1
param1.Value = 30
Set rs = cmd.Execute
Do Until rs.BOF Or rs.EOF
-- Do something
rs.MoveNext
Loop
rs.Close
conn.Close
Set rs = nothing
Set param1 = nothing
Set cmd = nothing
Set conn = nothing
The cursor can also be referenced as a Java ResultSet:
import java.sql.*;
import oracle.jdbc.*;
public class TestResultSet {
public TestResultSet() {
try {
DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
Connection conn = DriverManager.getConnection("jdbc:oracle:oci:@w2k1", "scott", "tiger");
CallableStatement stmt = conn.prepareCall("BEGIN GetEmpRS(?, ?); END;");
stmt.setInt(1, 30); // DEPTNO
stmt.registerOutParameter(2, OracleTypes.CURSOR); //REF CURSOR
stmt.execute();
ResultSet rs = ((OracleCallableStatement)stmt).getCursor(2);
while (rs.next()) {
System.out.println(rs.getString("ename") + ":" + rs.getString("empno") + ":" + rs.getString("deptno"));
rs.close();
rs = null;
stmt.close();
stmt = null;
conn.close();
conn = null;
catch (SQLException e) {
System.out.println(e.getLocalizedMessage());
public static void main (String[] args) {
new TestResultSet();
Hope this helps. Regards
Srini

Similar Messages

  • How to use a native library packaged in a connector

    Hi,
    I know how to package a native library into a connector in my app server. But I don't quite know how to use it. Suppose I provide a wrapper java class for the native library, can I use the java class directly in my EJB (since the classloader of the RA is the parent of the EJB classloader) or I have to issue an outbound call?
    Thanks,
    Haitao

    Thanks Vidyut! You've answered my question.
    I placed the jar file in the $CATALINA_HOME/shared/lib directory. But where should I place the taglib TLD file? And how should I reference it in web.xml?
    Currently, my web.xml is as follows and it doesn't work.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <taglib>
    <taglib-uri>http://abc.com</taglib-uri>
    <taglib-location>c:\Tomcat\shared\lib\mytags-taglib.tld</taglib-location>
    </taglib>
    </web-app>
    Thanks again!
    Joe

  • How to use oracle.sql.* package?(in nls_charset12.zip)

    is there anyone could tell me how to use the method in this package? for i want to convert a character set from the database (solaris)default character set to the client(win2000) while storing data into ResultSet.
    or anyway that could chnage it would be appricate.
    thanks in advice,

    Hello Gaurav,
    First off, not sure why you are calling
    call.addNamedArgument("JOB_ID", "JOB_ID_I");
    call.addNamedArgumentValue("JOB_ID", jobId);
    You should call the first statement to indicate you will be adding in a "JOB_ID_I" argument to the query, or the second statement to add the value directly to the call, but not both. Calling both indicates your procedure is expecting two parameters called "JOB_ID" and you will get an exception if you do not define the "JOB_ID_I" argument on the query and pass in a parameter for it.
    TopLink does not currently create Oracle objects such as Structs and VARRAYs for you from java objects - atleast not for stored procedures arguments, as it does not know how or what to convert them to. You will need to create the Oracle object type yourself, and pass it into the query. I have not tested it, but it would look something like:
    UnitOfWork unitOfWork = getUnitOfWork();
    StoredProcedureCall call = new StoredProcedureCall();
    call.setProcedureName("DSM_JOB_PKG.INSERT_JOB_RUN_LOG");
    String jobId = jobIdItr.next().toString();
    call.addNamedArgumentValue("JOB_ID_I", jobId);
    Timestamp sysdate = BeanConvertUtil.getCurrentTimestamp();
    call.addNamedArgumentValue("ORDER_DATE_I", sysdate);
    call.addNamedArgumentValue("USER_ID_I", userId);
    Connection con = getSession().getAccessor().getConnection();
    oracle.sql.ArrayDescriptor anArrayDescriptor = new oracle.sql.ArrayDescriptor("GENERIC_STRING_TYPE",con);
    oracle.sql.ARRAY anARRAYin = new ARRAY(anArrayDescriptor, con, paramTypeIds );
    call.addNamedArgumentValue("JOB_PARAM_TYPE_IDS_I", anARRAYin );
    oracle.sql.ARRAY anARRAYin2 = new ARRAY(anArrayDescriptor, con, paramValues);
    call.addNamedArgumentValue("JOB_PARAM_VALUES_I", anARRAYin2 );
    session.executeSelectingCall(call);

  • ?How to use the Adobe Cloud Packager to install Acrobat

    I am trying to install Adobe Acrobat using the Adobe Cloud Packager. I can create the Package but the installation fails.

    Hi LizAuchincloss,
    Please install Acrobat from the Exception folder using exception deployer command line:
    The following command is used to deploy Acrobat for Windows. (You will recollect that Acrobat for Windows should be deployed before deploying the main package.) The --mode=pre option specifies that Exceptions Deployer Application is run before deploying the main package. The installLanguage is specified as en_US (US English)—this option is also mandatory while deploying Acrobat for Windows.
    ExceptionDeployer --workflow=install --mode=pre --installLangauge=en_US
    Please refer the mentioned kb: http://helpx.adobe.com/creative-cloud/packager/using-exceptions-deployer.html .
    Regards,
    Romit Sinha

  • How to use odiSqlUnload in a package?

    I'm trying to use the odiSqlUnload tool in a package.
    And I am specifying the following as the parameters:
    Target File Name With Path - /home/testlocation/test_filename
    Connection Information - <%=odiRef.getInfo("SRC_JAVA_DRIVER")%>
    <%=odiRef.getInfo("SRC_JAVA_URL")%>
    Username - <%=odiRef.getInfo("SRC_USER_NAME")%>
    Password - <%=odiRef.getInfo("SRC_ENCODED_PASS")%>
    SqL file location on server - /home/testlocation/test.sql
    Am I missing anything here, as when I execute the package, I get the following error:
    com.sunopsis.sql.c:
         at com.sunopsis.sql.SnpsConnection.a(SnpsConnection.java)
         at com.sunopsis.sql.SnpsConnection.t(SnpsConnection.java)
         at com.sunopsis.sql.SnpsConnection.connect(SnpsConnection.java)
         at com.sunopsis.sql.SnpsQuery.updateExecStatement(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.executeQuery(SnpsQuery.java)
         at com.sunopsis.dwg.tools.SqlUnload.actionExecute(SqlUnload.java)
         at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.h.y(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Thread.java:595).
    Can anyone please help me with this. Would really appreciate.

    HI,
    When you user this command is not possible to use the api's <%=odiRef.getInfo("SRC_JAVA_DRIVER")%>, <%=odiRef.getInfo("SRC_JAVA_URL")%>, <%=odiRef.getInfo("SRC_USER_NAME")%> and<%=odiRef.getInfo("SRC_ENCODED_PASS")%> once there is no Logical Schema declared.
    From Logical Schema-->Physical Schema-->Data Server copy the string for all required parameters.
    OR
    1) Create a procedure and one step with the technology and Logical Schema that you need.
    2) put the following code at Target Tab
    <@
    String vUser="<%=odiRef.getInfo("DEST_USER_NAME")%>";
    String vPass=odiRef.getInfo("DEST_PASS");
    String vJDBC="<%=odiRef.getInfo("SRC_JAVA_DRIVER")%>";
    String vURL="<%=odiRef.getInfo("DEST_JAVA_URL")%>";
    @>
    then you can:
    or create one more step calling the odiSqlUnload as Sunopsis API technology
    or call it as next step at the package (in this case do not forget of put the procedure inside the package and set it to first step)
    In both ways you will have something like the following in the API call:
    Target File Name With Path - /home/testlocation/test_filename
    Connection Information - <@=vJDBC@> <@=vURL@>
    Username - <@=vUser@>
    Password - <@=vPass@>
    SqL file location on server - /home/testlocation/test.sql
    Does it make any sense to you?
    Cezar Santos
    Message was edited by:
    Cezar Santos
    Message was edited by:
    Cezar Santos

  • How to use RefCursor to return millions of records

    I have a stored Procedure which returns a RefCursor. Following is the query which is used to open the RefCursor. this query gets executed in 7 seconds and it returns 13,00,000 records. It takes hours to show them in the dotnet application.
    SELECT      
         CO.COMPANY_ID AS COMPANY_ID,      
         PCH.HOLDING_ID AS HOLDING_ID,           
         CO.NAME AS FIRM_NAME,
         PCC.NAME AS "Sub-Account Name",
         PCC.PORTFOLIO_CLASS_NAME AS "Sub-Account Type",
         H.COUPON_RATE AS COUPON_RATE,
         NVL(TO_CHAR(H.COUPON_RATE),F_GETCODE(H.COUPON_STRUCTURE_ID,'CPN')) AS COUPON_FIELD,      
         TO_CHAR(H.MATURITY_DATE,'DD-MON-YYYY') AS MATURITY_DATE,      
         CO.ALPHA_NAME AS ALPHA_NAME,      
         H.ISSUER_NAME AS ISSUER_NAME,      
         H.ISSUER_ALPHA_NAME AS ISSUER_ALPHA_NAME,      
         PCH.FI_PAR_AMOUNT AS "Currency Par (000s)",      
         PCH.FI_NET_CHANGE AS "Net Change (000s)",      
         PCH.FI_BONDS_HELD AS "# of Bonds Held",      
         TO_CHAR(CO.REPORT_DATE,'DD-MON-YYYY') AS REPORT_DATE,      
         H.NAME AS ISSUEDESC,          
         H.ISSUER_COUNTRY_NAME AS ISSUER_COUNTRY_NAME,      
         F_GETCODE(H.ISSUER_STATE_ID,'S') AS ISSUER_STATE_NAME,      
         TO_CHAR(H.ISSUE_DATE,'DD-MON-YYYY') AS ISSUE_DATE,      
         H.LEAD_MANAGER AS LEAD_MANAGER,      
         H.CURRENCY_CODE AS CURRENCY_CODE,      
         PCH.MARKET_SECTOR_CODE AS MARKET_SECTOR_CODE,      
         H.CUSIP AS CUSIP,      
         H.ISIN AS ISIN,      
         H.ISSUER_TICKER_SYMBOL_TEXT AS "Primary Exchange Equity Ticker",      
         H.PLEDGE_NAME AS "Instrument/Pledge",      
         H.COLLATERAL_NAME AS "Collateral/Purpose",      
         H.ISSUER_CREDIT_SECTOR_NAME AS "Issuer Credit Sector",      
         H.COUPON_STRUCTURE_NAME AS "Coupon Structure",      
         H.SP_RATING_NAME AS "SP Rating",      
         H.MOODYS_RATING_NAME AS "Moodys Rating",      
         H.FITCH_RATING_NAME AS "Fitch Rating" ,      
         P.HONORIFIC_PREFIX_CODE AS HONORIFIC,      
         P.FIRST_NAME AS FIRST_NAME,      
         P.MIDDLE_INITIAL AS MIDDLE_INITIAL,      
         P.LAST_NAME AS LAST_NAME,      
         P.DISPLAY_FUNCTION_NAME AS Title,      
         P.DIRECT_DIAL_PHONE AS "DIRECT DIAL PHONE",      
         D.PHONE_CODE AS "Country Phone Code",      
         P.EMAIL_ID AS "Email Address",      
         CO.MAIL_ADDRESS_LINE1 AS MAIL_ADDRESS_LINE1,      
         CO.MAIL_ADDRESS_LINE2 AS MAIL_ADDRESS_LINE2,      
         CO.MAIL_CITY_NAME AS MAIL_CITY_NAME,      
         CO.MAIL_STATE_CODE AS MAIL_STATE_NAME,      
         CO.MAIL_ZIP_CODE as "Firm Postal Code",      
         CO.LOC_ADDRESS_LINE1 AS LOC_ADDRESS_LINE1,      
         CO.LOC_ADDRESS_LINE2 AS LOC_ADDRESS_LINE2,      
         CO.LOC_CITY_NAME AS LOC_CITY_NAME,      
         CO.LOC_STATE_CODE AS LOC_STATE_NAME,      
         CO.LOC_ZIP_CODE,      
         CO.LOC_COUNTRY_NAME AS LOC_COUNTRY_NAME,
         C.PHONE_CODE AS "Firm Country Phone Code",      
         CO.PHONE_NUMBER AS PHONE,      
         CO.FAX_NUMBER AS FAXNO,           
    /*     COUNT(PCH.COMPANY_ID) OVER (PARTITION BY PCH.COMPANY_ID ORDER BY PCH.COMPANY_ID) AS ROW_CNT,      
         COUNT(DISTINCT CO.COMPANY_ID) OVER() AS FIRMCOUNT,      
         COUNT(DISTINCT CO.COMPANY_ID) OVER() AS TOTAL_RECORDS,
         COUNT(DISTINCT PCC.PORTFOLIO_COMPANY_CUSTOMER_ID) OVER(PARTITION BY CO.COMPANY_ID) AS FUNDCOUNT,
         COUNT(DISTINCT PCC.PORTFOLIO_COMPANY_CUSTOMER_ID) OVER() AS FUNDPORTFOLIOCOUNT,
         COUNT(DISTINCT H.HOLDING_ID) OVER(PARTITION BY CO.COMPANY_ID,PCC.PORTFOLIO_COMPANY_CUSTOMER_ID) AS ISSUECOUNT,
         PCC.PRIVATE_PORTFOLIO_FLAG,      
         PCC.TOP_TEN_HOLDINGS_FLAG ,
    TO_CHAR(SYSDATE,'DD/MM/YYYY HH:MM:SS') TI
    FROM      
         PORTFOLIO_COMPANY_HOLDING PCH,      
         HOLDING H,      
         COMPANY CO,      
         PORTFOLIO_COMPANY_CUSTOMER PCC,      
         PERSON P ,      
         PERSON_PORTFOLIO PP,      
         COUNTRY C,      
         COUNTRY D
    WHERE      
         PCH.HOLDING_ID=H.HOLDING_ID
         AND PCH.COMPANY_ID=CO.COMPANY_ID
         AND PCH.PORTFOLIO_COMPANY_CUSTOMER_ID=PCC.PORTFOLIO_COMPANY_CUSTOMER_ID
         AND P.EMPLOYEE_ID = PP.EMPLOYEE_ID
         AND CO.COMPANY_ID=PP.COMPANY_ID
         AND CO.COMPANY_ID=PCC.COMPANY_ID
         AND PCC.PORTFOLIO_COMPANY_CUSTOMER_ID = PP.PORTFOLIO_COMPANY_CUSTOMER_ID
         AND     C.COUNTRY_ID = CO.LOC_COUNTRY_ID
         AND D.COUNTRY_ID= P.COMPANY_LOC_COUNTRY_ID
         AND     P.DISPLAY_COMPANY_CONTACT_FLAG = 'Y'
         AND PCH.HOLDING_ID IN ( SELECT HOLDING.HOLDING_ID FROM MV_BOND HOLDING WHERE HOLDING.LANGUAGE_ID=2 AND INSTR(PATTNO_STRING,',96,')>0
    --          AND (((HOLDING.MARKET_SECTOR_ID) IN (8209) )
              AND (((HOLDING.CURRENCY_ID) IN (10000003) )
         )

    i ran the query in TOAD it got executed in 7 seconds. but when i used the same query in stored procedure it was taking lot of time to complete pushing the data to the application. Need your help to tune the query.

  • How to pass refcursor as input parameter to a procedure in a package

    Hi there
    Please can anybody explain me with an small example for
    passing a procedure output(output should be a refcursor) and pass that refcursor values into a procedure in a package as input parameter and this value i want to use as join condition in my procedure ie. ename=refcursor.ename like this).That my exact question is how to pass refcursor values as in parameter
    Pls suggest me with some example statements
    thanks in advance
    prasanth a.s.

    I am giving you a generic example.
    SQL> variable v_out REFCURSOR
    SQL> r
      1  DECLARE
      2  PROCEDURE TEST1(p_out OUT SYS_REFCURSOR) IS
      3  BEGIN
      4  OPEN p_out FOR SELECT EMPNO,ENAME FROM SCOTT.EMP;
      5  END;
      6  PROCEDURE TEST2(p_in IN SYS_REFCURSOR) IS
      7  v_empno NUMBER(10);
      8  v_ename VARCHAR2(30);
      9  BEGIN
    10  LOOP
    11  FETCH p_in INTO v_empno,v_ename;
    12  EXIT WHEN p_in%NOTFOUND;
    13  DBMS_OUTPUT.PUT_LINE(v_ename);
    14  END LOOP;
    15  NULL;
    16  END;
    17  BEGIN
    18     TEST1(:v_out);
    19     TEST2(:v_out);
    20* END;
    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER
    ADAMS
    JAMES
    FORD
    MILLER
    PL/SQL procedure successfully completed.

  • How to upload more than 100mb in using com.oreilly.servlet package

    hi all,
    I use com.oreilly.servlet package to upload and i use the following code to upload
    MultipartRequest mr = new MultipartRequest(request,"/tmp/saved",0x10000000);My problem is i can't upload more than 25mb, uploads upto 25mb and shows page cannot displayed err in IE,
    Pls help

    In the webserver there is most likely a configuration option for the maximum size that a request may have. So search through the manual of your particular webserver on how to change that.

  • How do I use bin variable in package without asking a user?

    hi,
    I would like to write an SQL but I want to use bind variable in package as a static without asking user? Like below?
    I would like to ask you, below there is a emp_id variable? Is this BIND variable?
    DECLARE
    bonus NUMBER(8,2);
    emp_id NUMBER(6) := 100;
    BEGIN
    SELECT salary * 0.10 INTO bonus FROM employees
    WHERE employee_id = emp_id;
    END;
    If not, like this SQL how can define a BIND variable as static inside a code? not asking a user?
    db version. 9.2.0.8
    regards and thanks

    OracleADay wrote:
    I would like to ask you, below there is a emp_id variable? Is this BIND variable?
    DECLARE
    bonus NUMBER(8,2);
    emp_id NUMBER(6) := 100;
    BEGIN
    SELECT salary * 0.10 INTO bonus FROM employees
    WHERE employee_id = emp_id;
    END;
    /In the query "SELECT salary * 0.10 INTO bonus FROM employees WHERE employee_id = emp_id" emp_id is turned into a bind variable because
    if you are coding static SQL in PL/SQL then PL/SQL wil automatically use bind variables: please read http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/overview.htm#sthref145.
    This can also be proved with SQL trace. The following code:
    alter session set sql_trace=true;
    declare
    v number;
    c number;
    begin
    select count(*) into c
    from t
    where x=v;
    end;
    show errors
    alter session set sql_trace=false;generates following raw trace file section with 10G XE:
    =====================
    PARSING IN CURSOR #2 len=79 dep=0 uid=69 oct=47 lid=69 tim=33338762257 hv=2860574766 ad='3c10120c'
    declare
    v number;
    c number;
    begin
    select count(*) into c
    from t
    where x=v;
    end;
    END OF STMT
    PARSE #2:c=46800,e=329811,p=0,cr=9,cu=0,mis=1,r=0,dep=0,og=1,tim=33338762253
    =====================
    PARSING IN CURSOR #1 len=35 dep=1 uid=69 oct=3 lid=69 tim=33338788761 hv=3539261652 ad='3c10053c'
    SELECT COUNT(*) FROM T WHERE X=:B1
    END OF STMT
    PARSE #1:c=0,e=216,p=0,cr=0,cu=0,mis=1,r=0,dep=1,og=1,tim=33338788755
    =====================Edited by: P. Forstmann on 17 mai 2011 17:47
    Edited by: P. Forstmann on 17 mai 2011 17:55

  • How to use a packaged Jar File?

    Greetings to everyone reading this post!
    I have a query about a thing that seems to be basic but I don't know how to accomplish, here it goes:
    I have packaged a Simple application into a Jar file. this application contains a package like this:
    lib.demo, inside this package I have a Class named MyClass with some simple methods like this one:
    public void sayHi(String name){
    //implementation here
    }Now, I would like to Know how to use the Method sayHI(String name) from an entirely different Project. I have successfully included the Jar File as a Library(in the new Project), but I have I no Clue on How to invoke a Class inside my Jar library, and more Importantly, a method.
    Could anybody help me?

    if the "project" (not a Java-related system, it's IDE-specific) already includes the JAR file in its classpath (library), then all you need is to import the package/class and invoke the method, as such:
    // in your client code:
    import lib.demo.*;         // or, import lib.demo.MyClass;
    public class Test {
      public void inAMethod() {
        MyClass myC = new MyClass();
        myC.sayHi("say hi"); 
    }simple.

  • How to use user-defined packages in JAX-RPC web service

    I am trying to use Object of my class located in my package in jax-rpc webservice,the code is
    package supercomputer;
    import Hello.*;
    public class SuperImpl implements SuperIF
    public String sendParam(String data)
    Temp ob=new Temp();
    int i=ob.get1(10000);
    return data+"returned by supercomputer";
    Temp is located in Hello package,I have jar the Hello package as Hello.jar and has set its classpath in targets.xml of Ant tool.
    The code compiles well and service is deployed successfully,but when i try to call the service from the client its gives me following error.
    [echo] Running the supercomputer.SuperClient program....
    [java] java.rmi.ServerException: Missing port information
    [java] at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:357)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:228)
    [java] at supercomputer.SuperIF_Stub.sendParam(SuperIF_Stub.java:60)
    [java] at supercomputer.SuperClient.main(Unknown Source)
    I dont know if it deploys why it gives error on client side.
    Please tell how to use user-defined packages and class in jax-rpc service code ,i am not talking about passing user-defined parameters i am just talking about making objects of user defined classes in jax-rpc service.I think there is some problem in classpath.
    Please guide me in doing that.
    Thanks,
    Farrukh

    Farrukh,
    I don't know if your error is about a missing class from your custom package, ... what track did you followed to say that?
    To use your package in the implementation of you web service, you should only follow the rules of making a web application: put your package jar in your \lib directory inside WEB-INF/ or your package classes unjared in classes (also in WEB-INF/).
    As I already said, I have doubts that your error should be originated from a missing class from your package, but:
    -try to see the logs (errors?) when you deploy your web service that could give a hint about the problem.
    -try to see if you can access your endpoint through your browser to see if there is a online status
    -display your config/WSDL file, and the steps you did to build your web service.
    regards,
    Pedro Salazar.

  • How to use Salary packaging in ESS...?

    Hi All,
    We are using ESS 1.0, Webdynpro 600 (EP 7.0).
    Is there any standard service for Salary packaging compare (employee perspective) to re-structure his salary components ?
    I found tcode : P16B in ECC 6.0.
    But I donno how to use and customize it. Please shade some light regarding the same...... what are prerequisites for this tcode ?
    Looking forward to your responses. Appreciate your help in advance. Usefull answers would be rewarded full points.
    Regards,
    Anil Kumar

    Hi Sakti,
    We are using India Country Grouping - 40.
    When I enter the tcode - p16b from end user;s logon, it says transaction cannot be performed.
    Please let me know your inputs for the same.
    Regards,
    Anil Kumar

  • How to use Oracle refcursor dataset output parameter from SP

    Can I request for help on how to use Oracle Output parameter from a stored procedure as a source. I need the output tobe stored in a flat file
    Thanks
    Abhijit
    Message was edited by:
    Abhijit77

    yes I would like to use it for ODI.. I would like the ouput of the refcursor to be fed to a text file using ODI. How to handle the records returned by the refcursor and map with txt file.

  • )How can we schedule the info package daily run at 6 AM, with out useing in

    Hi
       Can any one explain 1) what is information broadcasting &how can we use this.
    2)What are the settings we have to do when we use the charts in WAD's
    3)How can we schedule the info package daily run at 6 AM, with out useing in process chains
    Thanks
    Bharath

    Hi,
      Information broadcaster :
          you can precalculate and distribute(thru mail) the query, workbook and webtemplate through online link or html file to the receipents (users).
    have a look at the below link.
         http://help.sap.com/saphelp_nw04/helpdata/en/3a/0e044017355c0ce10000000a1550b0/frameset.htm
    Infopackage scheduling:
         you can schedule the infopackage daily at your desired time .In the schedule tab ,select the start later in background and in the scheduling option give the date and time and give the period values as daily.
    Regards,
    Siva.

  • How to use the Packager for iPhone ?

    Hi What`s up guys??
    I Download the Packager for iPhone and i can`t used this ?
    please help me and show me in picture how to use this.

    my question about http://labs.adobe.com/technologies/packagerforiphone/ package.

Maybe you are looking for