Search code examples
javaweb-servicessoapwsdl

How to get only source files from WSDL file using wsimport


When i tried to use wsimport http://www.webservicex.net/geoipservice.asmx?WSDL the command generate .class files only.

and when i tried to use wsimport -keep -s directory http://www.webservicex.net/geoipservice.asmx?WSDL the command generate .class files and .java files. is there any parameter to generate .java files only .


Solution

  • Use -Xnocompile flag

    wsimport -keep -Xnocompile http://www.webservicex.net/geoipservice.asmx?WSDL