• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to call a web service  RSS feed

 
hani Ibrahim
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,
i have been trying to run a client to call "Hello World Web Serivce"

i deployed it successfully in WebSphere 6.0

and have this code in client side to call the web service

-------------------------------------------------------------------------------
public class HelloWorldClient {
public static void main(String[] args) throws Exception
{
HelloWorldServiceLocator hwlocator = new HelloWorldServiceLocator();
HelloWorld hw = hwlocator.getHelloWorld();
String str = hw.sayHello();
System.out.println(str);
}
}

-----------------------------------------------------------------------------
but i still need jar file contains this class:
com/ibm/rmi/corba/ORBSingleton in a jar file which i should put it in classpath..
any one has an idea in which jar file could i find it?

Thanks all for being here for help
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since that class is IBM-specific, I would look through your WebSphere istallation, and have a look at the jar files that it uses. You can use "jar tf XYZ.jar" on the command line to list all the files contained in a particular jar.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!