Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
XmlSchema 1.4.7
-
None
-
None
-
Windows 7
Description
I have a WSDL file in a folder whose name contains a space (the path contains two spaces to be exact). This file in turn references a couple of XSD files which also have spaces in the paths (I don't know if this is relevant though). In short, when running the Axis2 utility wsdl2java, I get the exception mentioned in the summary. I'm using Axis2 1.6.0, which again is using XmlSchema 1.4.7.
I have modified the source code locally, and it fixes my problem. It's simply a matter of adding one line to DefaultURIResolver.java (plus a comment), making the code look as such:
// if the schema location contain spaces URI parser gives errors schemaLocation = schemaLocation.replace(" ","%20"); // if the base URI contains spaces URI parser gives errors baseUri = baseUri.replace(" ","%20"); // THIS LINE HAS BEEN ADDED + THE ABOVE COMMENT
The changes were added after line 66 in the source file from the 1.4.7 release.