Package org.codehaus.xfire.service.invoker

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


    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

    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

    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

    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

    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

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

        return m_xfire;
    }

    public void registerService(Service service, Object svcImpl)
    {
        service.setInvoker(new BeanInvoker(svcImpl));
        m_serviceRegistry.register(service);
    }
View Full Code Here

    extends AbstractXFireAegisTest
{
    public void testInterface() throws Exception
    {
        Service service = getServiceFactory().create(IMyService.class);
        service.setInvoker(new BeanInvoker(new MyService()));
        getServiceRegistry().register(service);
        service.setProperty(IMyObject.class.getName() + ".implementation", MyObject.class.getName());
       
        IMyService client = (IMyService)
            new XFireProxyFactory(getXFire()).create(service, "xfire.local://IMyService");
View Full Code Here

        AnnotationServiceFactory asf = new AnnotationServiceFactory(new Jsr181WebAnnotations(),
                                                                    getXFire().getTransportManager(),
                                                                    new AegisBindingProvider(new JaxbTypeRegistry()));
        service = asf.create(SendMessageImpl.class);
        server = new SendMessageImpl();
        service.setInvoker(new BeanInvoker(server));
       
        getServiceRegistry().register(service);
    }
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.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.