Search in sources :

Example 26 with SpringBusFactory

use of org.apache.cxf.bus.spring.SpringBusFactory in project cxf by apache.

the class StaxSTSServer method run.

protected void run() {
    URL busFile = StaxSTSServer.class.getResource("stax-cxf-sts.xml");
    Bus busLocal = new SpringBusFactory().createBus(busFile);
    BusFactory.setDefaultBus(busLocal);
    setBus(busLocal);
    try {
        new StaxSTSServer();
    } catch (Exception e) {
        e.printStackTrace();
    }
}
Also used : Bus(org.apache.cxf.Bus) SpringBusFactory(org.apache.cxf.bus.spring.SpringBusFactory) URL(java.net.URL)

Example 27 with SpringBusFactory

use of org.apache.cxf.bus.spring.SpringBusFactory in project cxf by apache.

the class Server method run.

protected void run() {
    URL busFile = Server.class.getResource("cxf-service.xml");
    Bus busLocal = new SpringBusFactory().createBus(busFile);
    BusFactory.setDefaultBus(busLocal);
    setBus(busLocal);
    try {
        new Server();
    } catch (Exception e) {
        e.printStackTrace();
    }
}
Also used : Bus(org.apache.cxf.Bus) SpringBusFactory(org.apache.cxf.bus.spring.SpringBusFactory) URL(java.net.URL)

Example 28 with SpringBusFactory

use of org.apache.cxf.bus.spring.SpringBusFactory in project cxf by apache.

the class Server method run.

protected void run() {
    URL busFile = Server.class.getResource("cxf-service.xml");
    Bus busLocal = new SpringBusFactory().createBus(busFile);
    BusFactory.setDefaultBus(busLocal);
    setBus(busLocal);
    try {
        new Server();
    } catch (Exception e) {
        e.printStackTrace();
    }
}
Also used : Bus(org.apache.cxf.Bus) SpringBusFactory(org.apache.cxf.bus.spring.SpringBusFactory) URL(java.net.URL)

Example 29 with SpringBusFactory

use of org.apache.cxf.bus.spring.SpringBusFactory in project cxf by apache.

the class StaxServer method run.

protected void run() {
    URL busFile = StaxServer.class.getResource("cxf-stax-service.xml");
    Bus busLocal = new SpringBusFactory().createBus(busFile);
    BusFactory.setDefaultBus(busLocal);
    setBus(busLocal);
    try {
        new StaxServer();
    } catch (Exception e) {
        e.printStackTrace();
    }
}
Also used : Bus(org.apache.cxf.Bus) SpringBusFactory(org.apache.cxf.bus.spring.SpringBusFactory) URL(java.net.URL)

Example 30 with SpringBusFactory

use of org.apache.cxf.bus.spring.SpringBusFactory in project cxf by apache.

the class Server method run.

protected void run() {
    URL busFile = Server.class.getResource("cxf-service.xml");
    Bus busLocal = new SpringBusFactory().createBus(busFile);
    BusFactory.setDefaultBus(busLocal);
    setBus(busLocal);
    try {
        new Server();
    } catch (Exception e) {
        e.printStackTrace();
    }
}
Also used : Bus(org.apache.cxf.Bus) SpringBusFactory(org.apache.cxf.bus.spring.SpringBusFactory) URL(java.net.URL)

Aggregations

SpringBusFactory (org.apache.cxf.bus.spring.SpringBusFactory)936 Bus (org.apache.cxf.Bus)859 URL (java.net.URL)773 QName (javax.xml.namespace.QName)394 Service (javax.xml.ws.Service)384 DoubleItPortType (org.example.contract.doubleit.DoubleItPortType)345 Test (org.junit.Test)123 Client (org.apache.cxf.endpoint.Client)83 Greeter (org.apache.hello_world.Greeter)64 SOAPService (org.apache.hello_world.services.SOAPService)64 JAXRSClientFactoryBean (org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean)37 HashMap (java.util.HashMap)36 SamlCallbackHandler (org.apache.cxf.systest.ws.saml.client.SamlCallbackHandler)32 Greeter (org.apache.cxf.greeter_control.Greeter)23 HTTPConduit (org.apache.cxf.transport.http.HTTPConduit)22 LoggingInInterceptor (org.apache.cxf.ext.logging.LoggingInInterceptor)21 LoggingOutInterceptor (org.apache.cxf.ext.logging.LoggingOutInterceptor)20 WebClient (org.apache.cxf.jaxrs.client.WebClient)18 WSS4JOutInterceptor (org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor)18 Closeable (java.io.Closeable)16