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();
}
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();
}
Aggregations