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());

相关文章:

  • 2022-12-23
  • 2021-08-20
  • 2021-12-28
  • 2021-11-08
  • 2021-05-01
  • 2021-10-31
  • 2022-12-23
猜你喜欢
  • 2021-06-11
  • 2021-11-27
  • 2022-02-19
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2021-08-20
相关资源
相似解决方案