Search in sources :

Example 76 with JaxWsServerFactoryBean

use of org.apache.cxf.jaxws.JaxWsServerFactoryBean in project cxf by apache.

the class SimpleEventingIntegrationTest method createEndToEndpointWithReferenceParametersAssertion.

protected Server createEndToEndpointWithReferenceParametersAssertion(String address, ReferenceParametersType params) {
    JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
    factory.setBus(bus);
    factory.setServiceBean(new TestingEndToEndpointImpl());
    factory.setAddress(address);
    factory.getHandlers().add(new ReferenceParametersAssertingHandler(params));
    factory.getHandlers().add(new WSAActionAssertingHandler(EventingConstants.ACTION_SUBSCRIPTION_END));
    return factory.create();
}
Also used : ReferenceParametersAssertingHandler(org.apache.cxf.ws.eventing.integration.notificationapi.assertions.ReferenceParametersAssertingHandler) TestingEndToEndpointImpl(org.apache.cxf.ws.eventing.integration.eventsink.TestingEndToEndpointImpl) WSAActionAssertingHandler(org.apache.cxf.ws.eventing.integration.notificationapi.assertions.WSAActionAssertingHandler) JaxWsServerFactoryBean(org.apache.cxf.jaxws.JaxWsServerFactoryBean)

Example 77 with JaxWsServerFactoryBean

use of org.apache.cxf.jaxws.JaxWsServerFactoryBean in project cxf by apache.

the class SimpleEventingIntegrationTest method createEventSinkWithWSAActionAssertion.

protected Server createEventSinkWithWSAActionAssertion(String address, String action) {
    JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
    factory.setBus(bus);
    factory.setServiceBean(new TestingEventSinkImpl());
    factory.setAddress(address);
    factory.getHandlers().add(new WSAActionAssertingHandler(action));
    return factory.create();
}
Also used : TestingEventSinkImpl(org.apache.cxf.ws.eventing.integration.eventsink.TestingEventSinkImpl) WSAActionAssertingHandler(org.apache.cxf.ws.eventing.integration.notificationapi.assertions.WSAActionAssertingHandler) JaxWsServerFactoryBean(org.apache.cxf.jaxws.JaxWsServerFactoryBean)

Example 78 with JaxWsServerFactoryBean

use of org.apache.cxf.jaxws.JaxWsServerFactoryBean in project cxf by apache.

the class SimpleEventingIntegrationTest method createEventSinkWithReferenceParametersAssertion.

protected Server createEventSinkWithReferenceParametersAssertion(String address, ReferenceParametersType params) {
    JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
    factory.setBus(bus);
    factory.setServiceBean(new TestingEventSinkImpl());
    factory.setAddress(address);
    factory.getHandlers().add(new ReferenceParametersAssertingHandler(params));
    return factory.create();
}
Also used : ReferenceParametersAssertingHandler(org.apache.cxf.ws.eventing.integration.notificationapi.assertions.ReferenceParametersAssertingHandler) TestingEventSinkImpl(org.apache.cxf.ws.eventing.integration.eventsink.TestingEventSinkImpl) JaxWsServerFactoryBean(org.apache.cxf.jaxws.JaxWsServerFactoryBean)

Example 79 with JaxWsServerFactoryBean

use of org.apache.cxf.jaxws.JaxWsServerFactoryBean in project cxf by apache.

the class MEXTest method setUpBeforeClass.

/**
 * @throws java.lang.Exception
 */
@BeforeClass
public static void setUpBeforeClass() throws Exception {
    JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
    factory.setServiceBean(new EchoImpl());
    factory.setAddress("local://Echo");
    factory.setTransportId(LocalTransportFactory.TRANSPORT_ID);
    server = factory.create();
    factory = new JaxWsServerFactoryBean();
    factory.setServiceBean(new MEXEndpoint(server));
    factory.setAddress("local://Echo-mex");
    factory.setTransportId(LocalTransportFactory.TRANSPORT_ID);
    factory.getFeatures().add(new LoggingFeature());
    mexServer = factory.create();
}
Also used : LoggingFeature(org.apache.cxf.ext.logging.LoggingFeature) JaxWsServerFactoryBean(org.apache.cxf.jaxws.JaxWsServerFactoryBean) BeforeClass(org.junit.BeforeClass)

Example 80 with JaxWsServerFactoryBean

use of org.apache.cxf.jaxws.JaxWsServerFactoryBean in project cxf by apache.

the class SimpleEventingIntegrationTest method createEventSink.

protected Server createEventSink(String address) {
    JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
    factory.setBus(bus);
    factory.setServiceBean(new TestingEventSinkImpl());
    factory.setAddress(address);
    return factory.create();
}
Also used : TestingEventSinkImpl(org.apache.cxf.ws.eventing.integration.eventsink.TestingEventSinkImpl) JaxWsServerFactoryBean(org.apache.cxf.jaxws.JaxWsServerFactoryBean)

Aggregations

JaxWsServerFactoryBean (org.apache.cxf.jaxws.JaxWsServerFactoryBean)106 Server (org.apache.cxf.endpoint.Server)32 Test (org.junit.Test)29 Service (org.apache.cxf.service.Service)21 Bus (org.apache.cxf.Bus)15 HashMap (java.util.HashMap)13 LoggingInInterceptor (org.apache.cxf.ext.logging.LoggingInInterceptor)13 LoggingOutInterceptor (org.apache.cxf.ext.logging.LoggingOutInterceptor)13 JaxWsProxyFactoryBean (org.apache.cxf.jaxws.JaxWsProxyFactoryBean)9 AbstractAegisTest (org.apache.cxf.aegis.AbstractAegisTest)8 QName (javax.xml.namespace.QName)7 AbstractJaxWsTest (org.apache.cxf.jaxws.AbstractJaxWsTest)7 BeforeClass (org.junit.BeforeClass)7 Endpoint (org.apache.cxf.endpoint.Endpoint)6 ServerFactoryBean (org.apache.cxf.frontend.ServerFactoryBean)6 JAXWSMethodInvoker (org.apache.cxf.jaxws.JAXWSMethodInvoker)6 JaxWsServiceFactoryBean (org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean)6 AegisDatabinding (org.apache.cxf.aegis.databinding.AegisDatabinding)5 URL (java.net.URL)4 Definition (javax.wsdl.Definition)4