Hi Mike,
   Thanks for the repsonse. Apparently, I do not see any exceptions being thrown on the server side either! I need to take a look at the configuration.

Sesha
 

Mike Burati wrote:

  Try wrapping the code on the server side with a try/catch and printing or logging the exception there:public java.lang.String getQueryResultset() throws java.rmi.RemoteException {   try {
      System.out.println("Creating RepositoryServer object ..");
      RepositoryServer server = new RepositoryServer();
      System.out.println("Created RepositoryServer object ..");
      return server.getQueryResultset(); 
  } catch (Exception e) {      e.printStackTrace();  }  return "e.toString()";}
-----Original Message-----
From: Sesha Nandyal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 27, 2003 5:03 PM
To: [EMAIL PROTECTED]
Subject: Help ...
 
Hello!

    I am new to webservices and I would like to get started with some help .

The Client code, Client.java, calls the remote service, RepositoryServerProxy.java by the following statement:
         public static void main(String args[]) {
      try {
         RepositoryServerProxy proxy = new RepositoryServerProxyServiceLocator().getRepositoryServerProxy();
         String result = proxy.getQueryResultset();
         System.out.println("result: " + result);
      } catch(Exception e) {
         System.out.println(e);
      }
   }

And the RepositoryServerProxySoapBindingImpl.java (which implements the RepositoryServerProxy.java) calls the RepositoryServer.java (on the server side) by the following statements:

   public java.lang.String getQueryResultset() throws java.rmi.RemoteException {
      System.out.println("Creating RepositoryServer object ..");
      RepositoryServer server = new RepositoryServer();
      System.out.println("Created RepositoryServer object ..");
      return server.getQueryResultset();
   }
 

In the catalina.out file, I get to see the first debug statement and the second one is not printed.
Following are the questions I have;
1. Would I need to define RepositoryServer.java in wsdd, even if the client is NOT is unaware of this class?
2. I get an exception java.lang.reflect.InvocationTargetException on the client side. What does it mean? I don't see any errors thrown in catalina.out or in local-host* logs.
 

Thanks
Sesha

Reply via email to