System.out.println("Creating RepositoryServer object ..");
RepositoryServer server = new RepositoryServer();
System.out.println("Created RepositoryServer object ..");
return server.getQueryResultset();
-----Original Message-----Hello!
From: Sesha Nandyal [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 5:03 PM
To: [EMAIL PROTECTED]
Subject: Help ...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
