2
votes

I get this error when I used the url, http://www.webservicex.net/geoipservice.asmx?WSDL

C:\Program Files (x86)\Java\jdk1.6.0_18\bin>wsimport parsing WSDL...

[WARNING] Ignoring SOAP port "GeoIPServiceSoap12": it uses non-standard SOAP 1.2 binding. You must specify the "-extension" option to use this binding. line 197 of

[WARNING] ignoring port "GeoIPServiceHttpGet": no SOAP address specified. try ru nning wsimport with -extension switch. line 200 of

[WARNING] ignoring port "GeoIPServiceHttpPost": no SOAP address specified. try r unning wsimport with -extension switch. line 203 of generating code...

[ERROR] .\net\webservicex\GeoIP.java (The system cannot find the path specified)

C:\Program Files (x86)\Java\jdk1.6.0_18\bin>

2

2 Answers

5
votes

This error suggests the compiler needs GeoIP.java in order to progress - which should (technically) be given by your WSDL. I had this error, and it was because I did not have permissions to write to the directory (in this case, you're writing to C:\Program Files (x86)\Java\jdk1.6.0_18\bin - simple test would just be to try and run mkdir TEST in this directory) so GeoIP (for example) could not be written.

Specify a directory using the -d switch or change your working directory to one where you have permissions.

3
votes

This error is coming because of permission issue.

C:\Program Files\Java\jdk1.8.0_65\bin> mkdir test   

Access is denied.

Try using another directory to place generated files.

wsimport [options] < WSDL_URL > -d <directory>

specifies where to place generated output files

E:\sei is the directory, i am using to place output class files.

C:\Program Files\Java\jdk1.8.0_65\bin> wsimport -d E:\sei http://www.webservicex.net/geoipservice.asmx?wsdl