`
stoneuu
  • 浏览: 44541 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

wsimport 天气出错 undefined element declaration s:schema

阅读更多

http://blog.csdn.net/lgh1117/article/details/7771876

http://shuany.iteye.com/blog/976920

 

我用的是wsimport  -s . 文件名

 

解决方式:

1

http://www.webxml.com.cn/WebServices/WeatherWebService?wsdl  另存  WeatherWebService.wsdl于wsdl2java相同目录下;打开 WeatherWebService.wsdl,将出现 <s:element ref="s:schema" />的地方全部删除;然后E:\05_core_source\03_apache\02_cxf\apache-cxf-2.3.3\bin>wsdl2java WeatherWebService.wsdl 即可;

 

我用的是wsimport

2

如果不保留xml文件或移动xml文件,需要将WeatherWebService中的第22行和第35行中的本地xml文件路径替换掉,最好为web路径

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics