[SWS-353] Schema inlining results in duplicate inlining of files referenced from multiple files Created: 08/May/08  Updated: 21/Jul/08  Resolved: 08/May/08

Status: Closed
Project: Spring Web Services
Component/s: Core
Affects Version/s: 1.5.1
Fix Version/s: 1.5.2

Type: Bug Priority: Major
Reporter: Oliver Gierke Assignee: Arjen Poutsma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Any


Attachments: Java Source File CommonsXsdSchemaCollection.java    

 Description   

Suppose you have two files foo-response.xsd and bar-response.xsd referenceing a common domain.xsd the Dynamic WSDL creation will cause the domain.xsd to be inlined twice in the WSDL.

This causes trouble to JAX-WS wsimport utility as elements appera twice in the same namespace.



 Comments   
Comment by Oliver Gierke [ 08/May/08 ]

Added patched version of CommonsXsdSchemaCollection that does not include or import external XSDs twice.

Comment by Arjen Poutsma [ 08/May/08 ]

Fixed, thanks for the patch!

Comment by Arjen Poutsma [ 10/May/08 ]

One more thing, Oliver. Since you stripped the Apache preamble from the patch, I have to ask you explicitly:

Do you agree to share the attached patch under the terms of the Apache License, version 2?

Comment by Oliver Gierke [ 10/May/08 ]

Excuse me, Arjen. Of course I do. I tried to fix the issue by subclassing at first for the project i needed the functionality for but ended up copyng the entire class as extending it didn't work as well as expected. By copying the entire code I seem to have missed the license declaration.

Regards,
Ollie

Comment by Arjen Poutsma [ 21/Jul/08 ]

Closing issues in 1.5.2

Generated at Sun Dec 17 07:51:29 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.