Search in sources :

Example 16 with BeanInvoker

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()));
}
Also used : Server(org.apache.cxf.endpoint.Server) BeanInvoker(org.apache.cxf.service.invoker.BeanInvoker) Before(org.junit.Before)

Example 17 with BeanInvoker

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()));
}
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)

Example 18 with BeanInvoker

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()));
}
Also used : Server(org.apache.cxf.endpoint.Server) BeanInvoker(org.apache.cxf.service.invoker.BeanInvoker) Service(org.apache.cxf.service.Service) Before(org.junit.Before)

Aggregations

BeanInvoker (org.apache.cxf.service.invoker.BeanInvoker)18 Test (org.junit.Test)12 Server (org.apache.cxf.endpoint.Server)8 JaxWsServiceFactoryBean (org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean)8 Service (org.apache.cxf.service.Service)8 GreeterImpl (org.apache.hello_world_soap_http.GreeterImpl)6 BusException (org.apache.cxf.BusException)5 ReflectionServiceFactoryBean (org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean)5 Before (org.junit.Before)5 URL (java.net.URL)4 AbstractAegisTest (org.apache.cxf.aegis.AbstractAegisTest)4 AegisDatabinding (org.apache.cxf.aegis.databinding.AegisDatabinding)4 ClientProxyFactoryBean (org.apache.cxf.frontend.ClientProxyFactoryBean)3 ServerFactoryBean (org.apache.cxf.frontend.ServerFactoryBean)3 JaxWsServerFactoryBean (org.apache.cxf.jaxws.JaxWsServerFactoryBean)3 QName (javax.xml.namespace.QName)2 JaxWsProxyFactoryBean (org.apache.cxf.jaxws.JaxWsProxyFactoryBean)2 MessagePartInfo (org.apache.cxf.service.model.MessagePartInfo)2 WSAddressingFeature (org.apache.cxf.ws.addressing.WSAddressingFeature)2 IOException (java.io.IOException)1