一. 开发服务
新建maven的web项目就可以了,
1.新建一个web服务
2.服务名称定义
3.更改配置
4.默认建好的服务文件
5.增加一个add的服务
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
/**
*
* @author Administrator
*/
@WebService(serviceName = "CalculatorWS")
public class CalculatorWS {
/**
* This is a sample web service operation
*/
@WebMethod(operationName = "hello")
public String hello(@WebParam(name = "name") String txt) {