Package org.apache.cxf.service.invoker

Examples of org.apache.cxf.service.invoker.BeanInvoker


                return j == -1 || j == 1;
            }

        };

        factory.setInvoker(new BeanInvoker(new EchoImpl()));

        ServerFactoryBean svrFac = new ServerFactoryBean();
        svrFac.setAddress("local://Echo");
        setupAegis(svrFac);
        svrFac.setServiceFactory(factory);
View Full Code Here


    protected Invoker createInvoker() {
        if (getServiceBean() == null) {
            return new FactoryInvoker(new SingletonFactory(getServiceClass()));
        }
        return new BeanInvoker(getServiceBean());
    }
View Full Code Here

    @Before
    public void setUp() throws Exception {
        super.setUp();
        Server server = createService(IInterfaceService.class);
        Service service = server.getEndpoint().getService();
        service.setInvoker(new BeanInvoker(new InterfaceService()));
    }
View Full Code Here

        JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
        sf.setServiceClass(CustomerService.class);
        // Use the HTTP Binding which understands the Java Rest Annotations
        sf.setBindingId(HttpBindingFactory.HTTP_BINDING_ID);
        sf.setAddress("http://localhost:8080/xml/");
        sf.getServiceFactory().setInvoker(new BeanInvoker(serviceObj));

        // Turn the "wrapped" style off. This means that CXF won't generate
        // wrapper XML elements and we'll have prettier XML text. This
        // means that we need to stick to one request and one response
        // parameter though.
View Full Code Here

        JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
        sf.setServiceClass(CustomerService.class);
        // Use the HTTP Binding which understands the Java Rest Annotations
        sf.setBindingId(HttpBindingFactory.HTTP_BINDING_ID);
        sf.setAddress("http://localhost:8080/json");
        sf.getServiceFactory().setInvoker(new BeanInvoker(serviceObj));

        // Turn the "wrapped" style off. This means that CXF won't generate
        // wrapper JSON elements and we'll have prettier JSON text. This
        // means that we need to stick to one request and one response
        // parameter though.
View Full Code Here

    private static void createSoapService(Object serviceObj) {
        JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
        sf.setServiceClass(CustomerService.class);
        sf.setAddress("http://localhost:8080/soap");
        sf.getServiceFactory().setInvoker(new BeanInvoker(serviceObj));

        sf.create();
    }
View Full Code Here

    @Before
    public void setUp() throws Exception {
        super.setUp();
        Server server = createService(IInterfaceService.class, null);
        Service service = server.getEndpoint().getService();
        service.setInvoker(new BeanInvoker(new InterfaceService()));
    }
View Full Code Here

        bean.setWsdlURL(resource.toString());
        Bus bus = getBus();
        bean.setBus(bus);
        bean.setServiceClass(GreeterImpl.class);

        BeanInvoker invoker = new BeanInvoker(new GreeterImpl());
        bean.setInvoker(invoker);
       
        Service service = bean.create();

        String ns = "http://apache.org/hello_world_soap_http";
View Full Code Here

        assertNotNull(resource);
        svr.getServiceFactory().setWsdlURL(resource.toString());
        svr.setServiceClass(GreeterImpl.class);
        svr.setAddress("http://localhost/services/Greeter");
        GreeterImpl greeter = new GreeterImpl();
        BeanInvoker invoker = new BeanInvoker(greeter);
        svr.getServiceFactory().setInvoker(invoker);

        svr.create();
       
    }
View Full Code Here

        }
    }
     
   
    protected Invoker createInvoker() {
        return new BeanInvoker(getServiceBean());
    }
View Full Code Here

TOP

Related Classes of org.apache.cxf.service.invoker.BeanInvoker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.