use of org.apache.cxf.service.invoker.BeanInvoker in project cxf by apache.
the class ExceptionTest method setUp.
@Before
public void setUp() throws Exception {
super.setUp();
Server s = createService(ExceptionService.class, new ExceptionServiceImpl(), null);
s.getEndpoint().getService().setInvoker(new BeanInvoker(new ExceptionServiceImpl()));
}
use of org.apache.cxf.service.invoker.BeanInvoker in project cxf by apache.
the class ExceptionInheritanceTest method setUp.
public void setUp() throws Exception {
super.setUp();
AegisContext globalContext = new AegisContext();
globalContext.setWriteXsiTypes(true);
Set<String> l = new HashSet<>();
l.add(SimpleBean.class.getName());
l.add(WS1ExtendedException.class.getName());
globalContext.setRootClassNames(l);
AegisDatabinding binding = new AegisDatabinding();
binding.setAegisContext(globalContext);
ClientProxyFactoryBean pf = new ClientProxyFactoryBean();
setupAegis(pf.getClientFactoryBean(), binding);
pf.getServiceFactory().setProperties(props);
pf.setAddress("local://WS1");
pf.setProperties(props);
client = pf.create(WS1.class);
Server server = createService(WS1.class, new WS1Impl(), "WS1", binding);
server.getEndpoint().getService().setInvoker(new BeanInvoker(new WS1Impl()));
}
use of org.apache.cxf.service.invoker.BeanInvoker in project cxf by apache.
the class InterfaceInheritanceTest method setUp.
@Before
public void setUp() throws Exception {
super.setUp();
Server server = createService(IInterfaceService.class);
Service service = server.getEndpoint().getService();
service.setInvoker(new BeanInvoker(new InterfaceService()));
}
Aggregations