Community
Participate
Working Groups
Build Identifier: 20100218-1602 WSDL validator failed to import resolve if the root WSDL file uri is a network path for example \\hostname\\filename.wsdl Reproducible: Always Steps to Reproduce: 1.Create a WSDL document fileA which imports another WSDL document fileB.WSDL validator works fine if both the files are on the local file system 2. Move both the files to a network shared location \\hostname 3.Now validate the WSDL uri \\hostname\fileA. Validation throws a warning that it could not resolve fileB and any references to components in fileB are not resolved.
In Step 3, how exactly are you validating fileA.wsdl?
(In reply to comment #1) > In Step 3, how exactly are you validating fileA.wsdl? I am using the standalone wst wsdl validator
How are you invoking the validator and specifying the wsdl file from the network path/share ?
(In reply to comment #3) > How are you invoking the validator and specifying the wsdl file from the > network path/share ? I have written a java program with GUI to browse the file over network path.Here is the snippet for calling the validator. WSDLValidator validator = new WSDLValidator() IValidationReport validationReport = validator.validate( ResourceUtils.createURI(uriString).toString(), inputStream, getValidationConfiguration());
(In reply to comment #4) > (In reply to comment #3) > > How are you invoking the validator and specifying the wsdl file from the > > network path/share ? > > I have written a java program with GUI to browse the file over network > path.Here is the snippet for calling the validator. > > > WSDLValidator validator = new WSDLValidator() > IValidationReport validationReport = validator.validate( > ResourceUtils.createURI(uriString).toString(), > inputStream, getValidationConfiguration()); private WSDLValidationConfiguration getValidationConfiguration() { if (configuration == null) { configuration = new WSDLValidationConfiguration(); configuration.setProperty(Constants.XMLSCHEMA_CACHE_ATTRIBUTE, new InlineSchemaModelGrammarPoolImpl()); configuration.setProperty(Constants.XML_CACHE_ATTRIBUTE, new XMLGrammarPoolImpl()); } return configuration; } public static URI createURI(String uriString){ if (isURL(uriString)){ return URI.createURI(uriString); } else return URI.createFileURI(uriString); }