wsimport -keep -verbose http://www.webservicex.net/globalweather.asmx?WSDL
Porém não gerou a classe Stub para que eu possa realizar a chamado aos métodos do Server.
Segue o resultado da geração:
parsing WSDL...
[WARNING] Ignoring SOAP port "GlobalWeatherSoap12": it uses non-standard SOAP 1.2 binding.
You must specify the "-extension" option to use this binding.
line 199 of http://www.webservicex.net/globalweather.asmx?WSDL
[WARNING] ignoring port "GlobalWeatherHttpGet": no SOAP address specified. try running wsimport with -extension switch.
line 202 of http://www.webservicex.net/globalweather.asmx?WSDL
[WARNING] ignoring port "GlobalWeatherHttpPost": no SOAP address specified. try running wsimport with -extension switch.
line 205 of http://www.webservicex.net/globalweather.asmx?WSDL
generating code...
net\webservicex\GetCitiesByCountry.java
net\webservicex\GetCitiesByCountryResponse.java
net\webservicex\GetWeather.java
net\webservicex\GetWeatherResponse.java
net\webservicex\GlobalWeather.java
net\webservicex\GlobalWeatherSoap.java
net\webservicex\ObjectFactory.java
net\webservicex\package-info.java
compiling code...
Percebo que sempre que tento gerar um Client com um WS montado por outra linguagem que não seja o Java, tenho dificuldades de gerar a classe Stub.
Alguém sabe me explicar o pq essas classes não estão sendo geradas, ou se eu posso usar outra classe pra consumir o serviço?