Results 1 to 4 of 4
  1. #1
    safi532 is offline Member
    Join Date
    Jan 2012
    Posts
    2
    Rep Power
    0

    Default calling a function of a specific type in a java class from another class.....

    Hi guys.
    I need to use the method:

    public com.aonaware.services.webservices.Dictionary[] dictionaryList() throws java.rmi.RemoteException{
    if (dictServiceSoap == null)
    _initDictServiceSoapProxy();
    return dictServiceSoap.dictionaryList();
    }

    in another class to get the output of the above method to work for me in another class......

    my other class would be:

    public class Project1 {

    /**
    * @param args
    * @throws RemoteException
    */
    public static void main(String[] args) throws RemoteException {
    // TODO Auto-generated method stub
    DictServiceSoapProxy dc = new DictServiceSoapProxy();
    dc.dictionaryList();


    }

    }

    What type of datatypes do i use to handle the output generated by the first class in the second class...?
    plz help.
    thanks in advance.

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    7

    Default Re: calling a function of a specific type in a java class from another class.....

    What the called method returns: com.aonaware.services.webservices.Dictionary[]
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  3. #3
    safi532 is offline Member
    Join Date
    Jan 2012
    Posts
    2
    Rep Power
    0

    Default Re: calling a function of a specific type in a java class from another class.....

    Thanks a lot....
    I actually saw that a lil while after i posted the question....but somehow i can't get my ide to display the list....
    i used this:
    com.aonaware.services.webservices.Dictionary[] dictnames1;
    dictnames1 = dc.dictionaryList();

    System.out.print(dictnames1);
    any suggestions?

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,616
    Rep Power
    25

    Default Re: calling a function of a specific type in a java class from another class.....

    i can't get my ide to display the list...
    Can you explain what is printed and what is wrong with that?

Similar Threads

  1. Replies: 0
    Last Post: 12-07-2011, 12:55 PM
  2. Replies: 0
    Last Post: 10-23-2011, 11:49 PM
  3. Child-Class Calling a Method in a Parent-Class
    By Blah_ in forum New To Java
    Replies: 5
    Last Post: 09-29-2009, 03:48 AM
  4. problem calling function from class to class
    By alin_ms in forum New To Java
    Replies: 3
    Last Post: 12-19-2008, 08:35 PM
  5. Calling a method on original class from created class
    By kpedersen in forum Advanced Java
    Replies: 4
    Last Post: 08-20-2008, 01:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •