WSDLFactory factory = WSDLFactory.newInstance(
WSIFConstants.WSIF_WSDLFACTORY);
WSDLReader wsdlReader = factory.newWSDLReader();
wsdlReader.setFeature(Constants.FEATURE_VERBOSE, false);
WSIFWSDLLocatorImpl lo = null;
try {
String url = (contextURL == null) ? null : contextURL.toString();
lo = new WSIFWSDLLocatorImpl(url, wsdlLoc, cl);
Definition def = wsdlReader.readWSDL(lo);
Trc.exitExpandWsdl(def);
return def;
} catch (WSDLException e) {
Trc.exception(e);
MessageLogger.log("WSIF.0002E", wsdlLoc);
throw e;
} finally {
try {
if (lo != null) lo.close();
} catch (IOException ioe) {
//ignore
Trc.ignoredException(ioe);
}
}