1

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

4
  • Which WS library are you planning to use? Apache CXF, Axis, JaxWS... Commented Sep 9, 2010 at 6:55
  • @romaintaz I think you gave him the anwser he needed :-) Commented Sep 9, 2010 at 6: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? Commented Sep 9, 2010 at 7:00
  • Look at my brief answer here (stackoverflow.com/questions/3666574/…). It's basically an overview of generating a java proxy from a web service definition in java. Commented Sep 9, 2010 at 10:03

3 Answers 3

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

Sign up to request clarification or add additional context in comments.

1 Comment

The tutorial is from 2005. Would a newer version reflect the annotation approach in Java 6?
0

Just use Google and search for Webservice and Java.

Here is a tutorial

Comments

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.

1 Comment

AXIS mature, bug free, well documented.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.