gpt4 book ai didi

java - 从 Windows 使用 wsimport - url = http ://www. webservicex.net/geoipservice.asmx?WSDL

转载 作者:行者123 更新时间:2023-12-05 08:58:19 27 4
gpt4 key购买 nike

我在使用 URL 时遇到此错误

http://www.webservicex.net/geoipservice.asmx?WSDL
C:\Program Files (x86)\Java\jdk1.6.0_18\bin>wsimport **<URL>**
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 **<URL>**

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

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

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

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

最佳答案

此错误表明编译器需要 GeoIP.java 才能继续 - 这应该(技术上)由您的 WSDL 提供。我有这个错误,这是因为我没有写入目录的权限(在这种情况下,您正在写入 C:\Program Files (x86)\Java\jdk1.6.0_18\bin - 简单测试就是尝试在此目录中运行 mkdir TEST),因此无法写入 GeoIP(例如)。

使用 -d 开关指定一个目录,或者将您的工作目录更改为您有权限的目录。

关于java - 从 Windows 使用 wsimport - url = http ://www. webservicex.net/geoipservice.asmx?WSDL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24583555/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com