Error While generating java classes from WSDL using wsimport

jax-ws

I am developing web service using JAX-WS. After Publishing the web service when I tried to generate client stubs using wsimport I have found following issue.

C:\Documents and Settings\vberi\prac_workspace_27_05_2013\WS-Client\src>wsimport
 -s . http://ntlnvn.bmb.com:8080/WS/Greeting?wsdl

parsing WSDL…

[ERROR] file:/C:/Documents%20and%20Settings/vberi/prac_workspace_27_05_2013/WS-C
lient/src/ûs

is unreachable

    Failed to parse the `WSDL`.

**I am able to open wsdl through http://mtlnvn.bmb.com:8080/WS/Greeting?wsdl**

Best Answer

Try out the below steps:

  1. Go to the wsdl file http://www.webservicex.net/geoipservice.asmx?WSDL

  2. Right click save as (saving it to your local system), give some name say geoipservice (save type will be xml document by default, so don't save as geoipservice.xml again)

  3. Now type wsimport geoipservice.xml in cmd, you will get the generated class.

Related Topic