xsd:include Ausnahme in soapUI:org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: Fehler: Unerwartetes Ende der Datei nach null

Ich habe ein problem beim erstellen eines neuen Projekts in soapUI und importieren der wsdl-Datei von URL.Es gibt mir die unten Ausnahme

Error loading [http://localhost:8080/WS/PersonalDetails.xsd]: org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: Fehler: Unerwartetes Ende der Datei nach null

Mein xsd include

<xsd:include schemaLocation="PersonalDetails.xsd" />
<xsd:include schemaLocation="PersonalRequest.xsd" />

Tatsächliche Lage der xsd -

WS/src/main/webapp/schemas/PersonalDetails.xsd

WS/src/main/webapp/schemas/PersonalRequest.xsd

Meine spring-ws.xml

<bean id="MyWSService" class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition" lazy-init="true">
    <property name="schemaCollection">
        <bean class="org.springframework.xml.xsd.commons.CommonsXsdSchemaCollection">
            <property name="inline" value="false" />
            <property name="xsds">
                <list>
                    <value>schemas/PersonalDetailsServiceOperations.xsd</value>
                </list>
            </property>
        </bean>
    </property>
    <property name="portTypeName" value="MyWSEndpoint"/>
    <property name="serviceName" value="MyWS" />
    <property name="locationUri" value="/"/>
</bean>

Meine PersonalDetailsServiceOperations.xsd

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:person="http://MyWS.com/"
targetNamespace="http://MyWS.com/"
elementFormDefault="qualified">
<xsd:include schemaLocation="PersonalDetails.xsd" />
<xsd:include schemaLocation="PersonalRequest.xsd" />
</xsd:schema>

Ich bin mit spring+Maven+xsd+jaxb

Bitte helfen

Vielen Dank

InformationsquelleAutor senthil raja | 2015-08-03
Schreibe einen Kommentar