使用axis2插件创建客户端

1、使用wsdl生成客户端HelloStub.java、OtherStub.java【通过axis2插件的Axis2 code generator生成】
2、测试类或者jsp页面,可以通过2中的客户端类来调用服务
例如:
HelloStub helloStub=new HelloStub("http://127.0.0.1:8080/axis2/services/HelloService");
    Helloworld helloworld=new Helloworld();
    helloworld.setName("zgx---");
    HelloworldResponse resp= helloStub.helloworld(helloworld);
    System.out.println(resp.get_return());
原文地址:https://www.cnblogs.com/Byrd/p/2586134.html