Examples of sayHi()


Examples of org.apache.cxf.jms_greeter.JMSGreeterPortType.sayHi()

        JMSGreeterService2 service = new JMSGreeterService2(wsdl, serviceName);
        assertNotNull(service);

        String response = new String("Bonjour");
        JMSGreeterPortType greeter = service.getPort(portName, JMSGreeterPortType.class);   
        String reply = greeter.sayHi();
        assertNotNull("no response received from service", reply);
        assertEquals(response, reply);
    }
   
    @Test
View Full Code Here

Examples of org.apache.cxf.systest.jaxws.Hello.sayHi()

        JaxWsProxyFactoryBean cpfb = new JaxWsProxyFactoryBean();
        String address = serviceURL + "Hello";
        cpfb.setServiceClass(Hello.class);
        cpfb.setAddress(address);
        Hello hello = (Hello) cpfb.create();
        String reply = hello.sayHi(" Willem");
        assertEquals("Get the wrongreply ", reply, "get Willem");
    }

    @Test
    public void testGetServiceList() throws Exception {
View Full Code Here

Examples of org.apache.cxf.systest.jms.Hello.sayHi()

        factory.getFeatures().add(cff);
        factory.setTransportId(JMSSpecConstants.SOAP_JMS_SPECIFICATION_TRANSPORTID);
        factory.setServiceClass(Hello.class);
        factory.setAddress(address);
        Hello client = (Hello)markForClose(factory.create());
        String reply = client.sayHi(" HI");
        Assert.assertEquals("get HI", reply);
    }

}
View Full Code Here

Examples of org.apache.cxf.xmlbeans.doc_lit_bare.PutLastTradedPricePortType.sayHi()

        InoutDocument inOut = InoutDocument.Factory.newInstance();
        data = inOut.addNewInout();
        data.setTickerPrice(12.33F);
        data.setTickerSymbol("CXF");
        Holder<InoutDocument> holder = new Holder<InoutDocument>(inOut);
        port.sayHi(holder);
        assertEquals("Get a wrong response", "BAK", holder.value.getInout().getTickerSymbol());
    }
   
    @Test
    public void testCallFromClient() throws Exception {
View Full Code Here

Examples of org.apache.geronimo.test.hello.ejb.HelloRemote.sayHi()

       
        InitialContext ctx = new InitialContext(p);
       
        HelloRemote bean = (HelloRemote)ctx.lookup("/HelloBeanRemote");
       
        String response = bean.sayHi("foo bar");
       
        System.out.println(response);
       
        assertEquals("Hello foo bar", response);
View Full Code Here

Examples of org.apache.geronimo.test.singleton.ejb.SingletonRemote.sayHi()

       
        InitialContext ctx = new InitialContext(p);
       
  SingletonRemote bean = (SingletonRemote)ctx.lookup("/SingletonBeanRemote");
 
  String response = bean.sayHi("foo bar");

  System.out.println(response);

  assertEquals("Singleton Hello foo bar", response);
    }
View Full Code Here

Examples of org.apache.hello_world.Greeter.sayHi()

        Greeter mortimer = service.getPort(mortimerQ, Greeter.class);
        assertNotNull("Port is null", mortimer);
        updateAddressPort(mortimer, PORT0);

        String answer = mortimer.sayHi();
        assertTrue("Unexpected answer: " + answer,
                "Bonjour from Mortimer".equals(answer));
    }

    /**
 
View Full Code Here

Examples of org.apache.hello_world.jbi.Greeter.sayHi()

        e.getServer().getEndpoint().getOutInterceptors().add(new LoggingOutInterceptor());
       
        port.greetMeOneWay("test");
        String rep = port.greetMe("ffang");
        assertEquals(rep, "Hello ffang");
        rep = port.sayHi();
        assertEquals(rep, "Bonjour");
        try {
            port.pingMe();
            fail();
        } catch (PingMeFault ex) {
View Full Code Here

Examples of org.apache.hello_world.nmr.Greeter.sayHi()

       
        Greeter port = ss.getPort(portName, Greeter.class);
               
        String rep = port.greetMe("ffang");
        assertEquals(rep, "Hello ffang");
        rep = port.sayHi();
        assertEquals(rep, "Bonjour");
        try {
            port.pingMe();
            fail();
        } catch (PingMeFault ex) {
View Full Code Here

Examples of org.apache.hello_world_doc_lit.Greeter.sayHi()

                String exResponse = response1 + idx;
                assertEquals(exResponse, greeting);


               
                String reply = greeter.sayHi();
                assertNotNull("no response received from service", reply);
                assertEquals(response2, reply);
               
                try {
                    greeter.pingMe();
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.