Package org.codehaus.xfire.service.binding

Examples of org.codehaus.xfire.service.binding.ObjectServiceFactory.create()


        props.put(AegisBindingProvider.WRITE_XSI_TYPE_KEY, "true");
        ArrayList l = new ArrayList();
        l.add(Employee.class.getName());

        props.put(AegisBindingProvider.OVERRIDE_TYPES_KEY, l);
        endpoint = osf.create(InheritanceService.class,
                              "InheritanceService",
                              "urn:xfire:inheritance",
                              props);

        getServiceRegistry().register(endpoint);
View Full Code Here


                return op.getName();
            }
        };
        osf.setStyle(SoapConstants.STYLE_DOCUMENT);
       
        Service service = osf.create(SoapActionService.class);
        getServiceRegistry().register(service);
    }

    public void testSoapAction()
            throws Exception
View Full Code Here

    {
        super.setUp();
       
        ObjectServiceFactory osf = (ObjectServiceFactory) getServiceFactory();
        osf.setStyle(SoapConstants.STYLE_RPC);
        service = osf.create(Echo.class, null, "urn:xfire:echo", null);

        getServiceRegistry().register(service);
    }

    public void testService() throws Exception
View Full Code Here

                return j == -1 || j == 1;
            }
           
        };
       
        service = factory.create(Echo.class);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, EchoImpl.class);
       
        getServiceRegistry().register(service);
    }
   
View Full Code Here

        ServiceStarter starter = new ServiceStarter();
        starter.start();
       
        // Create a service model for the client
        ObjectServiceFactory serviceFactory = new ObjectServiceFactory();
        Service serviceModel = serviceFactory.create(Echo.class);

        // Create a client proxy
        XFireProxyFactory proxyFactory = new XFireProxyFactory();
        Echo echo = (Echo) proxyFactory.create(serviceModel, "http://localhost:8191/Echo");
       
View Full Code Here

               
                return super.isHeader(method, j);
            }
        };
       
        service = osf.create(MultipleOutService.class, null, "urn:MultipleOutService", null);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, MultipleOutServiceImpl.class);
       
        getServiceRegistry().register(service);
    }
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

        super.setUp();

        ObjectServiceFactory factory = (ObjectServiceFactory) getServiceFactory();
        factory.setStyle(SoapConstants.STYLE_RPC);
       
        service = factory.create(TestService.class);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, TestService.class);

        getServiceRegistry().register(service);
    }
View Full Code Here

        throws Exception
    {
        super.setUp();
       
        ObjectServiceFactory osf = (ObjectServiceFactory) getServiceFactory();
        service = osf.create(AuthService.class, name, ns, null);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, AuthServiceImpl.class);
       
        soap12Binding = osf.createSoap12Binding(service, new QName(service.getTargetNamespace(), "Auth12"), LocalTransport.BINDING_ID);

        getServiceRegistry().register(service);
View Full Code Here

        super.setUp();

        ObjectServiceFactory factory = (ObjectServiceFactory) getServiceFactory();
        factory.addSoap11Transport(JMSTransport.BINDING_ID);
       
        service = factory.create(Echo.class);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, EchoImpl.class);
        getServiceRegistry().register(service);
    }

    public void testInvoke()
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.