Creating Axis2 Web Services

See Also 

Apache Axis2 is an open-source architecture for SOAP web services. Axis2 web services are interoperable with Metro web services. The IDE supports the creation of Axis2 web services, which can then be consumed by a JAX-WS client.

Axis2 web services can only be created in Java application or Java class library projects.

To create an Axis web service:

  1. Use the Plugin Manager under the Tools menu to install the Axis2 Web Services module, which will also install the Axis2 libraries.
  2. Open or create a Java Application or Java Class Library project.
  3. Right-click the project node. The context menu opens.
  4. Select New -> Other. The New Files wizard opens.
  5. From the Web Services category, select either Axis2 Service from WSDL or Axis2 Service from Java.
  6. If you have chosen Axis2 Service from WSDL, enter the WSDL URL or browse to the WSDL location.

    If you have chosen Axis2 Service from Java, you can select either to create an empty web service or create a service from an existing Java class in the project. You can also create a local WSDL if you need to edit it (see Editing WSDL Files).

  7. Click Next. If you are creating an empty web service, give names to the web service and the package that contains its Java class.
  8. Click Finish. The web service is created.

The web service appears in the Axis Web Services node. It mirrors a Java class of the same name in Source Packages. The operations of the web service are displayed as sub-nodes of the web service. To alter the web service's behavior, open and edit its associated Java class. When you save your changes to the Java class, the operations of the web service are automatically updated.

See Also
About Web Services
About Implementing Web Services
Creating a Web Service from a WSDL File
Creating a WSDL File
Generating a JAX-WS Web Service Client