eclipse生成wsdl文件


一、環境配置

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM