zoukankan      html  css  js  c++  java
  • eclipse中使用axis2插件发布服务(WebService)和生成客户端(Client)及axis2插件的使用

    一、发布WebService
    1.新建服务项目右击-new-other-选择Axis2 Serice Archiver 点击Next
    2.Class File Location选择项目的classes目录(勾选Include.class files nly),Next
    3.勾选SkipWSDL,Next
    4.默认设置,不用设置,Next
    5.勾选Generate the service xml automatically
    6.填写相关内容,Next,选择某目录生成了aar的文件。
     
    二、生成WSDL文件供插件生成客户端代码(这步可不操作,操作这步为了发布客户端或服务端代码提供的WSDL文件)
    1.右击项目-new-other-选择Axis2 Code Generator,Next
    2.勾选Generate a WSDL from a java source file,Next
    3.点击Add folder选择项目下的classes目录,Fully Qualified Class name选择java类文件如:cn.com.zjl.UserService,点击Test Class loading通过,Next
    4.填写相关内容,Next
    5.选择Browse and select a project on current eclipse workspace,Output location选择项目的某目录生成了WSDL文件
     
    三、生成客户端调用发布的WebService的服务
    1.新建客户端项目右击-new-other-选择Axis2 Code Generator,Next
    2.选择 Generate java source code from a WSDL file, Next
    3.WSDL file location:选择发布webService的地址也可以是一个生成后缀名为WSDL的文件,Next
    4.Codegen option:选择custom,勾选Generate test case,勾选Generate client side code,勾选Generate both sync and async,Next
    5.选择Browse and select a project on current eclipse workspace,Output path:选择项目名称,Finsh
    根据WSDL文件或者发布的WebService服务地址生成客户端完成
     
    四、根据第一、第二步生成的服务发布WebService
    1.项目右击-new-other-选择Axis2 Code Generator,Next
    2.选Generate java source code from a WS
  • 相关阅读:
    leetcode 5414 收藏清单
    leetcode 714 买卖股票的最佳时机含手续费(dp)
    春招的一个记录
    leetcode 560 和为k的子数组(前缀和 + map)
    机器学习--激活函数篇
    leetcode 回文链表(O(1)空间复杂度)
    Leetcode 659 分割数组为连续子序列 (贪心)
    论文笔记:MeLU: Meta-Learned User Preference Estimator for Cold-Start Recommendation
    jni.h头文件详解一
    JNI笔记
  • 原文地址:https://www.cnblogs.com/wdmwj626/p/4843904.html
Copyright © 2011-2022 走看看