当前位置:网站首页>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的代码 。
边栏推荐
- MySQL 操作语句大全(详细)
- handler+message【消息机制】
- 【MySQL系列】-B+树索引和HASH索引有什么区别
- DAY17: weak password detection and test
- Notes on "The Law of Construction"---Chapter 10 Typical Users and Scenarios
- 2.4希尔排序
- The Azure developer news 丨 memorabilia in July
- Golang eight-legged text finishing (continuous handling)
- unity初学5 摄像机跟随,边界控制以及简单的粒子控制(2d)
- How does MySql find out the latest data row that meets the conditions?
猜你喜欢

Based on all volunteers - H and D1 XR806 rare plant monitoring device

2.6基数排序(桶排序)

MySQL operation statement Daquan (detailed)

1. 获取数据-requests.get()

sqlmap use tutorial Daquan command Daquan (graphics)

DAY17:弱口令的探测与测试

What are Redis server startup after the operation?

What is CDH/CDP?

Shanxi group (enterprises) in the second network security skills competition part problem WP (7)

MySQL 安装报错的解决方法
随机推荐
SQLSERVER merges subquery data into one field
The 2nd Shanxi Province Network Security Skills Competition (Enterprise Group) Part of the WP (9)
How to Effectively Conduct Retrospective Meetings (Part 1)?
The Azure developer news 丨 memorabilia in July
【MySQL系列】-B+树索引和HASH索引有什么区别
golang八股文整理(持续搬运)
【C语言】程序环境和预处理
Introduction to database - MySQL simple introduction
[MRCTF2020]Hello_ misc
What are Redis server startup after the operation?
宇宙的尽头是银行?聊聊在银行做软件测试的那些事
05 Detailed explanation of the global configuration file application.properties
Charles 替换 接口响应信息
Chapter8 支持向量机
DAY17:弱口令的探测与测试
2.4 hill sorting
Charles replaces the interface response information
PyG builds R-GCN to realize node classification
Code open source design and implementation ideas
小程序 wx.miniProgram.navigateTo 跳转地址不能是tabbar地址