Package org.apache.woden.wsdl20.xml

Examples of org.apache.woden.wsdl20.xml.DescriptionElement.toComponent()


        WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader();
        DescriptionElement descriptionElement = wsdlReader.readWSDL(wsdlUri);
        savedTargetNamespace = descriptionElement.getTargetNamespace()
                .toString();
        namespacemap = descriptionElement.getNamespaces();
        this.description = descriptionElement.toComponent();
        this.serviceName = null;
        if(name != null) {
            serviceName = new QName(descriptionElement.getTargetNamespace().toString(), name);
        }
        this.interfaceName = interfaceName;
View Full Code Here


                    throw new AxisFault("No resources found to read the wsdl");
                }

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

            }
            // Create the namespacemap

            stringBasedNamespaceMap = new NamespaceMap();
View Full Code Here

            }
            WSDLReader reader = new DOMWSDLReader();
            DOMWSDLSource source = (DOMWSDLSource) reader.createWSDLSource();
            source.setSource(document);
            DescriptionElement descElement = reader.readWSDL(source);
            Description desc = descElement.toComponent();
            // Check if the wsdl is only a port type
            // In these cases, only the port type is used, as the service name and endpoint name
            // are provided on the jbi endpoint
            if (desc.getInterfaces().length == 1 && desc.getServices().length == 0) {
                Interface itf = desc.getInterfaces()[0];
View Full Code Here

              fWriter=FWSDLFactory.newWSDLWriter();
              FileWriter fFileWriter=new FileWriter(foutputWsdlPath);
              URL wsdlInputURL = getClass().getClassLoader().getResource(inputPath);
              DescriptionElement descElem = (DescriptionElement)fReader.readWSDL(wsdlInputURL.toString());
              assertNotNull("DescriptionElement can not  be null", descElem);
              fDescription=descElem.toComponent();
              fWriter.writeWSDL(descElem, fFileWriter);
              fFileWriter.flush();
              fFileWriter.close();
              File outFile=new File(outputPath);
              String outFilePath=outFile.toURL().toString();      
View Full Code Here

            fWriter=FWSDLFactory.newWSDLWriter();
            FileOutputStream fFileStream=new FileOutputStream(foutputWsdlPath);
            URL wsdlInputURL = getClass().getClassLoader().getResource(inputPath);
            DescriptionElement descElem = (DescriptionElement)fReader.readWSDL(wsdlInputURL.toString());
            assertNotNull("DescriptionElement can not  be null", descElem);
            fDescription=descElem.toComponent();
            fWriter.writeWSDL(descElem, fFileStream);
            fFileStream.flush();
            fFileStream.close();
            File outFile=new File(outputPath);
                String outFilePath=outFile.toURL().toString();
View Full Code Here

              fWriter=FWSDLFactory.newWSDLWriter();
              FileWriter fFileWriter=new FileWriter(foutputWsdlPath);
              URL wsdlInputURL = getClass().getClassLoader().getResource(inputPath);
              DescriptionElement descElem = (DescriptionElement)fReader.readWSDL(wsdlInputURL.toString());
              assertNotNull("DescriptionElement can not  be null", descElem);
              fDescription=descElem.toComponent();
              fWriter.writeWSDL(descElem, fFileWriter);
              fFileWriter.flush();
              fFileWriter.close();
              File outFile=new File(outputPath);
              String outFilePath=outFile.toURL().toString();
View Full Code Here

            fWriter=FWSDLFactory.newWSDLWriter();
            FileOutputStream fFileStream=new FileOutputStream(foutputWsdlPath);
            URL wsdlInputURL = getClass().getClassLoader().getResource(inputPath);
            DescriptionElement descElem = (DescriptionElement)fReader.readWSDL(wsdlInputURL.toString());
            assertNotNull("DescriptionElement can not  be null", descElem);
            fDescription=descElem.toComponent();
            fWriter.writeWSDL(descElem, fFileStream);
            fFileStream.flush();
            fFileStream.close();
            File outFile=new File(outputPath);
                String outFilePath=outFile.toURL().toString();
View Full Code Here

    private Description readWSDL(String wsdlURL, Element docEl)
        throws WSDLException {
       
      XMLElement descEl = createXMLElement(docEl);
        DescriptionElement descElem = parseDescription(wsdlURL, descEl, null);
        Description descComp = descElem.toComponent();
                 
        //TODO if schema errors, don't do any further validation (i.e. assertions assume WSDL is schema valid)
       
        // Validate the model if validation is enabled.
        if(features.getValue(WSDLReader.FEATURE_VALIDATION))
View Full Code Here

        String fragment = uri.getFragment();

        if (fragment == null) { //No fragment identifier so just use the root element.
            XMLElement descEl = createXMLElement(root);
            DescriptionElement descElem = parseDescription(url.toString(), descEl, null);
            return descElem.toComponent();
        } else {
            XPointer xpointer;
            try {
                xpointer = new XPointer(fragment);
            } catch(InvalidXPointerException e) {
View Full Code Here

            OMElement result = evaluator.evaluateElement();
           
            if (result != null) { //Element from XPointer evaluation.
                XMLElement descEl = createXMLElement(result);
                DescriptionElement descElem = parseDescription(url.toString(), descEl, null);
                return descElem.toComponent();
            } else {
                String msg = getErrorReporter().getFormattedMessage(
                        "WSDL531", new Object[] {fragment, wsdlURI});
                throw new WSDLException(WSDLException.PARSER_ERROR, msg);
            }
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.