根据本地wsdl文件生成webservice客户端代码 工具包 apache-cxf-3.2.7
参考文章
理论知识参考文章 : https://www.cnblogs.com/leeego-123/p/10404631.html
https://www.cnblogs.com/eyesmoon/p/9997084.html
命令
wsdl2java -encoding utf-8 -p cn.yl -d D:\develop\project -client D:\develop\safemanage-order.wsdl
(1)-p 指定其wsdl的命名空间,也就是要生成代码的包名;
(2)-d 指定要产生代码所在目录 ;
(3)-client 生成客户端测试web service的代码 ;
(4)-server 生成服务器启动web service的代码
<!-- apache cxf -->
<!--<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-spring-boot-starter-jaxws</artifactId>
<version>3.5.0</version>
<exclusions>
<exclusion>
<artifactId>asm</artifactId>
<groupId>org.ow2.asm</groupId>
</exclusion>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>-->

浙公网安备 33010602011771号