Apache Axis2 and JAX-WS Tools
Apache Axis2 ArtifactTo create a Apache Axis2 Service Artifact, right click on the CApp project and select Axis2 Service from the menu.
There are three ways to create an Apache Axis2 Service Artifact.
Create an Apache Axis2 Service Artifact pointing a class file in the workspaceThis option will be selected by default. If you already have a service class in your workspace, select Browse button and type the class name you want to specify.
You can create a new class from the scratch as well. To point a new service class, select New button. Now you will see, general java class creation page of Eclipse appears.
In the class creation wizard page give necessary information and click Finish.
Now you will see that the given information has been filled in to Apache Axis2 Service artifact creation wizard page. Then click Next.
Give a name to the Apache Axis2 Service artifact. This field will be filled automatically. If not, give a name you preferred. Then click Finish.
Now you will see axis2 artifact is created under artifacts folder. You can see HelloWorld.service and services.xml files also have been created.
Now we will add a method to HelloWorld java class.
There are several things you can do with the service file that has been created.
Create a WSDL
Create a service client
Create Apache Axis2 Archive(aar) file
Apache Axis2 Service in the workspace
This is the second option to create an Axis2 Service artifact. If you already have a Web Services project in your workspace, you can create a service from that as well.
Apache Axis2 archive(aar) in the file system
This is the third option to create an Axis2 Service artifact. With this option, you have to give the location of Apache Axis2 archive(aar) file in your file system.
Now you have successfully created an Apache Axis2 Service artifact from WSO2 Carbon Studio. You can deploy the created service to WSO2 Application Server and test. Detailed description of how to deploy any type of artifact to a Carbon Server can be found here.
To create a JAX-WS Artifact, right click on the CApp project and select JAX-WS from the menu.
There are two ways to create a JAX-WS Artifact.
With the first option, you can point to a jar file in the file system.
With the Create a JAX-WS Pointing to a jar in the registry, you can browse resources of the registry instance that you have already created or you can create a new registry instance as well. After selecting the registry instance, click on Browse to browse resources in registry.
Select the CApp project you want to create JAX-WS and click Finish.
Now you will see new JAX-WS artifact is created under the selected CApp project.