Examples of HelloService


Examples of org.apache.cxf.service.factory.HelloService

    public void testClientServer() {
        BusFactory.setDefaultBus(null);
        ClassPathXmlApplicationContext ctx =
            new ClassPathXmlApplicationContext(new String[] {"/org/apache/cxf/frontend/spring/rountrip.xml"});
       
        HelloService greeter = (HelloService) ctx.getBean("client");
        assertNotNull(greeter);
       
        String result = greeter.sayHello();
        assertEquals("We get the wrong sayHello result", result, "hello");
    }
View Full Code Here

Examples of org.apache.cxf.service.factory.HelloService

        BindingConfiguration bc = cpfbean.getBindingConfig();
        assertTrue(bc instanceof SoapBindingConfiguration);
        SoapBindingConfiguration sbc = (SoapBindingConfiguration) bc;
        assertTrue(sbc.getVersion() instanceof Soap12);

        HelloService greeter = (HelloService) ctx.getBean("client1");
        assertNotNull(greeter);

        Client client = ClientProxy.getClient(greeter);
        assertNotNull("expected ConduitSelector", client.getConduitSelector());
        assertTrue("unexpected ConduitSelector",
View Full Code Here

Examples of org.apache.cxf.service.factory.HelloService

    @Test
    public void testClientServer() {
        ClassPathXmlApplicationContext ctx =
            new ClassPathXmlApplicationContext(new String[] {"/org/apache/cxf/frontend/spring/rountrip.xml"});
       
        HelloService greeter = (HelloService) ctx.getBean("client");
        assertNotNull(greeter);
       
        String result = greeter.sayHello();
        assertEquals("We get the wrong sayHello result", result, "hello");
    }
View Full Code Here

Examples of org.apache.cxf.service.factory.HelloService

            new ClassPathXmlApplicationContext(new String[] {"/org/apache/cxf/frontend/spring/clients.xml"});

        Object bean = ctx.getBean("client1.proxyFactory");
        assertNotNull(bean);
       
        HelloService greeter = (HelloService) ctx.getBean("client1");
        assertNotNull(greeter);
       
        Client client = ClientProxy.getClient(greeter);
        assertNotNull("expected ConduitSelector", client.getConduitSelector());
        assertTrue("unexpected ConduitSelector",
View Full Code Here

Examples of org.apache.cxf.systest.mtom_feature.HelloService

    private Hello getPort() {
        URL wsdl = getClass().getResource("/wsdl_systest/mtom.wsdl");
        assertNotNull("WSDL is null", wsdl);

        HelloService service = new HelloService(wsdl, serviceName);
        assertNotNull("Service is null ", service);
        Hello hello = service.getHelloPort();
        try {
            updateAddressPort(hello, PORT);
        } catch (Exception ex) {
            //ignore
        }
View Full Code Here

Examples of org.apache.cxf.systest.mtom_feature.HelloService

    private Hello getPort() {
        URL wsdl = getClass().getResource("/wsdl_systest/mtom.wsdl");
        assertNotNull("WSDL is null", wsdl);

        HelloService service = new HelloService(wsdl, serviceName);
        assertNotNull("Service is null ", service);
        Hello hello = service.getHelloPort();
        try {
            updateAddressPort(hello, PORT);
        } catch (Exception ex) {
            //ignore
        }
View Full Code Here

Examples of org.apache.cxf.systest.mtom_feature.HelloService

    private Hello getPort() {
        URL wsdl = getClass().getResource("/wsdl_systest/mtom.wsdl");
        assertNotNull("WSDL is null", wsdl);

        HelloService service = new HelloService(wsdl, serviceName);
        assertNotNull("Service is null ", service);
        Hello hello = service.getHelloPort();
        try {
            updateAddressPort(hello, PORT);
        } catch (Exception ex) {
            //ignore
        }
View Full Code Here

Examples of org.apache.cxf.systest.mtom_feature.HelloService

    private Hello getPort() {
        URL wsdl = getClass().getResource("/wsdl_systest/mtom.wsdl");
        assertNotNull("WSDL is null", wsdl);

        HelloService service = new HelloService(wsdl, serviceName);
        assertNotNull("Service is null ", service);
        return service.getHelloPort();
    }
View Full Code Here

Examples of org.apache.felix.ipojo.runtime.core.test.services.HelloService

        // can safely test the declaration binding
        assertFalse(handle.getStatus().isBound());
        handle.publish();

        // This test has been already ssen as failed.
        HelloService hs = osgiHelper.waitForService(HelloService.class, "(factory.name=org.apache.felix.ipojo.runtime" +
                ".core.test.components.FrenchHelloService)", 1000);
        assertNotNull(hs);
        System.out.println("Status: " + handle.getStatus().isBound());

        assertTrue(handle.getStatus().isBound());
View Full Code Here

Examples of org.apache.felix.ipojo.runtime.core.test.services.HelloService

                .build();

        handle.publish();
        assertTrue(ipojoHelper.isServiceAvailableByName(HelloService.class.getName(), "bonjour-service"));

        HelloService service = osgiHelper.getServiceObject(HelloService.class, format("(instance.name=%s)", "bonjour-service"));
        assertEquals(service.hello("Guillaume"), "Salut Guillaume");
    }
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.