| Summary: | WSDL validator failed to resolve import | ||
|---|---|---|---|
| Product: | [WebTools] WTP Webservices | Reporter: | seth <asethiya> |
| Component: | wst.wsdl | Assignee: | Project Inbox <wst.wsdl-triaged> |
| Status: | NEW --- | QA Contact: | Keith Chong <keith.chong.ca> |
| Severity: | normal | ||
| Priority: | P3 | CC: | ccc |
| Version: | 3.1.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
seth
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); } |