Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-575

CommonsXsdSchemaCollection: Combination of xs:includes and xs:imports in a schema result in incorrect/overcomplete schema in wsdl generated by DefaultWsdl11Definition

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.8
    • Fix Version/s: 1.5.9
    • Component/s: XML
    • Labels:
      None
    • Environment:
      Not relevant, issue reproduced on both windows/jboss4.3 and Mac OS X 10.5.8/tomcat 6.0.18

      Description

      When using a DefaultWsdl11Definition for wsdl generation I used a CommonsXsdSchemaCollection to combine a set of xsd's. I found out that when a schema uses a mix of xs:imports and xs:includes, the inline schema in the generated wsdl (inside <wsdl:types>) contains an error. Both xs:imports and xs:includes are 'expanded' inline in the generated wsdl, but the xs:include lines are not removed from the inline schema, causing test tools like SOAPUI to fail (included schema's cannot be retrieved).

        Activity

        gizit Gisbert van Rossum created issue -
        arjen.poutsma Arjen Poutsma made changes -
        Field Original Value New Value
        Fix Version/s 1.5.9 [ 11296 ]
        Hide
        gizit Gisbert van Rossum added a comment -

        holidayservice showing the issue

        Show
        gizit Gisbert van Rossum added a comment - holidayservice showing the issue
        gizit Gisbert van Rossum made changes -
        Attachment holidayService.zip [ 15964 ]
        arjen.poutsma Arjen Poutsma made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        It seems that if I put the include before the import in hr.xsd, all works well.

        Show
        arjen.poutsma Arjen Poutsma added a comment - It seems that if I put the include before the import in hr.xsd, all works well.
        arjen.poutsma Arjen Poutsma logged work - 10/Jan/10 8:10 PM
        • Time Spent:
          1h 43m
           
          <No comment>
        arjen.poutsma Arjen Poutsma made changes -
        Time Spent 1h 43m [ 6180 ]
        Remaining Estimate 0.25d [ 7200 ] 17m [ 1020 ]
        arjen.poutsma Arjen Poutsma made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        this should be fixed now.

        Show
        arjen.poutsma Arjen Poutsma added a comment - this should be fixed now.
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Closing old issues

        Show
        arjen.poutsma Arjen Poutsma added a comment - Closing old issues
        arjen.poutsma Arjen Poutsma made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        90d 10h 32m 1 Arjen Poutsma 10/Jan/10 6:26 PM
        In Progress In Progress Resolved Resolved
        1h 45m 1 Arjen Poutsma 10/Jan/10 8:12 PM
        Resolved Resolved Closed Closed
        844d 10h 51m 1 Arjen Poutsma 04/May/12 7:03 AM

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            gizit Gisbert van Rossum
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 0.25d
              0.25d
              Remaining:
              Time Spent - 1h 43m Remaining Estimate - 17m
              17m
              Logged:
              Time Spent - 1h 43m Remaining Estimate - 17m
              1h 43m