use of org.apache.cxf.aegis.inheritance.ws1.impl.WS1Impl 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()));
}
Aggregations