Creating a Java Web Service by Haris A.L 1. Introduction This document explains the steps to create a java web service newly introduced Axis2 Web Services tools in the Web Tools Platform Project using the latest WTP drivers. 2. Set Up Tools: a. IDE – Eclipse Europa Link b. Web Tools Platform - Link c. Axis 2 - Link d. XStream - Link e. Apache Tomcat Link 3. Creating a Java web service using Axis 2 WTP Tools. 3.1 Install and Configure an Apache Axis2 Web service runtime In order to create or consume Axis2 Web service components in an Eclipse workspace, the Web service development tools need to have access to the Axis2 jars to copy them to the Web project containing the Web service component. Currently, the latest Axis2 version available is Axis2 1.3. If WTP includes a copy of the Axis2 jars in a plugin, similar to the current implementation of the tools for Axis 1.3, WTP will need to keep updating the plugin with newer releases of Axis2 as they become available. Similarly, to the relationship between Server Tools and Apache Tomcat, the preferred approach is for the user to download the version of Axis2 they want and then point the Axis2 Web service tools to the location of the download (in zip or unzipped form).
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Creating a Java Web Serviceby Haris A.L
1. Introduction
This document explains the steps to create a java web service newly introduced Axis2 Web
Services tools in the Web Tools Platform Project using the latest WTP drivers.
2. Set Up
Tools:
a. IDE – Eclipse Europa Link
b. Web Tools Platform - Link
c. Axis 2 - Link
d. XStream - Link
e. Apache Tomcat Link
3. Creating a Java web service using Axis 2 WTP Tools.
3.1 Install and Configure an Apache Axis2 Web service runtime
In order to create or consume Axis2 Web service components in an Eclipse workspace, the Web
service development tools need to have access to the Axis2 jars to copy them to the Web project
containing the Web service component. Currently, the latest Axis2 version available is Axis2 1.3.
If WTP includes a copy of the Axis2 jars in a plugin, similar to the current implementation of the
tools for Axis 1.3, WTP will need to keep updating the plugin with newer releases of Axis2 as they
become available. Similarly, to the relationship between Server Tools and Apache Tomcat, the
preferred approach is for the user to download the version of Axis2 they want and then point the
Axis2 Web service tools to the location of the download (in zip or unzipped form).
3.1.a Detailed steps
1. In the Preference page, select Web Services -> Axis2 -> Installed Web service runtimes.
2. Expand the Axis2 tree and select Axis2 1.1.
3. Click the Browse button to specify the location of the Axis2 zip or home directory.
4. If the expected Axis2 jars are not found under the specified location, an error message is