private void parseWSDL() throws ParserConfigurationException, WSDLException, IOException, SAXException, UnknownOperationException { URLConnection connection = null; try { URL wsdlURL = configurationBean.getOperation().getWsdl().toURL(); connection = wsdlURL.openConnection(); connection.setConnectTimeout(RemoteHealthChecker.getTimeoutInSeconds() * 1000); connection.connect(); } catch (MalformedURLException e) { throw new IOException("Malformed URL", e); } catch (SocketTimeoutException e) { throw new IOException("Timeout", e); } catch (IOException e) { throw e; } finally { if ((connection != null) && (connection.getInputStream() != null)) { connection.getInputStream().close(); } } parser = new WSDLParser(configurationBean.getOperation().getWsdl().toString()); }