Search in sources :

Example 21 with WSDLWriter

use of javax.wsdl.xml.WSDLWriter in project cxf by apache.

the class WSDLUtils method writeWSDL.

public static void writeWSDL(Definition def, Writer outputWriter) throws WSDLException, IOException {
    WSDLCorbaFactory wsdlfactory = new WSDLCorbaFactoryImpl();
    WSDLWriter writer = wsdlfactory.newWSDLWriter();
    writer.writeWSDL(def, outputWriter);
    outputWriter.flush();
    outputWriter.close();
}
Also used : WSDLWriter(javax.wsdl.xml.WSDLWriter)

Example 22 with WSDLWriter

use of javax.wsdl.xml.WSDLWriter in project cxf by apache.

the class WSDLUtils method writeSchema.

public static void writeSchema(Definition def, Writer outputWriter) throws WSDLException, IOException {
    SchemaFactory sfactory = new SchemaFactoryImpl();
    WSDLWriter swriter = sfactory.newWSDLWriter();
    swriter.writeWSDL(def, outputWriter);
    outputWriter.flush();
    outputWriter.close();
}
Also used : WSDLWriter(javax.wsdl.xml.WSDLWriter)

Aggregations

WSDLWriter (javax.wsdl.xml.WSDLWriter)22 Definition (javax.wsdl.Definition)14 HashMap (java.util.HashMap)9 IOException (java.io.IOException)7 WSDLException (javax.wsdl.WSDLException)7 Bus (org.apache.cxf.Bus)7 ServiceWSDLBuilder (org.apache.cxf.wsdl11.ServiceWSDLBuilder)7 Element (org.w3c.dom.Element)7 Writer (java.io.Writer)6 Server (org.apache.cxf.endpoint.Server)6 XPathUtils (org.apache.cxf.helpers.XPathUtils)6 ToolException (org.apache.cxf.tools.common.ToolException)6 Message (org.apache.cxf.common.i18n.Message)5 File (java.io.File)4 JaxWsServerFactoryBean (org.apache.cxf.jaxws.JaxWsServerFactoryBean)4 LocalTransportFactory (org.apache.cxf.transport.local.LocalTransportFactory)4 Document (org.w3c.dom.Document)4 QName (javax.xml.namespace.QName)3 EndpointPolicy (org.apache.cxf.ws.policy.EndpointPolicy)3 PolicyEngine (org.apache.cxf.ws.policy.PolicyEngine)3