Hello! I created 2 xsds:
foo.xsd
bar.xsdCode:<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>
and trying to create xxmlSchemeCollection for wsdl publishingCode:<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>
ws-context.xml
i really can't figure out why i got this exception: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'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.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


Reply With Quote