1.先根据命令生成相关文件
2.以下是调用代码备份
public int[] getMeasure(String UserName, String UserPwd, int type)
throws RemoteException {
// 获得Stub实例
InterfaceStub.GetMeasure smsSendEx = new InterfaceStub.GetMeasure();
// 设置接口参数
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;
}