use of nl.nn.javax.wsdl.xml.WSDLReader in project iaf by ibissource.
the class ClassLoaderWSDLLocator method setWsdl.
public void setWsdl(String wsdl) throws ConfigurationException {
this.wsdl = wsdl;
WSDLReader reader = FACTORY.newWSDLReader();
reader.setFeature("javax.wsdl.verbose", false);
reader.setFeature("javax.wsdl.importDocuments", true);
ClassLoaderWSDLLocator wsdlLocator = new ClassLoaderWSDLLocator(classLoader, wsdl);
URL url = wsdlLocator.getUrl();
if (wsdlLocator.getUrl() == null) {
throw new ConfigurationException("Could not find WSDL: " + wsdl);
}
try {
definition = reader.readWSDL(wsdlLocator);
} catch (WSDLException e) {
throw new ConfigurationException("WSDLException reading WSDL or import from url: " + url, e);
}
if (wsdlLocator.getIOException() != null) {
throw new ConfigurationException("IOException reading WSDL or import from url: " + url, wsdlLocator.getIOException());
}
}
Aggregations