user323101
user323101

Reputation: 259

How can we call a web service in java application?

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

Upvotes: 1

Views: 4499

Answers (3)

Bozho
Bozho

Reputation: 597076

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

Upvotes: 1

James Anderson
James Anderson

Reputation: 27478

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.

Upvotes: 0

Shervin Asgari
Shervin Asgari

Reputation: 24499

Just use Google and search for Webservice and Java.

Here is a tutorial

Upvotes: 0

Related Questions