Package javax.wsdl.xml

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


    public static void writeWSDL(Definition def, Writer outputWriter)
        throws WSDLException, IOException {    
        WSDLCorbaFactory wsdlfactory = WSDLCorbaFactory
            .newInstance("org.apache.yoko.tools.common.WSDLCorbaFactoryImpl");
        WSDLWriter writer = wsdlfactory.newWSDLWriter();       
        writer.writeWSDL(def, outputWriter);
       
        outputWriter.flush();
        outputWriter.close();
    }
View Full Code Here


            }

            table.put(SERVICE_QNAME, serviceQName);

            ByteArrayOutputStream bs = new ByteArrayOutputStream();
            wsWriter.writeWSDL(def, bs);
            wsdlString = bs.toString();
        } catch (WSDLException e) {
            throw new GFacWSDLException("Error generating WSDL: " + e.getMessage());
        }
View Full Code Here

            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

        // for debugging
        if (printWSDL) {
            try {
                System.out.println("Generated WSDL for Java interface " + iface.getName() + " class " + iface.getJavaClass().getName());
                WSDLWriter writer =  javax.wsdl.factory.WSDLFactory.newInstance().newWSDLWriter();
                writer.writeWSDL(def, System.out);
            } catch (WSDLException e) {
                throw new WSDLGenerationException(e);
            }
        }
View Full Code Here

        Definition definition = generator.generate(iface, wsdlDefinition);

        // print the generated WSDL file and inline schemas
        WSDLWriter writer = generator.getFactory().newWSDLWriter();
        StringWriter sw = new StringWriter();
        writer.writeWSDL(definition, sw);
        System.out.println(sw.toString());
    }

}
View Full Code Here

        // for debugging
        if (printWSDL) {
            try {
                System.out.println("Generated WSDL for " + component.getName() + "/" + contractName);
                WSDLWriter writer =  javax.wsdl.factory.WSDLFactory.newInstance().newWSDLWriter();
                writer.writeWSDL(def, System.out);
            } catch (WSDLException e) {
                throw new WSDLGenerationException(e);
            }
        }
View Full Code Here

    public static void writeWSDL(Definition def, Writer outputWriter)
        throws WSDLException, IOException {
        WSDLCorbaFactory wsdlfactory = WSDLCorbaFactory
            .newInstance("org.apache.cxf.tools.corba.common.WSDLCorbaFactoryImpl");
        WSDLWriter writer = wsdlfactory.newWSDLWriter();
        writer.writeWSDL(def, outputWriter);

        outputWriter.flush();
        outputWriter.close();
    }
View Full Code Here

    public static void writeSchema(Definition def, Writer outputWriter) throws WSDLException, IOException {
        SchemaFactory sfactory = SchemaFactory
            .newInstance("org.apache.cxf.tools.corba.common.SchemaFactoryImpl");
        WSDLWriter swriter = sfactory.newWSDLWriter();
        swriter.writeWSDL(def, outputWriter);

        outputWriter.flush();
        outputWriter.close();
    }
}
View Full Code Here

        ExtensionRegistry extReg = new ExtensionRegistry();
        addExtensions(extReg);
        reader.setExtensionRegistry(extReg);
        Definition wsdlDefn = reader.readWSDL(defnFile.toString());
        WSDLWriter wsdlWriter = factory.newWSDLWriter();
        wsdlWriter.writeWSDL(wsdlDefn, writer);
        writer.close();
        writer = null;
        reader = null;
        return bkFile;
    }
View Full Code Here

        }
        //the wsdl definition is present. then we can ditectly utilize the wsdl writer.
        if (wsdlWrapper.getDefinition() != null) {
            try {
                WSDLWriter writer = WSDLFactory.newInstance().newWSDLWriter();
                writer.writeWSDL(wsdlWrapper.getDefinition(), out);
            } catch (WSDLException e) {
                throw new WriterException(e);
            }
            //wsdl description is present but not the definition. So start writing
        } else if (wsdlWrapper.getDescription() != 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.