简体   繁体   English

java soap Web服务.wsimport

[英]java soap web services .wsimport

I am new to webservices and I am very eager to learn more about web services. 我是Web服务的新手,我非常渴望了解有关Web服务的更多信息。 But when I try to parse a WSDL using the wsimport tool from command prompt I get an error. 但是,当我尝试使用wsimport工具从命令提示符下解析WSDL时,出现错误。

WSDL url: http://www.webservicex.net/geoipservice.asmx?WSDL WSDL网址: http : //www.webservicex.net/geoipservice.asmx? WSDL

error: 错误:

[ERROR] com.sun.istack.internal.SAXParseException2; [错误] com.sun.istack.internal.SAXParseException2; www.webservicex.net www.webservicex.net

Failed to read the WSDL document: http://www.webservicex.net/geoipservice.asmx?WSDL , because 1) could not find the document; 无法阅读WSDL文档: http : //www.webservicex.net/geoipservice.asmx? WSDL,因为1)找不到该文档; /2) the document could not be read; / 2)无法读取文件; cument is not . 事实并非如此。

[ERROR] failed.noservice=Could not find wsdl:service in the provided WSDL(s): [错误] failed.noservice =在提供的WSDL中找不到wsdl:service:

At least one WSDL with at least one service definition needs to be provided. 需要提供至少一个具有至少一个服务定义的WSDL。

  Failed to parse the WSDL. 

Please make sure that you have set your proxy server. 请确保已设置代理服务器。

You can set it by going to internet explorer. 您可以通过转到Internet Explorer进行设置。 Inside Internet explorer go to settings(tools) > Internet Options > Connections > Lan Settings > Proxy Server 在Internet Explorer内,转到设置(工具)> Internet选项>连接>局域网设置>代理服务器

Give a proxy server and port number. 提供代理服务器和端口号。

Proxy server and port number will vary differently from organisation to organisation. 代理服务器和端口号因组织而异。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM