Create an Axis2 Artifact

Before creating an Axis2 Artifact, you need a dynamic web project with a service in your workspace or location of an .aar file. If you want to create a dynamic web project with a service, you can create it inside CApp project. When you create a CApp project, there is a default package called java-src. Right click on the default package and go to New -> Package.





New Server Runtime



Create a package and click Finish.





New Server Runtime



Then create a class inside that package.





New Server Runtime



Then Right click on the class and select Create Web Service from Web Services category of the menu.





New Server Runtime



Click on Server:WSO2 Carbon 3.0 of the Web Service wizard page. If WSO2 Carbon 3.0 is not available under the Configuration, you have open the Servers view and add WSO2 Carbon 3.0 by right click New -> Server and select WSO2 Carbon 3.0 from WSO2 category.





New Server Runtime



Select WSO2 Carbon 3.0 at localhost as the Server and WSO2 Web Service Application Server as Web Service runtime and click OK.





New Server Runtime



Keep the default settings for the next wizard page.





New Server Runtime



Start the server and wait till server is starting.





New Server Runtime



After server gets started, click Finish.





New Server Runtime



Now you will see dynamic web project is created in the workspace.





New Server Runtime



To create an Axis2 Service, right click on the CApp project and select Axis2 Service from the menu.





New Server Runtime



There are two ways to create an Axis2 Service.

  1. Axis2 Service in the workspace
  2. Axis2 Service in the file system
With the first option, all the Dynamic Web Projects in the workspace will be listed in the drop-down box.



New Server Runtime



With the second option, you have to give the location of an .aar file.





New Server Runtime



Then click Next.

Select the CApp project you want to create Axis2 Service and click Finish.





New Server Runtime



Now you will see new Axis2 Service is created under the selected CApp project.





New Server Runtime



Note that the dynamic web project that you choose when creating the Axis2 Service is listed inside the Axis2 Service.





New Server Runtime