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
提示错误
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
相关文章推荐
- ASP.NET WebService中使用ASP.NET_SessionId的问题说明
- ASP调用WebService转化成JSON数据,附json.min.asp
- js调用webservice构造SOAP进行身份验证
- ajax跨域调用webservice的实现代码
- ASP.NET调用WebService服务的方法详解
- php的webservice的wsdl的XML无法显示问题的解决方法
- PHP调用Webservice实例代码
- 在PHP中利用wsdl创建标准webservice的实现代码
- JQuery调webservice实现邮箱验证(检测是否可用)
- WebService出现"因 URL 意外地以 结束,请求格式无法识别"的解决方法
- 用JavaScript调用WebService的示例
- jQuery调用WebService返回JSON数据及参数设置注意问题
- 同步调用和异步调用WebService
- C#调用WebService实例开发
- 动态webservice调用接口并读取解析返回结果
- WebService 的简单封装接口调用方法
- ASP.NET实现基于Forms认证的WebService应用实例
- C#使用WebService结合jQuery实现无刷新翻页的方法
- C#调用和实现WebService,纯手工打造!
- PHP使用SOAP扩展实现WebService的方法