I get this error when I used the url, http://www.webservicex.net/geoipservice.asmx?WSDL
当我使用url http://www.webservicex.net/geoipservice.asmx?WSDL时,会出现这个错误
C:\Program Files (x86)\Java\jdk1.6.0_18\bin>wsimport parsing WSDL...
C:\Program Files (x86)\Java\ jdk1.6.0_18 \ bin > wsimport解析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
[警告]忽略SOAP端口“GeoIPServiceSoap12”:它使用非标准的SOAP 1.2绑定。要使用此绑定,必须指定“-extension”选项。的第197行
[WARNING] ignoring port "GeoIPServiceHttpGet": no SOAP address specified. try ru nning wsimport with -extension switch. line 200 of
[警告]忽略端口“GeoIPServiceHttpGet”:没有指定SOAP地址。尝试使用-扩展开关。的第200行
[WARNING] ignoring port "GeoIPServiceHttpPost": no SOAP address specified. try r unning wsimport with -extension switch. line 203 of generating code...
[警告]忽略“GeoIPServiceHttpPost”端口:没有指定SOAP地址。尝试使用-扩展开关的running wsimport。生成代码的第203行…
[ERROR] .\net\webservicex\GeoIP.java (The system cannot find the path specified)
(错误)。\ \ webservicex \ GeoIP净。java(系统无法找到指定的路径)
C:\Program Files (x86)\Java\jdk1.6.0_18\bin>
C:\Program Files (x86)\Java\ jdk1.6.0_18 \ bin >
2 个解决方案
#1
5
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.
这个错误表明编译器需要GeoIP。java为了进步——应该(技术上)由您的WSDL提供。我有这个错误,因为我没有权限写入的目录(在本例中,您正在编写C:\Program Files (x86)\Java\ jdk1.6.0_18 \ bin -简单的测试就是尝试在这个目录中运行测试mkdir)所以GeoIP(例如)不能写。
Specify a directory using the -d
switch or change your working directory to one where you have permissions.
使用-d开关指定一个目录,或者将工作目录更改为有权限的目录。
#2
3
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.
E:\sei是目录,我用来放置输出类文件。
C:\Program Files\Java\jdk1.8.0_65\bin> wsimport -d E:\sei http://www.webservicex.net/geoipservice.asmx?wsdl
#1
5
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.
这个错误表明编译器需要GeoIP。java为了进步——应该(技术上)由您的WSDL提供。我有这个错误,因为我没有权限写入的目录(在本例中,您正在编写C:\Program Files (x86)\Java\ jdk1.6.0_18 \ bin -简单的测试就是尝试在这个目录中运行测试mkdir)所以GeoIP(例如)不能写。
Specify a directory using the -d
switch or change your working directory to one where you have permissions.
使用-d开关指定一个目录,或者将工作目录更改为有权限的目录。
#2
3
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.
E:\sei是目录,我用来放置输出类文件。
C:\Program Files\Java\jdk1.8.0_65\bin> wsimport -d E:\sei http://www.webservicex.net/geoipservice.asmx?wsdl