当前位置:网站首页>webService接口
webService接口
2022-07-30 04:33:00 【lichaohua!】
webService接口:使用cxf根据wsdl文件生成java代码
前言
工作中需要有用到webService接口,特地来记录一下
一、下载cxf压缩包
官网链接: https://cxf.apache.org/download.html
二、配置cxf环境变量
新建系统变量
编辑path,添加
三、在bin下进入cmd,使用命令生成java代码

命令:
wsdl2java -encoding utf-8 -p com.ddtech -d D:/demo/src -client
D:\project\gzyth1\gzyth\src\config\配网接口接收报文.wsdl
-encoding utf-8编码
-p com.ddtech生成代码的包名
-d D:/demo/src生成的代码位置
-client生成客户端代码(少了这个就少了个客户端测试的java类而已)
D:\project\gzyth1\gzyth\src\config\配网接口接收报文.wsdl解析的wsdl地址(可以是本地地址也可以是网络地址)
cxf参数总结
-p 指定其wsdl的命名空间,也就是要生成代码的包名;
-d 指定要产生代码所在目录 ;
-client 生成客户端测试web service的代码 ;
-server 生成服务器启动web service的代码 。
边栏推荐
猜你喜欢

Android Studio 实现登录注册-源代码 (连接MySql数据库)
Go study notes (84) - Go project directory structure

Install MySQL Database on Kylin V10 Operating System

1. Get data - requests.get()

MySQL String Concatenation - Various String Concatenation Practical Cases

WEB penetration of information collection

Azure 开发者新闻快讯丨开发者7月大事记一览

How does MySql find out the latest data row that meets the conditions?

Go书籍大全-从初级到高级以及Web开发
![[C language] Program environment and preprocessing](/img/d2/a0437da7d651e755951dd2a15827cf.png)
[C language] Program environment and preprocessing
随机推荐
Atomic Guarantees of Redis Distributed Locks
SQL Server data type conversion function cast () and convert () explanation
cnpm安装步骤
山西省第二届网络安全技能大赛(企业组)部分赛题WP(七)
05全局配置文件application.properties详解
WEB penetration of information collection
[SQL] at a certain correlation with a table of data update another table
MySQL 字符串拼接 - 多种字符串拼接实战案例
深圳见!云原生加速应用构建专场:来看云原生 FinOps、SRE、高性能计算场景最佳实践
[MRCTF2020]Hello_ misc
The underlying mechanism of the function
MySql 怎么查出符合条件的最新的数据行?
Based on all volunteers - H and D1 XR806 rare plant monitoring device
golang八股文整理(持续搬运)
2021 Shandong Province Network Construction and Application Test Questions
Azure 开发者新闻快讯丨开发者7月大事记一览
Thinkphp 5.0.24变量覆盖漏洞导致RCE分析
Taobao H5 interface to obtain app data 6.0 format
山西省第二届网络安全技能大赛(企业组)部分赛题WP(八)
【翻译】Envoy Fundamentals,这是一个培训课程,使人们能够更快地采用Envoy Proxy。...