springboot-bucket/springboot-cxf/README.md
2018-06-15 18:40:21 +08:00

30 lines
607 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 实现WebService
利用Apache CXF实现WebService
启动之后wsdl访问链接<http://localhost:8092/services/CommonService?wsdl>
## 客户端动态代理调用
这个在单元测试类ApplicationTests中有演示
## 生产客户端代码
apache的wsdl2java工具使用`-autoNameResolution`自动处理
```
wsdl2java -autoNameResolution http://xxx?wsdl
```
JDK自带的工具
```
wsimport -p com.enzhico.land.client -keep http://xxx?wsdl -s d:/ws -B-XautoNameResolution
```
## 许可证
Copyright (c) 2018 Xiong Neng
基于 MIT 协议发布: <http://www.opensource.org/licenses/MIT>