Announcement Announcement Module
Collapse
No announcement yet.
Schema name conflict in collection. Spring-ws 1.5.9 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Schema name conflict in collection. Spring-ws 1.5.9

    Hello! I created 2 xsds:

    foo.xsd
    Code:
    <xs:schema xmlns="http://my.app.com/integration/1" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://my.app.com/integration/1" elementFormDefault="qualified" attributeFormDefault="unqualified">
    	<xs:include schemaLocation="bar.xsd"/>
    </xs:schema>
    bar.xsd
    Code:
    <xs:schema xmlns="http://my.app.com/integration/1" xmlns:oos="http://my.app.com/integration/1" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gost="http://www.w3.org/2001/04/xmldsig-more#" targetNamespace="http://my.app.com/integration/1" elementFormDefault="qualified" attributeFormDefault="unqualified">
    </xs:schema>
    and trying to create xxmlSchemeCollection for wsdl publishing

    ws-context.xml
    Code:
    <bean id="schemaCollection" class="org.springframework.xml.xsd.commons.CommonsXsdSchemaCollection">
            <description>
                Processing schema
            </description>
            <property name="xsds">
                <list>
                    <value>/WEB-INF/scheme/bar.xsd</value>
                    <value>/WEB-INF/scheme/foo.xsd</value>
                </list>
            </property>
            <property name="inline" value="true"/>
        </bean>
    i really can't figure out why i got this exception:
    Code:
    Caused by: org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in collection. Namespace: http://my.app.com/integration/1
    	at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:223)
    	at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:202)
    	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:424)
    	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:347)
    	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:379)
    	at org.springframework.xml.xsd.commons.CommonsXsdSchemaCollection.afterPropertiesSet(CommonsXsdSchemaCollection.java:147)
    	... 55 more
    I'm easily trying to "concat" the big file from pieces. Probably, problem is not in Spring-ws and I've missed the forum, but I have no idea how to solve this problem by my own/ Any help will be appreciated.
Working...
X