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

服务发布成功,能访问到服务也可以访问到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 .


[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)