Carbon StudioDownloadsDocumentation
SamplesGet InvolvedProject Information![]() |
Create an Axis2 ArtifactBefore 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.
Create a package and click Finish.
Then create a class inside that package.
Then Right click on the class and select Create Web Service from Web Services category of the menu.
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.
Select WSO2 Carbon 3.0 at localhost as the Server and WSO2 Web Service Application Server as Web Service runtime and click OK.
Keep the default settings for the next wizard page.
Start the server and wait till server is starting.
After server gets started, click Finish.
Now you will see dynamic web project is created in the workspace.
To create an Axis2 Service, right click on the CApp project and select Axis2 Service from the menu.
There are two ways to create an Axis2 Service.
![]() With the second option, you have to give the location of an .aar file.
Then click Next. Select the CApp project you want to create Axis2 Service and click Finish.
Now you will see new Axis2 Service is created under the selected CApp project.
Note that the dynamic web project that you choose when creating the Axis2 Service is listed inside the Axis2 Service.
|