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 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.

    If you have chosen Axis2 Service from WSDL, enter the WSDL URL or browse to the WSDL location. There are a number of options you can set as well. You can set the name of the packages that will contain the Java artifacts created when you generate the service. (By default, the package name is taken from the target namespace in the WSDL.) You can decide whether to create a skeleton class interface. Lastly, you select the WSDL2Java databinding technology you want to use. Your settings are propagated to a command-line command visible in the WSDLToJava field. Beneath this field, there are additional options for advanced users to add to the command line.

  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
Configuring Axis2 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

Legal Notices