Search in sources :

Example 16 with ServiceWSDLBuilder

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();
}
Also used : Service(org.apache.cxf.service.Service) ServiceWSDLBuilder(org.apache.cxf.wsdl11.ServiceWSDLBuilder)

Aggregations

ServiceWSDLBuilder (org.apache.cxf.wsdl11.ServiceWSDLBuilder)16 Definition (javax.wsdl.Definition)13 Bus (org.apache.cxf.Bus)10 HashMap (java.util.HashMap)7 WSDLWriter (javax.wsdl.xml.WSDLWriter)7 Test (org.junit.Test)7 Document (org.w3c.dom.Document)7 Server (org.apache.cxf.endpoint.Server)6 XPathUtils (org.apache.cxf.helpers.XPathUtils)6 ServiceInfo (org.apache.cxf.service.model.ServiceInfo)6 Service (org.apache.cxf.service.Service)5 Element (org.w3c.dom.Element)5 WebService (javax.jws.WebService)4 JaxWsServerFactoryBean (org.apache.cxf.jaxws.JaxWsServerFactoryBean)4 LocalTransportFactory (org.apache.cxf.transport.local.LocalTransportFactory)4 ServerFactoryBean (org.apache.cxf.frontend.ServerFactoryBean)3 EndpointPolicy (org.apache.cxf.ws.policy.EndpointPolicy)3 WSDLManager (org.apache.cxf.wsdl.WSDLManager)3 ReflectionServiceFactoryBean (org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean)3 Endpoint (org.apache.cxf.endpoint.Endpoint)2