Results 1 to 2 of 2

Thread: suggested improvement for findImports in CommonsXsdSchemaCollection, inline=true

  1. #1
    Join Date
    Mar 2007
    Posts
    7

    Default 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. #2

    Default

    Could you please post more details? Ideally a test case or a scenario. Thanks!
    Tareq Abedrabbo

    My Twitter
    My Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •