views:

57

answers:

3

I want to call a web service in my java application. How do I achieve this? I'm new to web services.

A: 

Just use Google and search for Webservice and Java.

Here is a tutorial

Shervin
A: 

Go to the Apache foundation web site and search for the "AXIS SOAP client"!

This is well documented and the client side consists of a single JAR file.

Also I would thourogly recommend SOAPUI for generating and reading test messages.

James Anderson
Why Axis? (15chrS)
Bozho
AXIS mature, bug free, well documented.
James Anderson
+1  A: 

Go through this tutorial.

The basic steps are:

  • download (if not already present) a JAX-WS implementation
  • generate a java client by importing the wsdl with some tool (see below)
  • invoke methods on the generated client code

This article shows how to do it step by step using NetBean's wizards

Bozho
The tutorial is from 2005. Would a newer version reflect the annotation approach in Java 6?
Thorbjørn Ravn Andersen
thanks, corrected
Bozho