Examples of BeanInvoker


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

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

        GreeterImpl greeter = new GreeterImpl();
        BeanInvoker invoker = new BeanInvoker(greeter);
        bean.setInvoker(invoker);

        service = bean.create();

        ServerFactoryBean svrFactory = new ServerFactoryBean();
View Full Code Here

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

        assertNotNull(resource);       
        bean.setWsdlURL(resource.toString());
        bean.setBus(bus);
        bean.setServiceClass(GreeterImpl.class);
        GreeterImpl greeter = new GreeterImpl();
        BeanInvoker invoker = new BeanInvoker(greeter);
       
       
        Service service = bean.create();

        assertEquals("SOAPService", service.getName().getLocalPart());
View Full Code Here

Examples of org.codehaus.xfire.service.invoker.BeanInvoker

        l.add(WS1ExtendedException.class.getName());

        props.put(AegisBindingProvider.OVERRIDE_TYPES_KEY, l);
       
        service = getServiceFactory().create(WS1.class, props);
        service.setInvoker(new BeanInvoker(new WS1Impl()));
        getServiceRegistry().register(service);
    }
View Full Code Here

Examples of org.codehaus.xfire.service.invoker.BeanInvoker

    ObjectServiceFactory factory = (ObjectServiceFactory) getServiceFactory();
    AegisServiceConfiguration conf = new AegisServiceConfiguration();
    conf.setServiceFactory(factory);
    factory.getServiceConfigurations().add(0, conf);
    Service service = getServiceFactory().create(EchoImpl.class);
        service.setInvoker(new BeanInvoker(new EchoImpl()));
        getServiceRegistry().register(service);
        Document wsdl = getWSDLDocument("EchoImpl");
        printNode(wsdl);
        addNamespace("wsdl", WSDLWriter.WSDL11_NS);
        addNamespace("xsd","http://www.w3.org/2001/XMLSchema");
View Full Code Here

Examples of org.codehaus.xfire.service.invoker.BeanInvoker

    public void start() throws Exception
    {
        // Create an XFire Service
        ObjectServiceFactory serviceFactory = new ObjectServiceFactory();
        Service service = serviceFactory.create(Echo.class);
        service.setInvoker(new BeanInvoker(new EchoImpl()));
       
        // Register the service in the ServiceRegistry
        XFire xfire = XFireFactory.newInstance().getXFire();
        xfire.getServiceRegistry().register(service);
       
View Full Code Here

Examples of org.codehaus.xfire.service.invoker.BeanInvoker

    extends AbstractXFireAegisTest
{
    public void testDynamicClient() throws Exception
    {
        Service s = getServiceFactory().create(ConcatService.class);
        s.setInvoker(new BeanInvoker(new ConcatService()
        {
            public String concat(String s1, String s2)
            {
                return s1 + s2;
            }
View Full Code Here

Examples of org.codehaus.xfire.service.invoker.BeanInvoker

    extends AbstractXFireAegisTest
{
    public void testBinding() throws Exception
    {
        Service service = new JibxServiceFactory().create(AccountService.class, null, "http://xfire.codehaus.org/jibx", null);
        service.setInvoker(new BeanInvoker(new AccountServiceImpl()));
        getServiceRegistry().register(service);
       
        Document response = invokeService("AccountService", "/org/codehaus/xfire/jibx/getAccountStatus.xml");
        addNamespace("a", "http://xfire.codehaus.org/jibx");
        assertValid("//s:Body/a:getAccountStatusResponse/a:AccountInfo/a:amount[text()='0']", response);
View Full Code Here

Examples of org.codehaus.xfire.service.invoker.BeanInvoker

    public void setUp()
        throws Exception
    {
        super.setUp();
        service = getServiceFactory().create(IInterfaceService.class);
        service.setInvoker(new BeanInvoker(new InterfaceService()));

        service.addOutHandler(new DOMOutHandler());
        service.addOutHandler(new LoggingHandler());
        getServiceRegistry().register(service);
    }
View Full Code Here

Examples of org.codehaus.xfire.service.invoker.BeanInvoker

    service = getServiceFactory().create(InterfaceService.class,
                "InterfaceService",
                "urn:InterfaceService",
                null);
    service.setInvoker(new BeanInvoker(new InterfaceTestService()));
    getServiceRegistry().register(service);
  }
View Full Code Here

Examples of org.codehaus.xfire.service.invoker.BeanInvoker

        return m_xfire;
    }

    public void registerService(Service service, Object svcImpl)
    {
        service.setInvoker(new BeanInvoker(svcImpl));
        m_serviceRegistry.register(service);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.