Announcement Announcement Module
Collapse
No announcement yet.
suggested improvement for findImports in CommonsXsdSchemaCollection, inline=true Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • suggested improvement for findImports in CommonsXsdSchemaCollection, inline=true

    Hi,

    using org.springframework.xml.xsd.commons.CommonsXsdSche maCollection if you have a group of schemas it is possible that when inline=true that you will get multiple definitions of the same element (which makes your wsdl invalid).

    In the findImports method adding
    private void findImports(XmlSchema schema, Set processedImports, Set processedIncludes) {
    if (!processedImports.contains(schema))
    {
    // rest of the code as is
    }
    }

    gets round this problem.

    Norman

  • #2
    Could you please post more details? Ideally a test case or a scenario. Thanks!

    Comment

    Working...
    X