Package org.apache.woden.wsdl20

Examples of org.apache.woden.wsdl20.Description.toElement()


                Description description;
                DescriptionElement descriptionElement;
                if (wsdlURI != null && !"".equals(wsdlURI)) {
                    description = readInTheWSDLFile(wsdlURI);
                    descriptionElement = description.toElement();
                } else if (in != null) {
                    description = readInTheWSDLFile(in);
                    descriptionElement = description.toElement();
                } else {
                    throw new AxisFault("No resources found to read the wsdl");
View Full Code Here


                if (wsdlURI != null && !"".equals(wsdlURI)) {
                    description = readInTheWSDLFile(wsdlURI);
                    descriptionElement = description.toElement();
                } else if (in != null) {
                    description = readInTheWSDLFile(in);
                    descriptionElement = description.toElement();
                } else {
                    throw new AxisFault("No resources found to read the wsdl");
                }

                savedTargetNamespace = descriptionElement.getTargetNamespace().toString();
View Full Code Here

        assertNotNull("The reader did not return a WSDL description.", descComp);
       
        fBindings = descComp.getBindings();
        fInterfaces = descComp.getInterfaces();
       
        DescriptionElement descElem = descComp.toElement();
        TypesElement types = descElem.getTypesElement()
    fSchemas = types.getSchemas();
    fImportedSchemas = types.getImportedSchemas();
    fInlinedSchemas = types.getInlinedSchemas();
       
View Full Code Here

        assertNotNull("The reader did not return a WSDL description.", descComp);
       
        fBindings = descComp.getBindings();
        fInterfaces = descComp.getInterfaces();
       
        DescriptionElement descElem = descComp.toElement();
        TypesElement types = descElem.getTypesElement()
    fSchemas = types.getSchemas();
    fImportedSchemas = types.getImportedSchemas();
    fInlinedSchemas = types.getInlinedSchemas();
       
View Full Code Here

        ErrorHandler handler = new TestErrorHandler();
        reader.setFeature(WSDLReader.FEATURE_VALIDATION, true);
        reader.getErrorReporter().setErrorHandler(handler);
        Description descComp = reader.readWSDL(wsdlURL.toString());
        assertNotNull("The reader did not return a WSDL description.", descComp);
        DescriptionElement desc = descComp.toElement();
       
        DocumentationElement doc = null;
        UnknownExtensionElement ee = null;
       
        //wsdl:description
View Full Code Here

            "org/apache/woden/wsdl20/xml/resources/ServiceElementTest.wsdl");
        assertNotNull("Failed to find the WSDL document on the classpath.", wsdlURL);
       
        Description descComp = fReader.readWSDL(wsdlURL.toString());
        assertNotNull("The reader did not return a description.", descComp);
        fParsedDesc = descComp.toElement();
       
        fParsedService = fParsedDesc.getServiceElements()[0];
        assertNotNull("The description does not contain a service.", fParsedService);
    }
View Full Code Here

            "org/apache/woden/wsdl20/xml/resources/EndpointElementTest.wsdl");
        assertNotNull("Failed to find the WSDL document on the classpath.", wsdlURL);
       
        Description descComp = fReader.readWSDL(wsdlURL.toString());
        assertNotNull("The reader did not return a description.", descComp);
        fParsedDesc = descComp.toElement();
       
        ServiceElement service = fParsedDesc.getServiceElements()[0];
        assertNotNull("The description does not contain a service.", service);
       
        fParsedEndpoints = service.getEndpointElements();
View Full Code Here

            "org/apache/woden/wsdl20/xml/resources/EndpointElementTest.wsdl");
        assertNotNull("Failed to find the WSDL document on the classpath.", wsdlURL);

        Description descComp = fReader.readWSDL(wsdlURL.toString());
        assertNotNull("The reader did not return a description.", descComp);
        fParsedDesc = descComp.toElement();

        ServiceElement service = fParsedDesc.getServiceElements()[0];
        assertNotNull("The description does not contain a service.", service);

        fParsedEndpoints = service.getEndpointElements();
View Full Code Here

            "org/apache/woden/wsdl20/xml/resources/ServiceElementTest.wsdl");
        assertNotNull("Failed to find the WSDL document on the classpath.", wsdlURL);

        Description descComp = fReader.readWSDL(wsdlURL.toString());
        assertNotNull("The reader did not return a description.", descComp);
        fParsedDesc = descComp.toElement();

        fParsedService = fParsedDesc.getServiceElements()[0];
        assertNotNull("The description does not contain a service.", fParsedService);
    }
View Full Code Here

            File file = new File(wsdlUri);
            fullPath = file.getAbsolutePath();
        }
        Description description = readInTheWSDLFile(fullPath);

        DescriptionElement descriptionElement = description.toElement();
        savedTargetNamespace = descriptionElement.getTargetNamespace()
                .toString();
        namespacemap = descriptionElement.getNamespaces();
        this.description = description;
        this.serviceName = null;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.