Downloading and Installing Axis2/Java

This section provides a tutorial example on how to download and install Axis2/Java to a Windows systems that has JDK available.

Here is what I did to download and install Axis2/Java 1.7.8:

1. Go to http://ws.apache.org/axis2/ and click link in the left menu "Version 1.7.8". The Axis2/Java 1.7.8 Documentation Home page shows up.

2. Click the link "Download and Installation" in Apache Axis2 User's Guide section. The Apache Axis2 Installation Guide page shows up.

3. Click "Download" link next to "distribution packages of the Apache Axis2 1.7.8 version (latest)" in the Axis2 Distributions section. The Axis2 1.7.8 Release download page shows up.

4. Click "axis2-1.7.8-bin.zip" link at the end of the "Binary distribution" row. The browser download dialog box shows up.

5. Save the download file, axis2-1.7.8-bin.zip, to C:\local folder. The size of axis2-1.7.8-bin.zip should be 23,030,856 bytes.

6. Unzip axis2-1.7.8-bin.zip to C:\local folder. Axis2 is installed at C:\local\axis2-1.7.8. Rename C:\local\axis2-1.7.8 to C:\local\axis2 to simplify the path name.

Since I am only going to use Axis2 for client side program, I don't need to integrate Axis2 with Tomcat. So my installation is done.

Let's try the command line tool wsdl2java to verify the installation.

C:\herong>\local\axis2\bin\wsdl2java

The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK/JRE

C:\herong>\Progra~1\java\jdk-10.0.1\bin\java -version
java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)

C:\herong>set JAVA_HOME=\Progra~1\java\jdk-10.0.1

C:\herong>\local\axis2\bin\wsdl2java
The AXIS2_HOME environment variable is not defined correctly
This environment variable is needed to run this program

C:\herong>set AXIS2_HOME=\local\axis2

C:\herong>\local\axis2\bin\wsdl2java
Using AXIS2_HOME:   \local\axis2
Using JAVA_HOME:    \Progra~1\java\jdk-10.0.1
log4j:WARN No appenders could be found for logger ...
log4j:WARN Please initialize the log4j system properly.
Usage: WSDL2Java [options] -uri <url or path> : A url or path to a WSDL

where [options] include:
  -o <path>          Specify a directory path for the generated code.
  -a                 Generate async style code only (Default: off).
  -s                 Generate sync style code only (Default: off). 
                     Takes precedence over -a.
  ...

Cool. The installation seems to be ok after setting two environment variables: JAVA_HOME and AXIS2_HOME.

Last update: 2018.

Table of Contents

 About This Book

 Introduction to WSDL 2.0

 WSDL 2.0 Document Structure and Syntax

 WSDL Version 2.0 Part 2: Adjuncts

 WSDL 2.0 Document Examples with SOAP Binding

Using WSDL Document in Java Apache Axis2/Java for WSDL

 What Is Axis2?

Downloading and Installing Axis2/Java

 org.apache.axis2.client.ServiceClient Class

 Creating Service Client with WSDL Document

  WSDL2Java Converting WSDL 2.0 Documents to Stub Classes

 Apache Woden for WSDL Documents in Java

 SoapUI - Web Service Testing Tool

 PHP SOAP Extension for WSDL

 Perl SOAP::Lite for WSDL

 Introduction to WSDL 1.1

 WSDL 1.1 Document Structure and Syntax

 WSDL 1.1 Binding Extension for SOAP 1.1

 SoapUI as WSDL 1.1 Testing Tool

 WSDL 1.1 and SOAP 1.1 Examples - Document and RPC Styles

 PHP SOAP Extension for WSDL 1.1

 Perl SOAP::Lite for WSDL 1.1

 Apache Axis2/Java for WSDL 1.1

 Using WSDL2Java to Generate Web Service Stub Classes

 WSDL 1.1 Binding Extension for SOAP 1.2

 WSDL 1.1 and SOAP 1.2 Examples - Document and RPC Styles

 SOAP 1.2 Binding - PHP, Java and Perl Clients

 WSDL Related Terminologies

 Outdated Tutorials

 References

 Full Version in PDF/EPUB