Skip to content

WSDL generation issue when xsds import other xsds [SWS-362] #514

@gregturn

Description

@gregturn

olivier opened SWS-362 and commented

This issue is linked to the following thread http://forum.springframework.org/showthread.php?p=176210

I store my schemas in a specific maven project together with the generated sources.

client-messages.xsd import client-types.xsd

In my war project, I configured the Spring-WS config file this way:

<bean id="schemaCollection" class="org.springframework.xml.xsd.commons.CommonsXsdSchemaCollection">
<property name="xsds">
<list>
<value>classpath:client-messages.xsd</value>
</list>
</property>
<property name="inline" value="true" />
</bean>

When generating the wsdl, the framework complains that the client-types.xsd is not found.

Would it be possible to enhance the XsdSchemaCollection (or to write a specific org.apache.ws.commons.schema.resolver.URIResolver) which can handle the import nicely ?

Workaround is twofolds:

  • put the xsds in the war file
  • merge the xsds in one single file (no more import statement)

Referenced from: commits 341aad6

1 votes, 2 watchers

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions