Java Reference
In-Depth Information
Note You'll need to execute the set JAVA_HOME command every time you
want to run wsimport and open a command prompt. If you want to avoid this,
you can also edit the wsimport.bat file in a text editor and add the command
after the :LAUNCH line, so it looks like this:
:LAUNCH
set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_05
%JAVA% %WSIMPORT_OPTS% -jar "%JAXWS_HOME%\lib\jaxws-tools.jar" %*
Try to execute wsimport using the WSDL URL:
wsimport http://www.webservicex.net/stockquote.asmx?WSDL
However, you'll get an error message telling you that a schema document could not be read because
file access is not allowed, as shown in Figure 10-12.
figure 10-12  
To work around this, you need to set another variable, called WSIMPORT_OPTS , with the following
command:
Search WWH ::




Custom Search