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.
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
Just use Google and search for Webservice and Java.
Here is a tutorial
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.
精彩评论