Examples of greetMe()


Examples of org.apache.cxf.hello_world_soap_http.Greeter.greetMe()

            String[] names = new String[] {"Anne", "Bill", "Chris", "Scott"};
            // make a sequence of 4 invocations
            for (int i = 0; i < 4; i++) {
                System.out.println("Invoking greetMe...");
                String response = port.greetMe(names[i]);
                System.out.println("response: " + response + "\n");

            }

            bus.shutdown(true);
View Full Code Here

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

        JMSGreeterPortType greeter = service.getPort(portName, JMSGreeterPortType.class);
        for (int idx = 0; idx < 5; idx++) {

            greeter.greetMeOneWay("test String");

            String greeting = greeter.greetMe("Milestone-" + idx);
            assertNotNull("no response received from service", greeting);
            String exResponse = response1 + idx;
            assertEquals(exResponse, greeting);

            String reply = greeter.sayHi();
View Full Code Here

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

        JMSMessageHeadersType requestHeader = new JMSMessageHeadersType();
        requestHeader.setSOAPJMSBindingVersion("0.3");
        requestContext.put(JMSConstants.JMS_CLIENT_REQUEST_HEADERS, requestHeader);
        try {
            greeter.greetMe("Milestone-");
            fail("Should have thrown a fault");
        } catch (SOAPFaultException ex) {
            assertTrue(ex.getMessage().contains("0.3"));
            Map<String, Object> responseContext = bp.getResponseContext();
            JMSMessageHeadersType responseHdr =
View Full Code Here

Examples of org.apache.geronimo.test.JAXWSGreeter.greetMe()

       
        InitialContext ctx = new InitialContext(p);
       
        JAXWSGreeter greeter = (JAXWSGreeter)ctx.lookup("/JAXWSBeanRemote");
       
        String response = greeter.greetMe("foo bar");
       
        System.out.println(response);
       
        assertEquals("Hello foo bar", response);
    }
View Full Code Here

Examples of org.apache.greeter_control.Greeter.greetMe()

            name = "Unknown";
        }
        InitialContext ctx = new InitialContext();
        Service service = (Service)ctx.lookup("java:comp/env/services/Greeter");
        Greeter greeter = service.getPort(Greeter.class);
        System.out.println("WebService returned: " + greeter.greetMe(name));
    }
   
}
View Full Code Here

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

    public void testSimpleUDP() throws Exception {
        JaxWsProxyFactoryBean fact = new JaxWsProxyFactoryBean();
        fact.setAddress("udp://localhost:" + PORT);
        Greeter g = fact.create(Greeter.class);
        for (int x = 0; x < 5; x++) {
            assertEquals("Hello World", g.greetMe("World"));
        }
              
        ((java.io.Closeable)g).close();
    }
    @Test
View Full Code Here

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

        }
           
        JaxWsProxyFactoryBean fact = new JaxWsProxyFactoryBean();
        fact.setAddress("udp://:" + PORT + "/foo");
        Greeter g = fact.create(Greeter.class);
        assertEquals("Hello World", g.greetMe("World"));
        ((java.io.Closeable)g).close();
    }
   
    @Test
    public void testLargeRequest() throws Exception {
View Full Code Here

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

        Greeter g = fact.create(Greeter.class);
        StringBuilder b = new StringBuilder(100000);
        for (int x = 0; x < 10000; x++) {
            b.append("Hello ");
        }
        assertEquals("Hello " + b.toString(), g.greetMe(b.toString()));
              
        ((java.io.Closeable)g).close();
    }   
}
View Full Code Here

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

        EndpointImpl e = (EndpointImpl)Endpoint.publish(address, implementor);
        e.getServer().getEndpoint().getInInterceptors().add(new LoggingInInterceptor());
        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();
View Full Code Here

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

        QName portName = new QName("http://apache.org/hello_world/nmr", "SoapPort");
        ss.addPort(portName, NMRConstants.NS_NMR_BINDING, "local://nmrendpoint");
       
        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();
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.