WSDLToJava Error: Thrown by JAXB : undefined element declaration 's:schema'

E:\05_core_source\03_apache\02_cxf\apache-cxf-2.3.3\bin>wsdl2java http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?wsdl

 

报错误:
WSDLToJava Error: Thrown by JAXB: undefined element declaration 's:schema' at line 44 column 19 of schema http://www.webxml.com.cn/WebServices/WeatherWebService
.asmx?wsdl

 

问题说明:未定义的元素声明

 

解决方式:

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 即可;

 

 

你可能感兴趣的:(apache)