File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Want to try a simple web service client... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Want to try a simple web service client..." Watch "Want to try a simple web service client..." New topic

Want to try a simple web service client...

Srikanth Raghavan
Ranch Hand

Joined: Oct 31, 2005
Posts: 389
Last 6 hours I've been searching and reading on writing a simple web services client. I'm sure there must be a "Hello World" web service somewhere to which I can connect and write my sample client.

But I'm really confused on what API I must use, what jars I need to have in my classpath, what code generators I must use, what are the information I need to have to connect and use a web service.

I don't have a web server, and I think I won't need a web server to write a web services client. Can someone point me to a nice simple tutorial or help me get started? Any help is appreciated.

[ May 07, 2007: Message edited by: Srikanth Raghavan ]
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
It makes things much simpler if you have a WS up and running that you control - Apache Axis is easily installed in a servlet container.

But you're right, you don't absolutely need one. lists many publicly available web services. What you need for a service is the WSDL and the endpoint, both of which are listed there.

Once you have the WSDL, you can create a Java client using the java2wsdl tool, which comes with Axis.
I agree. Here's the link:
subject: Want to try a simple web service client...
It's not a secret anymore!