Examples of WSDLWriter


Examples of javax.wsdl.xml.WSDLWriter

                            String.valueOf(endpointInfo.getProperty(PUBLISHED_ENDPOINT_URL));
                        updatePublishedEndpointUrl(epurl, def, endpointInfo.getName());
                        base = epurl;
                    }
       
                    WSDLWriter wsdlWriter = bus.getExtension(WSDLManager.class)
                        .getWSDLFactory().newWSDLWriter();
                    def.setExtensionRegistry(bus.getExtension(WSDLManager.class).getExtensionRegistry());
                    doc = wsdlWriter.getDocument(def);
                }
            } else {
                SchemaReference si = smp.get(xsd);
                if (si == null) {
                    String xsd2 = resolveWithCatalogs(OASISCatalogManager.getCatalogManager(bus),
View Full Code Here

Examples of javax.wsdl.xml.WSDLWriter

        if (xsd == null) {
            Definition def = mp.get(wsdl);

            WSDLFactory factory = WSDLFactory.newInstance();
            WSDLWriter writer = factory.newWSDLWriter();

            rootElement = writer.getDocument(def).getDocumentElement();
        } else {
            SchemaReference si = smp.get(xsd);
            rootElement = si.getReferencedSchema().getElement();
        }
View Full Code Here

Examples of javax.wsdl.xml.WSDLWriter

                        String publishingUrl =
                            String.valueOf(endpointInfo.getProperty("publishedEndpointUrl"));
                        updatePublishedEndpointUrl(publishingUrl, def, endpointInfo.getName());
                    }
       
                    WSDLWriter wsdlWriter = bus.getExtension(WSDLManager.class)
                        .getWSDLFactory().newWSDLWriter();
                    def.setExtensionRegistry(bus.getExtension(WSDLManager.class).getExtensionRegistry());
                    doc = wsdlWriter.getDocument(def);
                }
            } else {
                SchemaReference si = smp.get(xsd);
                if (si == null) {
                    String xsd2 = resolveWithCatalogs(OASISCatalogManager.getCatalogManager(bus),
View Full Code Here

Examples of javax.wsdl.xml.WSDLWriter

        // 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

Examples of javax.wsdl.xml.WSDLWriter

        // 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

Examples of javax.wsdl.xml.WSDLWriter

                if (definition != null)
                {
                    final Bus bus = BUS_FACTORY.getBus(endpoint) ;
                   
                    final WSDLManager wsdlManager = bus.getExtension(WSDLManager.class) ;
                    final  WSDLWriter wsdlWriter = wsdlManager.getWSDLFactory().newWSDLWriter();
                    definition.setExtensionRegistry(wsdlManager.getExtensionRegistry());
                    final ByteArrayOutputStream baos = new ByteArrayOutputStream() ;
                    try
                    {
                        wsdlWriter.writeWSDL(definition, baos);
                    }
                    catch (final WSDLException wsdle)
                    {
                        final IOException ioe = new IOException("Failed to generate WSDL") ;
                        ioe.initCause(wsdle) ;
View Full Code Here

Examples of javax.wsdl.xml.WSDLWriter

    }

    private static boolean writeWSDL(Definition def) {
        try {
            WSDLFactory factory = WSDLFactory.newInstance();
            WSDLWriter wsdlWriter = factory.newWSDLWriter();
            File f = new File(WSDL_OUT);
            FileWriter out = new FileWriter(f);
            wsdlWriter.writeWSDL(def, out);
            out.close();
            debug("--- Definition written OK ---");
            return true;
        } catch (Exception e) {
            debug("EXCEPTION: " + e);
View Full Code Here

Examples of javax.wsdl.xml.WSDLWriter

            .add(0, new org.apache.cxf.aegis.databinding.AegisServiceConfiguration());
        sf.getServiceFactory().setDataBinding(binding);
    }

    protected Collection<Document> getWSDLDocuments(String string) throws WSDLException {
        WSDLWriter writer = WSDLFactory.newInstance().newWSDLWriter();

        Collection<Document> docs = new ArrayList<Document>();
        Definition definition = getWSDLDefinition(string);
        if (definition == null) {
            return null;
        }
        docs.add(writer.getDocument(definition));

        for (Import wsdlImport : WSDLDefinitionBuilder.getImports(definition)) {
            docs.add(writer.getDocument(wsdlImport.getDefinition()));
        }
        return docs;
    }
View Full Code Here

Examples of org.codehaus.xfire.wsdl.WSDLWriter

        super.setUp();

        ObjectServiceFactory osf = (ObjectServiceFactory) getServiceFactory();
        osf.addSoap12Transport(SoapHttpTransport.SOAP12_HTTP_BINDING);
        Service service = osf.create(EchoImpl.class);
        WSDLWriter writer = new ResourceWSDL(getClass().getResource("/org/codehaus/xfire/echo11.wsdl"));
        service.setWSDLWriter(writer);

        service.addInHandler(new MockSessionHandler());
        getServiceRegistry().register(service);
View Full Code Here

Examples of org.codehaus.xfire.wsdl.WSDLWriter

            throws Exception
    {
        super.setUp();

        Service service = getServiceFactory().create(EchoImpl.class);
        WSDLWriter writer = new ResourceWSDL(getClass().getResource("/org/codehaus/xfire/echo11.wsdl"));
        service.setWSDLWriter(writer);

        getServiceRegistry().register(service);
    }
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.