1. 程式人生 > >Web Service進階 六 SOAPBinding繫結方式異常 is not found Have you run

Web Service進階 六 SOAPBinding繫結方式異常 is not found Have you run

當在類中填充相應方法時,提示如下錯誤:

 

 

出現以上錯誤的原因就是在註解中沒有新增@SOAPBinding(style=SOAPBinding.Style.RPC)這句話。估計也與JDK的版本相關,這方面的知識有時間時再深究。


 

出現以上錯誤的原因是原始碼中存在throws Exception

@WebMethod

public int add(String userStr) throws Exception{

return 1;

}

解決辦法就是將throws Exception

刪除,或者利用訊息處理機制解決


再分享一下我老師大神的人工智慧教程吧。零基礎!通俗易懂!風趣幽默!還帶黃段子!希望你也加入到我們人工智慧的隊伍中來!https://www.cnblogs.com/captainbed