KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > me > calculator > CalculatorWS


1 /*
2  * CalculatorWS.java
3  *
4  * Created on May 30, 2006, 3:19 PM
5  *
6  * To change this template, choose Tools | Template Manager
7  * and open the template in the editor.
8  */

9
10 package org.me.calculator;
11
12 import javax.ejb.Stateless JavaDoc;
13 import javax.jws.WebService;
14 import javax.jws.WebMethod;
15 import javax.jws.WebParam;
16
17 /**
18  *
19  * @author ak199487
20  */

21
22 @Stateless JavaDoc()
23 @WebService()
24 public class CalculatorWS {
25     /**
26      * Web service operation
27      */

28     @WebMethod
29     public int add(@WebParam(name = "i") int i, @WebParam(name = "j") int j) {
30         // TODO implement operation
31
int k = i + j;
32         return k;
33     }
34     
35    
36 }
37
Popular Tags