java SOAP 网络服务 .wsimport

标签 java web-services soap wsdl

我是网络服务新手,我非常渴望了解有关网络服务的更多信息。 但是,当我尝试在命令提示符下使用 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/

相关文章:

java - 如何使用 Spring 和 Active Directory 实现单点登录

java - XML 文件似乎没有任何样式信息

java - 使用 angularjs 和 json spring 方法帖子中的对象数组

web-services - Indy IdHTTPServer GET 响应参数随机丢失

java - 调用soap webservice时出现异常

java - H2 内存DB在MySQL模式下对ORDER BY的处理方式不同

java - Embeddable 中枚举的 @ElementCollection

java - 如何从 getDateTimeInstance 获取毫秒

python - salesforce python Beatbox 导入错误

java - SOAP 授权