在上一篇博客中,我们使用了两个命令:
wsgen -cp D:\WorkSpaces\WorkSpace_SSM\jaxws-demo\target\classes com.deppon.demo.jaxws.service.impl.UserService -wsdl -s src -d bin -r src
wsimport -keep -d bin -s src http://localhost:8080/jaxws-demo/userService?wsdl
在这里,我们讲一下他的用法(官方文档上都有,可以直接看官方的)
1.wsgen
The wsgen tool generates JAX-WS portable artifacts used in JAX-WS web services. The tool reads a web service endpoint class and generates all the required artifacts for web service deployment, and invocation.
大体上就是:我们可以使用这个命令,根据Class文件,生成WSDL等相关文件
输入命令:
wsgen -help
可以显示出该命令的帮助,
当然,如果你没有配置环境变量的话&