一、环境配置
eclipse+tomcathttps://www.cnblogs.com/Jasper-changing/p/11378341.html
二、生成wsdl文件
https://www.cnblogs.com/heartlake/p/6106657.html
启动tomcat server
简单的java代码加减乘除
package wsdl; public class caculator { public double multi(int x, int y) { return x*y; } public double add(int x, int y) { return x+y; } public double minus(int x, int y) { return x-y; } public double division(int x, int y) { return x/y; } }
生成wsdl
右键 -> Web Services -> Create Web Service
然后next→finish
最后可以看到生成的文件
相应的link:http://localhost:8080/wsdl/services/caculator?wsdl
原文:https://www.cnblogs.com/Jasper-changing/p/12073401.html