axis2通过wsdl生成客户端程序并本地调用

wsdl2java -uri http://10.0.5.12/brm/services/RuleEngine1374389539674484?wsdl -p east.mvc.webservice.client -o stub

RuleEngine1374389539674484Stub stub = null;
try {
stub = new RuleEngine1374389539674484Stub();
RuleEngine1374389539674484Stub.GetCutCatList cutCatList = new RuleEngine1374389539674484Stub.GetCutCatList();

System.out.println(stub.getCutCatList(cutCatList).getOut());
} catch (Exception e) {
e.printStackTrace();
}

原文地址:https://www.cnblogs.com/xsmhero/p/3911948.html