axis2開發(fā)隨記
1.先根據(jù)命令生成相關(guān)文件
2.以下是調(diào)用代碼備份
public int[] getMeasure(String UserName, String UserPwd, int type)
???throws RemoteException {
??// 獲得Stub實例
??InterfaceStub.GetMeasure smsSendEx = new InterfaceStub.GetMeasure();
??// 設(shè)置接口參數(shù)
??smsSendEx.setUserName(UserName);
??smsSendEx.setUserPwd(UserPwd);
??smsSendEx.setType(type);
??// 得到返回值
??InterfaceStub.GetMeasureResponse res = stub.GetMeasure(smsSendEx);
??int CMount = res.getCMount();// 月余額
??int CDAY = res.getCDay();// 日余額
??int[] arry = { CMount, CDAY };
??System.out.println("取賬號余額====> 月余額:" + CMount + "....日余額:" + CDAY);
??return arry;
?}
posted on 2010-07-30 11:54 tobyxiong 閱讀(134) 評論(0) 編輯 收藏 所屬分類: java