服務提供程式:ArithmWS

package com.emprogria; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebService; @WebService() public class ArithmWS { /** * Web service 操作 */ @WebMethod(operationName = "Add") public int Add(@WebParam(name = "x") int x, @WebParam(name = "y") int y) { // 整數加法 return x + y;

}

}