I want to call a web service in my java application. How do I achieve this? I'm new to web services.
- Which WS library are you planning to use? Apache CXF, Axis, JaxWS...Romain Linsolas– Romain Linsolas2010-09-09 06:55:30 +00:00Commented Sep 9, 2010 at 6:55
- @romaintaz I think you gave him the anwser he needed :-)Riduidel– Riduidel2010-09-09 06:59:28 +00:00Commented 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?Jon Skeet– Jon Skeet2010-09-09 07:00:34 +00:00Commented 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.Buhake Sindi– Buhake Sindi2010-09-09 10:03:48 +00:00Commented Sep 9, 2010 at 10:03
Add a comment |
3 Answers
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
1 Comment
Thorbjørn Ravn Andersen
The tutorial is from 2005. Would a newer version reflect the annotation approach in Java 6?
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
James Anderson
AXIS mature, bug free, well documented.