Search in sources :

Example 1 with MapTestImpl

use of org.apache.cxf.aegis.type.map.fortest.MapTestImpl in project cxf by apache.

the class MapsTest method setUp.

@Before
public void setUp() throws Exception {
    super.setUp();
    JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
    sf.setServiceClass(MapTest.class);
    sf.setServiceBean(new MapTestImpl());
    sf.setAddress("local://MapTest");
    setupAegis(sf);
    server = sf.create();
    // server.getEndpoint().getInInterceptors().add(new LoggingInInterceptor());
    // server.getEndpoint().getOutInterceptors().add(new LoggingOutInterceptor());
    server.start();
    JaxWsProxyFactoryBean proxyFac = new JaxWsProxyFactoryBean();
    proxyFac.setAddress("local://MapTest");
    proxyFac.setServiceClass(MapTest.class);
    proxyFac.setBus(getBus());
    setupAegis(proxyFac.getClientFactoryBean());
    clientInterface = (MapTest) proxyFac.create();
}
Also used : MapTestImpl(org.apache.cxf.aegis.type.map.fortest.MapTestImpl) JaxWsProxyFactoryBean(org.apache.cxf.jaxws.JaxWsProxyFactoryBean) JaxWsServerFactoryBean(org.apache.cxf.jaxws.JaxWsServerFactoryBean) Before(org.junit.Before)

Aggregations

MapTestImpl (org.apache.cxf.aegis.type.map.fortest.MapTestImpl)1 JaxWsProxyFactoryBean (org.apache.cxf.jaxws.JaxWsProxyFactoryBean)1 JaxWsServerFactoryBean (org.apache.cxf.jaxws.JaxWsServerFactoryBean)1 Before (org.junit.Before)1