Search in sources :

Example 1 with WS1

use of org.apache.cxf.aegis.inheritance.ws1.WS1 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()));
}
Also used : WS1Impl(org.apache.cxf.aegis.inheritance.ws1.impl.WS1Impl) WS1(org.apache.cxf.aegis.inheritance.ws1.WS1) Server(org.apache.cxf.endpoint.Server) SimpleBean(org.apache.cxf.aegis.services.SimpleBean) ClientProxyFactoryBean(org.apache.cxf.frontend.ClientProxyFactoryBean) BeanInvoker(org.apache.cxf.service.invoker.BeanInvoker) AegisContext(org.apache.cxf.aegis.AegisContext) AegisDatabinding(org.apache.cxf.aegis.databinding.AegisDatabinding) WS1ExtendedException(org.apache.cxf.aegis.inheritance.ws1.WS1ExtendedException) HashSet(java.util.HashSet)

Aggregations

HashSet (java.util.HashSet)1 AegisContext (org.apache.cxf.aegis.AegisContext)1 AegisDatabinding (org.apache.cxf.aegis.databinding.AegisDatabinding)1 WS1 (org.apache.cxf.aegis.inheritance.ws1.WS1)1 WS1ExtendedException (org.apache.cxf.aegis.inheritance.ws1.WS1ExtendedException)1 WS1Impl (org.apache.cxf.aegis.inheritance.ws1.impl.WS1Impl)1 SimpleBean (org.apache.cxf.aegis.services.SimpleBean)1 Server (org.apache.cxf.endpoint.Server)1 ClientProxyFactoryBean (org.apache.cxf.frontend.ClientProxyFactoryBean)1 BeanInvoker (org.apache.cxf.service.invoker.BeanInvoker)1