Make sure you already install axis2 plugin in your eclipse. If you have yet, there’s small example from me in previous post. In this simple tutorial, I use Eclipse 3.3 Europa.
I don’t know what exactly it’s name but I call it Webservice Model (Never learn officially). We’re gonna make POJO class Rectangle in package com.coni.ws.bu.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| package com.coni.ws.bu;
public class Rectangle {
private static int width = 10;
private int height = 20;
public void setWidthHeight(int width, int height) {
Rectangle.width = width;
this.height = height;
}
public int getArea(){
return width * height;
}
} |
Generate Service Archive to be used by axis2. Using simple wizard with eclipse it can be build easyly. Right Click or Choose File -> New -> Other -> Axis2 Wizards -> Axis2 Service Archiver
[Read the rest of this entry...]