Examples of writeWSDL()


Examples of javax.wsdl.xml.WSDLWriter.writeWSDL()

           
            //change the import location in wsdl file
            OutputStream wsdloutput = new BufferedOutputStream(new FileOutputStream(wsdlFile));
            WSDLWriter wsdlWriter = WSDLFactory.newInstance().newWSDLWriter();
            ByteArrayOutputStream bout = new ByteArrayOutputStream();
            wsdlWriter.writeWSDL(def, bout);
            Element defEle = XMLUtils.parse(bout.toByteArray()).getDocumentElement();
            List<Element> xsdElements = DOMUtils.findAllElementsByTagNameNS(defEle,
                                                                            WSDLConstants.NS_SCHEMA_XSD,
                                                                            "schema");
            for (Element xsdEle : xsdElements) {
View Full Code Here

Examples of javax.wsdl.xml.WSDLWriter.writeWSDL()

                   
            for (Definition importDef : defs) {
                File importWsdlFile = new File(outputdir, importWSDLMap.get(importDef.getTargetNamespace()));
                OutputStream wsdlOs = new BufferedOutputStream(new FileOutputStream(importWsdlFile));
                bout = new ByteArrayOutputStream();
                wsdlWriter.writeWSDL(importDef, bout);
                Element importEle = XMLUtils.parse(bout.toByteArray()).getDocumentElement();

                xsdElements = DOMUtils.findAllElementsByTagNameNS(importEle, WSDLConstants.NS_SCHEMA_XSD,
                                                                  "schema");
                for (Element xsdEle : xsdElements) {
View Full Code Here

Examples of javax.wsdl.xml.WSDLWriter.writeWSDL()

                add.setLocation(request.getURI().toString());
            }
        }
        */

        wsdlWriter.writeWSDL(def, response.getOutputStream());
    }

    public void destroy() {
    }

View Full Code Here

Examples of javax.wsdl.xml.WSDLWriter.writeWSDL()

            System.out.println("-->No generated WSDL for " + (component != null ? component.getName() : "") + "/" + contract.getName());
        } else {
            try {
                System.out.println("-->Generated WSDL for " + (component != null ? component.getName() : "") + "/" + contract.getName());
                WSDLWriter writer =  WSDLFactory.newInstance().newWSDLWriter();
                writer.writeWSDL(definition, System.out);
            } catch (WSDLException e) {
                // ignore
            }
        }
    }
View Full Code Here

Examples of javax.wsdl.xml.WSDLWriter.writeWSDL()

    }
   
    protected static void writeWSDL(Definition definition) {
        try {
            WSDLWriter writer =  WSDLFactory.newInstance().newWSDLWriter();
            writer.writeWSDL(definition, System.out);
        } catch (WSDLException e) {
            // ignore
        }
    }
   
View Full Code Here

Examples of javax.wsdl.xml.WSDLWriter.writeWSDL()

                        log.info("calling updateServices ["+ qName + "][" + portName +"]");                       
                        updateServices(qName, portName, wsdlDefinition, request);
                    }
                    WSDLFactory factory = WSDLFactory.newInstance();
                    WSDLWriter writer = factory.newWSDLWriter();                   
                    writer.writeWSDL(wsdlDefinition, response.getOutputStream());
                    return;
                }
            }else {
                service.printWSDL(response.getOutputStream());
                return;
View Full Code Here

Examples of javax.wsdl.xml.WSDLWriter.writeWSDL()

        QName serviceName = ei.getService().getName();
        String portName = ei.getName().getLocalPart();
       
        updateServices(serviceName, portName, def, request);
       
        wsdlWriter.writeWSDL(def, response.getOutputStream());
    }
   
    private void updateServices(QName serviceName, String portName, Definition def, Request request)
        throws Exception {
        boolean updated = false;
View Full Code Here

Examples of javax.wsdl.xml.WSDLWriter.writeWSDL()

           
            //change the import location in wsdl file
            OutputStream wsdloutput = new BufferedOutputStream(new FileOutputStream(wsdlFile));
            WSDLWriter wsdlWriter = WSDLFactory.newInstance().newWSDLWriter();
            ByteArrayOutputStream bout = new ByteArrayOutputStream();
            wsdlWriter.writeWSDL(def, bout);
            Element defEle = XMLUtils.parse(bout.toByteArray()).getDocumentElement();
            List<Element> xsdElements = DOMUtils.findAllElementsByTagNameNS(defEle,
                                                                            WSDLConstants.NS_SCHEMA_XSD,
                                                                            "schema");
            for (Element xsdEle : xsdElements) {
View Full Code Here

Examples of javax.wsdl.xml.WSDLWriter.writeWSDL()

                   
            for (Definition importDef : defs) {
                File importWsdlFile = new File(outputdir, importWSDLMap.get(importDef.getTargetNamespace()));
                OutputStream wsdlOs = new BufferedOutputStream(new FileOutputStream(importWsdlFile));
                bout = new ByteArrayOutputStream();
                wsdlWriter.writeWSDL(importDef, bout);
                Element importEle = XMLUtils.parse(bout.toByteArray()).getDocumentElement();

                xsdElements = DOMUtils.findAllElementsByTagNameNS(importEle, WSDLConstants.NS_SCHEMA_XSD,
                                                                  "schema");
                for (Element xsdEle : xsdElements) {
View Full Code Here

Examples of javax.wsdl.xml.WSDLWriter.writeWSDL()

            if (wsld4jdefinition != null) {
                try {
                    Definition definition = (Definition) wsld4jdefinition.getValue();
                    setPortAddress(definition);
                    WSDLWriter writer = WSDLFactory.newInstance().newWSDLWriter();
                    writer.writeWSDL(definition, out);
                } catch (WSDLException e) {
                    throw new AxisFault(e);
                }
            } else {
                printWSDLError(out);
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.