Examples of writeWSDL()


Examples of com.centeractive.ws.common.Wsdl11Writer.writeWSDL()

    private static void saveDefinition(String fileBaseName, Definition definition, File targetFolder) {
        if (targetFolder.exists() == false || targetFolder.isDirectory() == false) {
            throw new IllegalArgumentException("Target folder does not exist or is not a folder [" + targetFolder.getPath() + "]");
        }
        Wsdl11Writer writer = new Wsdl11Writer(targetFolder);
        writer.writeWSDL(fileBaseName, definition);
    }

    private static URL getSavedWsdlUrl(String fileBaseName, File targetFolder) {
        File file = new File(targetFolder, fileBaseName + ".wsdl");
        try {
View Full Code Here

Examples of com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL()

     
      // write out the wsdl
      WSDLWriter wsdlWriter = new WSDLWriterImpl();     
      try {         
        if (outputToConsole)
          wsdlWriter.writeWSDL(wsdlDef, System.out);
        FileWriter myOutput = new FileWriter(wsdFileName);
        wsdlWriter.writeWSDL(wsdlDef, myOutput);
        myOutput.close();
      } catch (WSDLException wsdlEx){
        System.err.println("WSDL Exception: " + wsdlEx.getMessage());
View Full Code Here

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

        } catch (java.io.FileNotFoundException e) {
            throw new ToolException(e.getMessage(), e);
        }

        try {
            writer.writeWSDL(this.definition, outstream);
        } catch (javax.wsdl.WSDLException e) {
            throw new ToolException(e.getMessage(), e);
        }
        return true;
    }
View Full Code Here

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

        WSDLWriter wsdlWriter = wsdlFactory.newWSDLWriter();
        Writer outputWriter = getOutputWriter();

        try {
            wsdlWriter.writeWSDL(wsdlDefinition, outputWriter);
        } catch (WSDLException wse) {
            Message msg = new Message("FAIL_TO_WRITE_WSDL", LOG);
            throw new ToolException(msg, wse);
        }
        try {
View Full Code Here

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

        wsdlDefinition.addBinding(binding);

        WSDLWriter wsdlWriter = wsdlFactory.newWSDLWriter();
        Writer outputWriter = getOutputWriter(NEW_FILE_NAME_MODIFIER);
        try {
            wsdlWriter.writeWSDL(wsdlDefinition, outputWriter);
        } catch (WSDLException wse) {
            Message msg = new Message("FAIL_TO_WRITE_WSDL", LOG);
            throw new ToolException(msg);

        }
View Full Code Here

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

        wsdlDefinition.addService(service);

        WSDLWriter wsdlWriter = wsdlFactory.newWSDLWriter();
        Writer outputWriter = getOutputWriter(NEW_FILE_NAME_MODIFIER);
        try {
            wsdlWriter.writeWSDL(wsdlDefinition, outputWriter);
        } catch (WSDLException wse) {
            Message msg = new Message("FAIl_TO_WRITE_WSDL", LOG);
            throw new ToolException(msg, wse);
        }
        try {
View Full Code Here

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

    private void writeToWSDL() throws ToolException {
        WSDLWriter wsdlWriter = wsdlFactory.newWSDLWriter();
        Writer outputWriter = getOutputWriter(NEW_FILE_NAME_MODIFIER);
        try {
            wsdlWriter.writeWSDL(wsdlDefinition, outputWriter);
        } catch (WSDLException wse) {
            Message msg = new Message("FAIL_TO_WRITE_WSDL", LOG);
            throw new ToolException(msg);
        }
        try {
View Full Code Here

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

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

                name = name.substring(0, name.lastIndexOf(".wsdl"));
            }
            builder.setBaseFileName(name);
            Map<String, SchemaInfo> imports = new HashMap<String, SchemaInfo>();
            def = builder.build(imports);
            wsdlWriter.writeWSDL(def, os);
            os.close();

            if (def.getImports().size() > 0) {
                for (Import wsdlImport : WSDLDefinitionBuilder.getImports(def)) {
                    Definition wsdlDef = wsdlImport.getDefinition();
View Full Code Here

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

                        wsdlFile = new File(outputdir, wsdlDef.getQName().getLocalPart() + ".wsdl");
                    }
                    OutputStream wsdlOs = null;
                    try {
                        wsdlOs = new BufferedOutputStream(new FileOutputStream(wsdlFile));
                        wsdlWriter.writeWSDL(wsdlDef, wsdlOs);
                    } finally {
                        if (wsdlOs != null) {
                            wsdlOs.close();
                        }
                    }
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.