SOAPUI在SpringWSSOAP服务中找不到依赖WSDL的XSD文件

SOAPUI在SpringWSSOAP服务中找不到依赖WSDL的XSD文件,spring,web-services,soap,xsd,wsdl,Spring,Web Services,Soap,Xsd,Wsdl,我有一个SpringSOAPWeb服务,它托管一个导入多个XSD文件的WSDL。WEB-INF文件夹内的结构如下: WEB-INF │ spring-ws-servlet.xml │ web.xml │ └───Esquemas │ composite.xml │ Esquemas.jpr │ EsquemasApplication.jws │ SIAS.wsdl │ ├───src │ └───META-INF

我有一个SpringSOAPWeb服务,它托管一个导入多个XSD文件的WSDL。WEB-INF文件夹内的结构如下:

WEB-INF
│   spring-ws-servlet.xml
│   web.xml
│
└───Esquemas
    │   composite.xml
    │   Esquemas.jpr
    │   EsquemasApplication.jws
    │   SIAS.wsdl
    │
    ├───src
    │   └───META-INF
    │           jps-config.xml
    │
    ├───xsd
    │   │   hello.html
    │   │   readme.txt
    │   │   SIAS.xsd
    │   │
    │   ├───common
    │   │       CommonInterchange.xsd
    │   │       CommonTypes.xsd
    │   │       IdentifyReply.xsd
    │   │       readme.txt
    │   │
    │   └───interchange
    │           CAEFF.xsd
    │           CSEFF.xsd
    │           readme.txt
    │
    └───xsl
我正在运行IntelliJ Idea Ultimate的项目。项目运行良好,我可以看穿wsdl

http://localhost:8080/sias.wsdl
但是,当我尝试在SoapUI中生成webservice测试时,出现以下错误:

Error loading [http://localhost:8080/xsd/interchange/CAEFF.xsd]: org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error:
事实上,当我在浏览器中尝试该URL时,我会得到一个404错误代码

如何通过GET使/WEB-INF/Esquemas/xsd/下的文件夹xsd可用

这是我的web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
             http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
         version="2.4">

    <display-name>Archetype Created Web Application</display-name>

    <servlet>
        <servlet-name>spring-ws</servlet-name>
        <servlet-class>org.springframework.ws.transport.http.MessageDispatcherServlet</servlet-class>
        <init-param>
            <param-name>transformWsdlLocations</param-name>
            <param-value>true</param-value>
        </init-param>
    </servlet>

    <servlet-mapping>
        <servlet-name>spring-ws</servlet-name>
        <url-pattern>*.wsdl</url-pattern>
    </servlet-mapping>

</web-app>

Web应用程序创建的原型
春季天气预报
org.springframework.ws.transport.http.MessageDispatcherServlet
转换wsdllocations
真的
春季天气预报
*.wsdl
这是我的spring-ws-servlet.xml文件

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:context="http://www.springframework.org/schema/context"
   xmlns:mvc="http://www.springframework.org/schema/mvc"
   xmlns:sws="http://www.springframework.org/schema/web-services"
   xsi:schemaLocation="http://www.springframework.org/schema/beans     http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  http://www.springframework.org/schema/web-services http://www.springframework.org/schema/web-services/web-services-2.0.xsd
  http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
  http://www.springframework.org/schema/mvc
         http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">

    <context:component-scan base-package="com.app.sample"/>

    <sws:annotation-driven/>


    <sws:static-wsdl id="sias"
                     location="/WEB-INF/Esquemas/SIAS.wsdl"/>

</beans>


我发现了问题。我使用较旧的版本生成jaxb类,使用较新的版本生成SoapUi请求。这两个版本的名称空间略有不同。

我有相同的问题,并尝试使用不同版本的SOAP UI。但还是给出了同样的问题。我是spring新手,对我的注释类不太确定。我可以在浏览器中看到WSDL,并尝试创建一个抛出错误的SOAP项目。无法解析架构文件中的导入。您是否也可以共享剩余的类。或者共享示例项目。