Package org.codehaus.xfire.service

Examples of org.codehaus.xfire.service.ServiceFactory.create()


    {
        super.setUp();

        ServiceFactory factory = getServiceFactory();
       
        service = factory.create(BeanService.class);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, BeanService.class);

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


        callCount = 0;

        // Create using PicoObjectServiceFactory and put the Service into the
        // pico.
        ServiceFactory sf = getServiceFactory();
        Service ms = sf.create(DummyServiceThatCounts.class);
        ms.setName(new QName("test"));
        getPico().registerComponentInstance(ms);

        // Register XFireServiceRegisterVisitor and its dependency into the
        // pico.
View Full Code Here

       
        // Register the web service.
        XFire xfire = getXFire();
        ServiceFactory factory = new ObjectServiceFactory(xfire.getTransportManager(), null);
       
        Service service = factory.create(BookService.class);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, BookServiceImpl.class);
        xfire.getServiceRegistry().register(service);
    }
   
    public void testClient() throws Exception
View Full Code Here

    {
        super.setUp();

        ServiceFactory factory = getServiceFactory();
       
        service = factory.create(Echo.class);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, EchoImpl.class);

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

    {
        super.setUp();

        ServiceFactory factory = getServiceFactory();
       
        service = factory.create(Echo.class);

        getServiceRegistry().register(service);
    }

    public void testInvoke()
View Full Code Here

    
        XFireHttpServer server = new XFireHttpServer(getXFire());
        server.setPort(8191);
        server.start();
       
        Service service = serverFact.create(Echo.class);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, EchoImpl.class);

        getServiceRegistry().register(service);

        // now create a special factory that will actually use the created WSDL
View Full Code Here

    
        XFireHttpServer server = new XFireHttpServer(getXFire());
        server.setPort(8191);
        server.start();
       
        Service service = serverFact.create(Echo.class);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, EchoImpl.class);

        getServiceRegistry().register(service);

        // now create a special factory that will actually use the created WSDL
View Full Code Here

        };
       
        Map properties = new HashMap();
        properties.put(ObjectServiceFactory.PORT_TYPE, new QName("urn:Echo", "EchoPortType"));
       
        Service service = sf.create(Echo.class,
                                    new QName("urn:Echo", "Echo"),
                                    getClass().getResource("echo.wsdl"),
                                    null);
       
        assertEquals(1, service.getBindings().size());
View Full Code Here

    public Object getProxy() throws Exception {
        if (proxy == null) {
            Map props = new HashMap();
            props.put(AnnotationServiceFactory.ALLOW_INTERFACE, Boolean.TRUE);
            ServiceFactory factory = ServiceFactoryHelper.findServiceFactory(xfire, serviceClass, null, null);
            Service service = factory.create(serviceClass, props);
            JBIClient client;
            if (factory instanceof JAXWSServiceFactory) {
                client = new JAXWSJBIClient(xfire, service);
            } else {
                client = new JBIClient(xfire, service);
View Full Code Here

    }
   
    public Object getProxy() throws Exception {
        if (proxy == null) {
            ServiceFactory factory = ServiceFactoryHelper.findServiceFactory(xfire, serviceClass, null, null);
            Service service = factory.create(serviceClass, null, getDescription(), null);
            JBIClient client = new JBIClient(xfire, service);
            if (interfaceName != null) {
                client.getService().setProperty(JbiChannel.JBI_INTERFACE_NAME, interfaceName);
            }
            if (serviceName != null) {
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.