我是网络服务新手,我非常渴望了解有关网络服务的更多信息。
但是,当我尝试在命令提示符下使用 wsimport
工具解析 WSDL 时,出现错误。
WSDL 网址:http://www.webservicex.net/geoipservice.asmx?WSDL
错误:
[ERROR] com.sun.istack.internal.SAXParseException2; www.webservicex.net
Failed to read the WSDL document: http://www.webservicex.net/geoipservice.asmx?WSDL, because 1) could not find the document; /2) the document could not be read; cument is not .
[ERROR] failed.noservice=Could not find wsdl:service in the provided WSDL(s):
At least one WSDL with at least one service definition needs to be provided.
Failed to parse the WSDL.
最佳答案
请确保您已设置代理服务器。
您可以通过 Internet Explorer 进行设置。 在 Internet Explorer 中转至设置(工具)> Internet 选项 > 连接 > Lan 设置 > 代理服务器
提供代理服务器和端口号。
代理服务器和端口号因组织而异。
关于java SOAP 网络服务 .wsimport,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32579888/