I'm generating .java
files using wsimport in the command line as follows:
C:\temp>"%JAVA_HOME%\bin\wsimport" -d . -p com.package.name -keep -extension -Xnocompile File.wsdl
I'm successfully generating .java
files from the .wsdl
files I'm giving it, but the .java
files' source version is at least 5.0 as it includes varargs [function(Integer... myInts)
] and annotations (@WebServiceClient(
...)
etc.).
It's easy enough to comment out the annotations, but the varargs are proving a little more difficult to convert for compliance to my source version (1.3). Is there a simple way to tell wsimport to generate source code at a certain compliance level? Or is there a better solution?