webservices springboot出错

时间:2017-06-07 08:25:16

标签: spring web-services soap spring-boot cxf

从wsdl创建webservice时遇到错误。

我已经配置了maven插件

 <groupId>org.apache.cxf</groupId>
 <artifactId>cxf-codegen-plugin</artifactId>

用于创建java类。

在我的wsdl中,我引用了 swaref.xsd

<xs:import namespace="http://ws-i.org/profiles/basic/1.1/xsd" schemaLocation="swaref.xsd"/>

当我启动springBoot应用程序时,我遇到以下错误:

enter image description here

你知道什么是错的吗?也许用apache cxf?

1 个答案:

答案 0 :(得分:0)

  1. 检查swaref.xsd是否与同一位置的wsdl文件一起存在
  2. 检查swaref.xsd是否包含相同的名称空间http://ws-i.org/profiles/basic/1.1/xsd,如wsdl-file
  3. 中所述
  4. 检查swaref.xsd是否是有效的xml,然后是有效的模式文件。
相关问题