您的位置:首页 > 编程语言 > Java开发

java jdk自带的发布服务,wsimport命令生成客户端出错

2016-05-26 15:28 651 查看
服务发布成功,能访问到服务也可以访问到wsdl文件,使用wsimport命令生成客户端代码的时候出错。
提示错误

E:\code\LianXiCode\client\src>wsimport -p test -keep http://localhost:8082/servi
ce/HelloWorld?wsdl

parsing WSDL...

[ERROR] Unexpected end of file from server

Failed to read the WSDL document: http://localhost:8082/service/HelloWorld?wsdl,
 because 1) could not find the document; /2) the document could not be read; 3)

the root element of the document is not <wsdl:definitions>.

[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选项>连接>局域网设置>禁用所有复选框

http://stackoverflow.com/questions/25567117/wsimport-not-working
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  webservice