当我尝试使用 wsimport http://www.webservicex.net/geoipservice.asmx?WSDL
时,该命令仅生成 .class 文件。
当我尝试使用wsimport -keep -s目录http://www.webservicex.net/geoipservice.asmx?WSDL
时,命令生成.class文件和.java文件。
有没有参数只生成.java文件。
最佳答案
使用 -Xnocompile 标志
wsimport -keep -Xnocompile http://www.webservicex.net/geoipservice.asmx?WSDL
关于java - 如何使用 wsimport 从 WSDL 文件中仅获取源文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37776171/