1

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

Buhake Sindi
  • 87,898
  • 29
  • 167
  • 228
user323101
  • 259
  • 1
  • 8
  • 13
  • Which WS library are you planning to use? Apache CXF, Axis, JaxWS... – Romain Linsolas Sep 09 '10 at 06:55
  • @romaintaz I think you gave him the anwser he needed :-) – Riduidel Sep 09 '10 at 06:59
  • A Google search for your exact title but with "servide" corrected to "service" found lots of useful tutorials etc. Which of these did you try, and what problems did you have with them? – Jon Skeet Sep 09 '10 at 07:00
  • Look at my brief answer here (http://stackoverflow.com/questions/3666574/standalone-java-webservice-client/3666840#3666840). It's basically an overview of generating a java proxy from a web service definition in java. – Buhake Sindi Sep 09 '10 at 10:03

3 Answers3

1

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
  • 588,226
  • 146
  • 1,060
  • 1,140
0

Just use Google and search for Webservice and Java.

Here is a tutorial

Shervin Asgari
  • 23,901
  • 30
  • 103
  • 143
0

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
  • 27,109
  • 7
  • 50
  • 78