use of org.apache.cxf.wsdl11.ServiceWSDLBuilder in project cxf by apache.
the class TestUtilities method getWSDLDefinition.
/**
* Return a WSDL definition model for a server.
*
* @param server the server.
* @return the definition.
* @throws WSDLException
*/
public Definition getWSDLDefinition(Server server) throws WSDLException {
Service service = server.getEndpoint().getService();
ServiceWSDLBuilder wsdlBuilder = new ServiceWSDLBuilder(bus, service.getServiceInfos().get(0));
wsdlBuilder.setUseSchemaImports(false);
return wsdlBuilder.build();
}
Aggregations