engines/servicemix-pdf/src/main/java/org/apache/servicemix/pdfcomposer/PdfComposerEndpoint.java [154:179]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void validate() throws DeploymentException {
        try {
            if (wsdl == null) {
                // the user hasn't provided the WSDL, we use the default one
                wsdl = new ClassPathResource(DEFAULT_WSDL);
            }

            // load the WSDL in the endpoint
            description = DomUtil.parse(wsdl.getInputStream());
            definition = javax.wsdl.factory.WSDLFactory.newInstance().newWSDLReader().readWSDL(null, description);

            // cleanup WSDL to be sure thats it's an abstract one
            // cleanup services
            QName[] qnames = (QName[]) definition.getServices().keySet().toArray(new QName[0]);
            for (int i = 0; i < qnames.length; i++) {
                definition.removeService(qnames[i]);
            }
            // cleanup binding
            qnames = (QName[]) definition.getBindings().keySet().toArray(new QName[0]);
            for (int i = 0; i < qnames.length; i++) {
                definition.removeBinding(qnames[i]);
            }
        } catch (Exception e) {
            throw new DeploymentException("Can't load WSDL.", e);
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



engines/servicemix-pdf/src/main/java/org/apache/servicemix/pdf/PdfComposerEndpoint.java [153:178]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void validate() throws DeploymentException {
        try {
            if (wsdl == null) {
                // the user hasn't provided the WSDL, we use the default one
                wsdl = new ClassPathResource(DEFAULT_WSDL);
            }

            // load the WSDL in the endpoint
            description = DomUtil.parse(wsdl.getInputStream());
            definition = javax.wsdl.factory.WSDLFactory.newInstance().newWSDLReader().readWSDL(null, description);

            // cleanup WSDL to be sure thats it's an abstract one
            // cleanup services
            QName[] qnames = (QName[]) definition.getServices().keySet().toArray(new QName[0]);
            for (int i = 0; i < qnames.length; i++) {
                definition.removeService(qnames[i]);
            }
            // cleanup binding
            qnames = (QName[]) definition.getBindings().keySet().toArray(new QName[0]);
            for (int i = 0; i < qnames.length; i++) {
                definition.removeBinding(qnames[i]);
            }
        } catch (Exception e) {
            throw new DeploymentException("Can't load WSDL.", e);
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



