Affects Version/s: 3.2.4
Fix Version/s: None
When generating a client Jar with wsdl2java it can happen that the resulting WSDL in the clientjar contains an import with an empty schema location:
<xs:import namespace="http://www.w3.org/2005/05/xmlmime" schemaLocation=""/>
This leads to following exception at runtime:
If we edit the WSDL in the clientjar and remove the attribute schemaLocation on the import tag the runtime the WSDLException does not occur anymore.
How to reproduce:
- Download the attached WSDL (fileDownload.wsdl) created specifically for this issue.
- Execute wsdl2java -d out -clientjar fileDownload.jar fileDownload.wsdl
- Open the fileDownload.wsdl in the root of the generated fileDownload.jar
- Now you should see the line: <xs:import namespace="http://www.w3.org/2005/05/xmlmime" schemaLocation=""/> (Note the empty schema location)
Idea on how to fix:
Maybe don't write the schemaLocation attribute when it's empty string or null?