WSDLWriter wsdlWriter = wsdlFactory.newWSDLWriter();
public WSDLWriter newWriter() { // writer.setFeature(VERBOSE, false); return factory.newWSDLWriter(); }
/** * Create a new instance of a WSDLWriter. */ public WSDLWriter newWSDLWriter() { return new WSDLCorbaWriterImpl(factory.newWSDLWriter()); }
public WSDLWriter newWSDLWriter() { WSDLWriter writer = _wsdlFactory.newWSDLWriter(); writer.setFeature("javax.wsdl.verbose", false); return writer; }
public static void serialize(Definition definition, OutputStream stream) throws WSDLException { WSDLFactory factory = WSDLFactory.newInstance(); WSDLWriter writer = factory.newWSDLWriter(); writer.writeWSDL(definition, stream); }
public static void serialize(Definition definition, Writer writer) throws WSDLException { WSDLFactory factory = WSDLFactory.newInstance(); WSDLWriter wsdlWriter = factory.newWSDLWriter(); wsdlWriter.writeWSDL(definition, writer); }
private boolean writeDefinition() { WSDLWriter writer = wsdlFactory.newWSDLWriter(); java.io.File file = new java.io.File(wsdlFile); java.io.OutputStream outstream = null; try { outstream = new java.io.FileOutputStream(file); } 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; }
/** * Return a DOM tree for the WSDL for a server. * * @param server the server. * @return the DOM tree. * @throws WSDLException */ public Document getWSDLDocument(Server server) throws WSDLException { Definition definition = getWSDLDefinition(server); WSDLWriter writer = WSDLFactory.newInstance().newWSDLWriter(); return writer.getDocument(definition); }
@Override public Source getSource() { synchronized (monitor) { Assert.notNull(definition, "definition must not be null"); try { WSDLFactory wsdlFactory = WSDLFactory.newInstance(); WSDLWriter wsdlWriter = wsdlFactory.newWSDLWriter(); Document document = wsdlWriter.getDocument(definition); return new DOMSource(document); } catch (WSDLException ex) { throw new WsdlDefinitionException(ex.getMessage(), ex); } } }
/** * Return a DOM tree for the WSDL for a server. * * @param server the server. * @return the DOM tree. * @throws WSDLException */ public Document getWSDLDocument(Server server) throws WSDLException { Definition definition = getWSDLDefinition(server); WSDLWriter writer = WSDLFactory.newInstance().newWSDLWriter(); return writer.getDocument(definition); }
@Override public Source getSource() { synchronized (monitor) { Assert.notNull(definition, "definition must not be null"); try { WSDLFactory wsdlFactory = WSDLFactory.newInstance(); WSDLWriter wsdlWriter = wsdlFactory.newWSDLWriter(); Document document = wsdlWriter.getDocument(definition); return new DOMSource(document); } catch (WSDLException ex) { throw new WsdlDefinitionException(ex.getMessage(), ex); } } }
public static void writeWsdl(final Definition wsdlDefinition, final OutputStream sink) { try { final WSDLWriter wsdlReader = WSDLFactory.newInstance().newWSDLWriter(); wsdlReader.writeWSDL(wsdlDefinition, sink); } catch (final Exception e) { throw new WsdlException("Problem while writing wsdl:", e); } }
/** * Return a DOM tree for the WSDL for a server. * * @param server the server. * @return the DOM tree. * @throws WSDLException */ public Document getWSDLDocument(Server server) throws WSDLException { Definition definition = getWSDLDefinition(server); WSDLWriter writer = WSDLFactory.newInstance().newWSDLWriter(); return writer.getDocument(definition); }
public void write(OutputStream out) throws IOException { try { javax.wsdl.xml.WSDLWriter writer = WSDLFactory.newInstance().newWSDLWriter(); writer.writeWSDL(def, out); } catch (WSDLException e) { throw new XFireRuntimeException("Could not write wsdl definition!", e); } } }
/** * @return Returns the description. */ public Document getDescription() { if (description == null) { definition = getDefinition(); if (definition != null) { try { description = WSDLFactory.newInstance().newWSDLWriter().getDocument(definition); } catch (WSDLException e) { // Ignore } } } return description; }
protected void mapDefinition(Definition def) throws WSDLException { addResource("main.wsdl", javax.wsdl.factory.WSDLFactory.newInstance().newWSDLWriter().getDocument(def)); mapImports(def, ""); }
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 { outputWriter.close(); } catch (IOException ioe) { Message msg = new Message("FAIL_TO_CLOSE_WSDL_FILE", LOG); throw new ToolException(msg); } }
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 { outputWriter.close(); } catch (IOException ioe) { Message msg = new Message("FAIL_TO_CLOSE_WSDL_FILE", LOG); throw new ToolException(msg); } }
private static Document getWsdlDocument(Bus bus, Definition def) throws WSDLException { WSDLWriter wsdlWriter = bus.getExtension(WSDLManager.class).getWSDLFactory().newWSDLWriter(); def.setExtensionRegistry(bus.getExtension(WSDLManager.class).getExtensionRegistry()); return wsdlWriter.getDocument(def); }
public Document toWSDL(String locationURI) throws WSDLException { WSDLFactory factory = WSDLFactory.newInstance(); Definition def = factory.newDefinition(); def.setTargetNamespace(TNS); def.addNamespace("xsd", XSD); def.addNamespace("tns", TNS); def.addNamespace("soap", "http://schemas.xmlsoap.org/wsdl/soap/"); this.getWSDL(def, locationURI); return factory.newWSDLWriter().getDocument(def); }