01: package example;
02:
03: import javax.jws.*;
04:
05: @WebService
06: public class MathServiceImpl implements MathService {
07: /**
08: * Adds two integers.
09: */
10: public int add(int a, int b) {
11: return a + b;
12: }
13:
14: /**
15: * Subtracts two integers.
16: */
17: public int sub(int a, int b) {
18: return a - b;
19: }
20:
21: /**
22: * Multiplies two integers.
23: */
24: public int mul(int a, int b) {
25: return a * b;
26: }
27:
28: /**
29: * Divides two integers.
30: */
31: public int div(int a, int b) {
32: return a / b;
33: }
34: }
|