Examples of DescriptionElement


Examples of org.apache.woden.wsdl20.xml.DescriptionElement

    }

    private void validateWsdl2(HttpSoapConsumerMarshaler marshaler) throws org.apache.woden.WSDLException, IOException,
                    DeploymentException {
        WSDLReader reader = WSDLFactory.newInstance().newWSDLReader();
        DescriptionElement descElement = reader.readWSDL(wsdl.getURL().toString());
        Description desc = descElement.toComponent();
        org.apache.woden.wsdl20.Service svc;
        if (getService() != null) {
            svc = desc.getService(getService());
            if (svc == null) {
                throw new DeploymentException("Could not find service '" + getService() + "' in wsdl");
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.DescriptionElement

    }
   
    protected void validateWsdl2(JmsSoapProviderMarshaler marshaler) throws
                                  org.apache.woden.WSDLException, IOException, DeploymentException {
        WSDLReader reader = WSDLFactory.newInstance().newWSDLReader();
        DescriptionElement descElement = reader.readWSDL(wsdl.getURL().toString());
        Description desc = descElement.toComponent();
        org.apache.woden.wsdl20.Service svc;
        if (getService() != null) {
            svc = desc.getService(getService());
            if (svc == null) {
                throw new DeploymentException("Could not find service '" + getService() + "' in wsdl");
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.DescriptionElement

    protected static Binding<?> getBinding(String wsdlResource) {
        try {
            String url = PersonHttpTest.class.getResource(wsdlResource).toString();
            WSDLReader reader = WSDLFactory.newInstance().newWSDLReader();
            DescriptionElement descElement = reader.readWSDL(url);
            Description desc = descElement.toComponent();
            Endpoint endpoint = desc.getServices()[0].getEndpoints()[0];
            Binding<?> binding = BindingFactory.createBinding(endpoint);
            assertNotNull(binding);
            return binding;
        } catch (WSDLException e) {
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.DescriptionElement

    }
   
    protected void validateWsdl2(HttpSoapProviderMarshaler marshaler) throws
                                  org.apache.woden.WSDLException, IOException, DeploymentException {
        WSDLReader reader = WSDLFactory.newInstance().newWSDLReader();
        DescriptionElement descElement = reader.readWSDL(wsdl.getURL().toString());
        Description desc = descElement.toComponent();
        org.apache.woden.wsdl20.Service svc;
        if (getService() != null) {
            svc = desc.getService(getService());
            if (svc == null) {
                throw new DeploymentException("Could not find service '" + getService() + "' in wsdl");
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.DescriptionElement

    }

    private void validateWsdl2(JmsSoapConsumerMarshaler marshaler) throws org.apache.woden.WSDLException, IOException,
            DeploymentException {
        WSDLReader reader = WSDLFactory.newInstance().newWSDLReader();
        DescriptionElement descElement = reader.readWSDL(wsdl.getURL().toString());
        Description desc = descElement.toComponent();
        org.apache.woden.wsdl20.Service svc;
        if (getService() != null) {
            svc = desc.getService(getService());
            if (svc == null) {
                throw new DeploymentException("Could not find service '" + getService() + "' in wsdl");
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.DescriptionElement

            description = readInTheWSDLFile(fullPath);
        } catch (AxisFault axisFault) {
            throw new WSDLException("ERROR", "Exception occured while reading WSDL 2.0 doc", axisFault);
        }

        DescriptionElement descriptionElement = description.toElement();
        savedTargetNamespace = descriptionElement.getTargetNamespace()
                .toString();
        namespacemap = descriptionElement.getDeclaredNamespaces();
        this.description = description;
        this.serviceName = null;
        if (name != null) {
            serviceName = new QName(descriptionElement.getTargetNamespace().toString(), name);
        }
        this.interfaceName = interfaceName;
        this.axisService = new AxisService();
        setPolicyRegistryFromService(axisService);
    }
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.DescriptionElement

            // null));
            // }
            //
            // }

            DescriptionElement descriptionElement = description.toElement();
            TypesElement typesElement = descriptionElement
                    .getTypesElement();
            if (typesElement != null) {
                Schema[] schemas = typesElement.getSchemas();
                for (int i = 0; i < schemas.length; i++) {
                    XmlSchema schemaDefinition = schemas[i].getSchemaDefinition();
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.DescriptionElement

        }
        try {
            if (description == null) {

                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");
                }

                savedTargetNamespace = descriptionElement.getTargetNamespace().toString();
                namespacemap = descriptionElement.getDeclaredNamespaces();
                this.description = description;

            }
            // Create the namespacemap
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.DescriptionElement

                new Object[] {Constants.Q_ELEM_DESCRIPTION, descEl.getQName()},
                ErrorReporter.SEVERITY_FATAL_ERROR);
        }
       
        //Get a new description in the context of this reader
        DescriptionElement desc =
            ((BaseWSDLFactory)getFactory()).newDescriptionElement(fWsdlContext);
       
        if(wsdlModules == null)
        {
            //This is the initial WSDL document. No imports or includes yet.
            //TODO this might be the place to flag the initial Desc if necessary.
            wsdlModules = new HashMap();
        }
       
        desc.setDocumentBaseURI(getURI(documentBaseURI));

        String targetNamespace =
            descEl.getAttributeValue(Constants.ATTR_TARGET_NAMESPACE);
       
        if(targetNamespace != null)
        {
            desc.setTargetNamespace(getURI(targetNamespace));
        }
       
        parseNamespaceDeclarations(descEl, desc);
       
        parseExtensionAttributes(descEl, DescriptionElement.class, desc, desc);
       
        //parse the child elements
        XMLElement[] children = descEl.getChildElements();
        XMLElement tempEl = null;
        QName tempElQN = null;

        for(int i=0; i<children.length; i++)
        {
            tempEl = children[i];
            tempElQN = tempEl.getQName();
         
            if (Constants.Q_ELEM_DOCUMENTATION.equals(tempElQN))
            {
                parseDocumentation(tempEl, desc, desc);
            }
            else if (Constants.Q_ELEM_IMPORT.equals(tempElQN))
            {
                if(documentBaseURI != null && !wsdlModules.containsKey(documentBaseURI))
                {
                    wsdlModules.put(documentBaseURI, desc);
                }
                parseImport(tempEl, desc, wsdlModules);
            }
            else if (Constants.Q_ELEM_INCLUDE.equals(tempElQN))
            {
                if(documentBaseURI != null && !wsdlModules.containsKey(documentBaseURI))
                {
                    wsdlModules.put(documentBaseURI, desc);
                }
                parseInclude(tempEl, desc, wsdlModules);
            }
            else if (Constants.Q_ELEM_TYPES.equals(tempElQN))
            {
                parseTypes(tempEl, desc);
            }
            else if (Constants.Q_ELEM_INTERFACE.equals(tempElQN))
            {
                parseInterface(tempEl, desc);
            }
            else if (Constants.Q_ELEM_BINDING.equals(tempElQN))
            {
                parseBinding(tempEl, desc);
            }
            else if (Constants.Q_ELEM_SERVICE.equals(tempElQN))
            {
                parseService(tempEl, desc);
            }
            else
            {
                desc.addExtensionElement(
                    parseExtensionElement(DescriptionElement.class, desc, tempEl, desc) );
            }
        }
       
        parseSchemaForXMLSchema(desc)//TODO temporary - see comments within the method
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.DescriptionElement

        if(locationURI != null)
        {
            //TODO handle missing locationURI (OPTIONAL attr)
            URI resolvedLocationURI = resolveURI(getURI(locationURI));
            imp.setLocation(resolvedLocationURI);
            DescriptionElement importedDesc =
                getWSDLFromLocation(resolvedLocationURI.toString(), desc, wsdlModules);
            imp.setDescriptionElement(importedDesc);
        }

        return imp;
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.