Search in sources :

Example 1 with WSDLException

use of nl.nn.javax.wsdl.WSDLException 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());
    }
}
Also used : ConfigurationException(nl.nn.adapterframework.configuration.ConfigurationException) WSDLException(nl.nn.javax.wsdl.WSDLException) WSDLReader(nl.nn.javax.wsdl.xml.WSDLReader) URL(java.net.URL)

Aggregations

URL (java.net.URL)1 ConfigurationException (nl.nn.adapterframework.configuration.ConfigurationException)1 WSDLException (nl.nn.javax.wsdl.WSDLException)1 WSDLReader (nl.nn.javax.wsdl.xml.WSDLReader)1