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
  • 相关阅读:
    毕业季–遗言
    Storm 疑难杂症。
    Python3.2 安装 MySQLdb
    apk 文件可下载配置
    'GBK' is not a supported encoding name. For information on defining a custom encoding, see the docum
    croe 增加配置文件。
    postman 特殊字符被转义,如 参数+号变成了空格
    websocket 学习
    Rhino 基于java的javascript实现
    SJS(simple javascript)html5开发扩展库
  • 原文地址:https://www.cnblogs.com/wdmwj626/p/4843904.html
Copyright © 2011-2022 走看看