This technote explains how to resolve an error "The following resources contain errors, please open Error Log view for more information: <filename>.wsdl" that can occur in IBM® Rational® AppScan Standard Edition in the Generic Services Client (GSC) Tool.
During the import of a WSDL file, it fails with a pop-up error message that reads:
The following resources contain errors, please open Error Log view for more informations:
When viewing the error log, an error message similar to this is displayed:
javax.wsdl.WSDLException: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema): faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced at 'http://www.w3.org/2005/05/xmlmime', relative to 'file:/C:/Program Files/IBM/Rational AppScan/workspace/GSC Store/TestService.wsdl'.: java.net.ConnectException: Connection timed out: connect
This is caused by the access to a URL that is being imported through the <xs:import ...> tag, http://www.w3.org/2005/05/xmlmime in this situation, does not respond in a timely fashion. As such GSC fails to resolve the WSDL import reference and terminates the import with the above error messages.
Resolving the problem
To get past this issue, complete these steps:
- Access the site that times out in a web-browser, in this case http://www.w3.org/2005/05/xmlmime
- Save the resulting page as an XML document. This should be saved to the same location as the WSDL file. Suggested filename for this instance is "xmlmime.xml".
- In the TestService.wsdl file, update any location references for http://www.w3.org/2005/05/xmlmime to be "xmlmime.xml". Do not change any namespace attributes, only locations e.g.:
<wsdl:definitions ... xmlns:xmime="xmlmime" ...>
<xs:import namespace="http://www.w3.org/2005/05/xmlmime" schemaLocation="xmlmime.xml" />
once all locations have been updated, it should then be possible to import the WSDL file through the Generic Services Client.