一`使用插件生成代碼
1.右鍵Other項目java
2.輸入遠程WebService地址函數
http://127.0.0.1:8080/HNFGWOA_MySQL_V1.0/services/xxfbzxService?wsdl測試
3.選擇輸出路徑spa
4.刷新項目,就能夠看到生成的文件插件
二.java代碼調用測試
public static void main(String[] args) throws RemoteException { XxfbzxServiceStub stub = new XxfbzxServiceStub("http://127.0.0.1:8080/HNFGWOA_MySQL_V1.0/services/xxfbzxService"); FindXxglBeanBySubject findXxglBeanBySubject=new FindXxglBeanBySubject();//建立函數 findXxglBeanBySubject.setPreNum(4); // 設置參數 findXxglBeanBySubject.setSubject("1"); FindXxglBeanBySubjectResponse fxbbsr=stub.findXxglBeanBySubject(findXxglBeanBySubject);//執行遠程操做 ResultXxglBean restBean= fxbbsr.get_return();// 取出結果集 System.out.println("返回結果是:"+restBean.getPreUrl()); }