Package org.codehaus.xfire.service

Examples of org.codehaus.xfire.service.ServiceRegistry


                new ConstructorInjectionComponentAdapter(DummyServiceThatCounts.class,
                        DummyServiceThatCounts.class)));
        getPico().registerComponentInstance(this);

        // Execute it 3 times.
        ServiceRegistry sr = (ServiceRegistry) getPico()
                .getComponentInstance(ServiceRegistry.class);
        assertNotNull(sr);

        Service endpoint = sr.getService("test");
        assertNotNull(endpoint);

        Invoker invoker = endpoint.getInvoker();
        assertNotNull(invoker);
View Full Code Here


        getPico().registerComponent(new ConstructorInjectionComponentAdapter(
                DummyServiceThatCounts.class, DummyServiceThatCounts.class));
        getPico().registerComponentInstance(this);

        // Execute it 3 times.
        ServiceRegistry sr = (ServiceRegistry) getPico()
                .getComponentInstance(ServiceRegistry.class);
        assertNotNull(sr);

        Service endpoint = sr.getService("test");
        assertNotNull(endpoint);

        Invoker invoker = endpoint.getInvoker();
        assertNotNull(invoker);
View Full Code Here

        ClassPathXmlApplicationContext context =
            new ClassPathXmlApplicationContext(new String[] {
                "/org/codehaus/xfire/spring/examples/simple.xml",
                "/org/codehaus/xfire/spring/xfire.xml" });

        ServiceRegistry reg = (ServiceRegistry) context.getBean("xfire.serviceRegistry");
        assertTrue(reg.hasService("Echo"));
    }
View Full Code Here

{
 
    public void testNoAnnotation()
            throws Exception
    {
        ServiceRegistry reg =getXFire().getServiceRegistry();
        assertEquals(1, reg.getServices().size());
        assertTrue(reg.hasService("EchoImpl"));
    }
View Full Code Here

                "/org/codehaus/xfire/spring/xfire.xml" });
    }
   
    public void testService()
    {
        ServiceRegistry reg = (ServiceRegistry) getBean("xfire.serviceRegistry");
        assertTrue(reg.hasService("Echo"));
       
        Service service = reg.getService("Echo");
        OperationInfo operation = service.getServiceInfo().getOperation("echo");
        MessagePartInfo mp = (MessagePartInfo) operation.getInputMessage().getMessageParts().get(0);

        AegisBindingProvider bp = (AegisBindingProvider) getBean("xfire.aegisBindingProvider");
       
View Full Code Here

        ServiceBean service = (ServiceBean) appContext.getBean("echoService");
        assertNotNull(service);
       
        assertNotNull(service.getXFireService());
       
        ServiceRegistry reg = (ServiceRegistry) appContext.getBean("xfire.serviceRegistry");
        assertTrue(reg.hasService(service.getXFireService().getSimpleName()));
       
        assertNotNull(service.getInHandlers());
    }
View Full Code Here

        {
            newClient().getResponse("http://localhost/services/");
        }
        catch(HttpNotFoundException e) {}
       
        ServiceRegistry reg = getXFire().getServiceRegistry();

        assertTrue(reg.hasService("Echo"));
        Service echo = reg.getService("Echo");
        assertNotNull(echo.getName());
        assertNotSame("", echo.getName().getNamespaceURI());
       
        assertTrue(reg.hasService("Echo1"));
        Service echo1 = reg.getService("Echo1");
        assertNotNull(echo1.getBinding(SoapHttpTransport.SOAP12_HTTP_BINDING));

        assertEquals(3, echo1.getInHandlers().size());
        assertTrue(echo1.getInHandlers().get(2) instanceof AddressingInHandler);
        assertEquals(2, echo1.getOutHandlers().size());
View Full Code Here

        Service service = (Service)yan.getInstance("echo");
        assertNotNull(service);
        assertEquals(org.codehaus.xfire.test.Echo.class,
            service.getServiceInfo().getServiceClass());
        assertEquals("echo", service.getName().getLocalPart());
        ServiceRegistry reg = (ServiceRegistry) yan.getInstance("xfire.serviceRegistry");
    }
View Full Code Here

            xfire = configLoader.loadConfig( configUrl );
        } catch (XFireException e) {
            throw new BuildException( "Failure to load the configUrl", e);
        }

        final ServiceRegistry serviceRegistry = xfire.getServiceRegistry();

        Collection services = serviceRegistry.getServices();

       
       

        for (Iterator iterator = services.iterator(); iterator.hasNext();)
View Full Code Here

     *            The name of the service.
     */
    protected WSDLWriter getWSDL(String service)
        throws Exception
    {
        ServiceRegistry reg = getServiceRegistry();
        Service hello = reg.getService(service);

        return hello.getWSDLWriter();
    }
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.service.ServiceRegistry

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.