com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links' is unknown.

Creating an Axis2 Project

You can create an Axis2 project for use with the Application Server.

Creating an Axis2 service project

You can create a new, empty project and develop the service as a Java class inside the project, or create the project and service in one step using an existing WSDL file. 

To create an empty service project:

  1. On the Developer Studio Dashboard, click Axis2 Service Project, leave the first option selected, and click Next.
    The Create New Axis2 Service dialog box appears.
  2. Do the following:
    1. Type a unique name for the project.
    2. Specify the package and class name.
    3. Optionally specify the location where you want to save the project (or leave the default location specified).
    4. Optionally specify the working set, if any, that you want to include in this project.
  3. A Maven POM file will be generated automatically for this project. If you want to include parent POM information in the file from another project in this workspace, click Next, select the Specify Parent from Workspace check box, and then select the parent project.
  4. Click Finish.
    The project is created, and the service class is open in the editor.
  5. Create a method in the service class. For example:
  6. Generate the WSDL as follows:
    1. Right-click the project and choose Generate WSDL.
    2. Specify the location and name for the file and click OK.

The WSDL file is generated and appears in the editor.

To create a service project from a WSDL:

  1. On the Developer Studio Dashboard, click Axis2 Service Project, click the option to create the project from a WSDL, and click Next.
  2. Browse to the WSDL file, specify a name for the project, and then optionally specify the location and working sets as described in the previous steps.
  3. Optionally click Next and modify the Axis2 options. 
    For more information on Axis2 configuration, see: http://axis.apache.org/axis2/java/core/docs/adv-userguide.html
  4. Click Finish.

The project is created with all the generated stubs created from the WSDL you specified.

Creating an Axis2 web service client

You can create an Axis2 client project to generate client classes from a WSDL.

  1. On the Developer Studio Dashboard, click Generate Axis2 Web Service Client.
  2. Specify the WSDL, and click Next.
  3. Specify the src folder where you want to create the client and click Next. If you want to create a new project for this client, click Create a new Project and enter the required information.
  4. Configure the Axis2 options and click Finish.
    For more information on Axis2 configuration, see: http://axis.apache.org/axis2/java/core/docs/adv-userguide.html

The client classes are created in the source folder you specified.

Creating an Axis2 web service skeleton

You can create an Axis2 web service skeleton project to generate classes from a WSDL.

  1. On the Developer Studio Dashboard, click Generate Axis2 Web Service Skeleton.
  2. Specify the WSDL, and click Next.
  3. Specify the src folder where you want to create the skeleton and click Next. If you want to create a new project for this skeleton, click Create a new Project and enter the required information.
  4. Configure the Axis2 options and click Finish.
    For more information on Axis2 configuration, see: http://axis.apache.org/axis2/java/core/docs/adv-userguide.html

The classes are created in the source folder you specified.

Generating an Axis2 service archive

You can generate an Axis2 Service Archive (AAR file) by exporting the project.

  1. Right-click the Axis2 service project and select Export Project as Deployable Archive.
  2. Select the project and location where you want to save the archive and click Finish.

Deploying the project

You can add the project as a dependency of a Composite Application project that you deploy on the WSO2 Application Server. 

 

com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.