protected InputStream initXRServiceStream(ClassLoader parentClassLoader, @SuppressWarnings("unused") ServletContext sc) { InputStream xrServiceStream = null; for (String searchPath : META_INF_PATHS) { String path = searchPath + DBWS_SERVICE_XML; xrServiceStream = parentClassLoader.getResourceAsStream(path); if (xrServiceStream != null) { break; } } if (xrServiceStream == null) { throw new WebServiceException(DBWSException.couldNotLocateFile(DBWS_SERVICE_XML)); } return xrServiceStream; }
protected InputStream initXRServiceStream(ClassLoader parentClassLoader, @SuppressWarnings("unused") ServletContext sc) { InputStream xrServiceStream = null; for (String searchPath : META_INF_PATHS) { String path = searchPath + DBWS_SERVICE_XML; xrServiceStream = parentClassLoader.getResourceAsStream(path); if (xrServiceStream != null) { break; } } if (xrServiceStream == null) { throw new WebServiceException(DBWSException.couldNotLocateFile(DBWS_SERVICE_XML)); } return xrServiceStream; }
protected InputStream initXRSchemaStream(ClassLoader parentClassLoader, ServletContext sc) { InputStream xrSchemaStream = null; String path = WSDL_DIR + DBWS_SCHEMA_XML; if (sc != null) { path = "/" + WEB_INF_DIR + path; xrSchemaStream = sc.getResourceAsStream(path); } else { // if ServletContext is null, then we are running in JavaSE6 'container-less' mode xrSchemaStream = parentClassLoader.getResourceAsStream(path); } if (xrSchemaStream == null) { throw new WebServiceException(DBWSException.couldNotLocateFile(DBWS_SCHEMA_XML)); } return xrSchemaStream; }
protected InputStream initXRSchemaStream(ClassLoader parentClassLoader, ServletContext sc) { InputStream xrSchemaStream = null; String path = WSDL_DIR + DBWS_SCHEMA_XML; if (sc != null) { path = "/" + WEB_INF_DIR + path; xrSchemaStream = sc.getResourceAsStream(path); } else { // if ServletContext is null, then we are running in JavaSE6 'container-less' mode xrSchemaStream = parentClassLoader.getResourceAsStream(path); } if (xrSchemaStream == null) { throw new WebServiceException(DBWSException.couldNotLocateFile(DBWS_SCHEMA_XML)); } return xrSchemaStream; }
protected InputStream initWSDLInputStream(ClassLoader parentClassLoader, ServletContext sc) { InputStream wsdlInputStream = null; String path = WSDL_DIR + DBWS_WSDL; if (sc != null) { path = "/" + WEB_INF_DIR + path; wsdlInputStream = sc.getResourceAsStream(path); } else { // if ServletContext is null, then we are running in JavaSE6 'container-less' mode wsdlInputStream = parentClassLoader.getResourceAsStream(path); } if (wsdlInputStream == null) { throw new WebServiceException(DBWSException.couldNotLocateFile(DBWS_WSDL)); } return wsdlInputStream; }
protected InputStream initWSDLInputStream(ClassLoader parentClassLoader, ServletContext sc) { InputStream wsdlInputStream = null; String path = WSDL_DIR + DBWS_WSDL; if (sc != null) { path = "/" + WEB_INF_DIR + path; wsdlInputStream = sc.getResourceAsStream(path); } else { // if ServletContext is null, then we are running in JavaSE6 'container-less' mode wsdlInputStream = parentClassLoader.getResourceAsStream(path); } if (wsdlInputStream == null) { throw new WebServiceException(DBWSException.couldNotLocateFile(DBWS_WSDL)); } return wsdlInputStream; }
throw DBWSException.couldNotLocateFile(DBWS_SESSIONS_XML);
throw DBWSException.couldNotLocateFile(DBWS_SESSIONS_XML);