Package org.apache.hello_world_soap_http

Examples of org.apache.hello_world_soap_http.Greeter.greetMeOneWay()


        assertEquals("Got the wrong reply ", "Hello test", reply);
        reply = greeter.sayHi();
        assertNotNull("No response received from service", reply);
        assertEquals("Got the wrong reply ", "Bonjour", reply);

        greeter.greetMeOneWay("call greetMe OneWay !");

        // test throw the exception
        try {
            greeter.testDocLitFault("NoSuchCodeLitFault");
            // should get the exception here
View Full Code Here


               
                String reply = greeter.sayHi();
                assertNotNull("no response received from service", reply);
                assertEquals(response2, reply);

                greeter.greetMeOneWay("Milestone-" + idx);
               
               
               
            }           
        } catch (UndeclaredThrowableException ex) {
View Full Code Here

               
                String reply = greeter.sayHi();
                assertNotNull("no response received from service", reply);
                assertEquals(response2, reply);

                greeter.greetMeOneWay("Milestone-" + idx);
               
               
               
            }           
        } catch (UndeclaredThrowableException ex) {
View Full Code Here

            Service service = Service.create(SERVICE_NAME);
            service.addPort(PORT_NAME, "http://schemas.xmlsoap.org/soap/",
                            "http://localhost:" + CXFTestSupport.getPort1() + "/CxfConsumerWSRMTest/router");
            Greeter greeter = service.getPort(PORT_NAME, Greeter.class);
           
            greeter.greetMeOneWay("test");
        } finally {
            BusFactory.setThreadDefaultBus(null);
        }

        assertMockEndpointsSatisfied();
View Full Code Here

        assertEquals("Got the wrong reply ", "Hello test", reply);
        assertTrue("No Inbound message received", icp.isCalled());
        assertEquals("The target service not invoked", ++ic, implementor.getInvocationCount());
       
        icp.setCalled(false);
        greeter.greetMeOneWay("call greetMe OneWay !");
        assertFalse("An unnecessary inbound message", icp.isCalled());
        // wait a few seconds for the async oneway service to be invoked
        Thread.sleep(3000);
        assertEquals("The target service not invoked", ++ic, implementor.getInvocationCount());
    }
View Full Code Here

        Service service = Service.create(SERVICE_NAME);
        service.addPort(PORT_NAME , "http://www.w3.org/2003/05/soap/bindings/HTTP/",
                        "http://localhost:" + CXFTestSupport.getPort1() + "/CxfConsumerSoap12Test/router");
        Greeter greeter = service.getPort(PORT_NAME, Greeter.class);
       
        greeter.greetMeOneWay("test");
       
        assertMockEndpointsSatisfied();
    }
}
View Full Code Here

        Map<String, Object> requestContext = provider.getRequestContext();
        requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                           "http://localhost:" + FaultToEndpointServer.PORT + "/jaxws/greeter");
        requestContext.put(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES, addrProperties);

        greeter.greetMeOneWay("test");
        //wait for the fault request
        int i = 2;
        while (HelloHandler.getFaultRequestPath() == null && i > 0) {
            Thread.sleep(500);
            i--;
View Full Code Here

        assertEquals("Got the wrong reply ", "Hello test", reply);
        reply = greeter.sayHi();
        assertNotNull("No response received from service", reply);
        assertEquals("Got the wrong reply ", "Bonjour", reply);

        greeter.greetMeOneWay("call greetMe OneWay !");

        // test throw the exception
        try {
            greeter.testDocLitFault("NoSuchCodeLitFault");
            // should get the exception here
View Full Code Here

        }

        System.out.println();

        System.out.println("Invoking greetMeOneWay...");
        port.greetMeOneWay(System.getProperty("user.name"));
        System.out.println("No response from server as method is OneWay");
        System.out.println();

        try {
            System.out.println("Invoking pingMe, expecting exception...");
View Full Code Here

        MockEndpoint mock = getMockEndpoint("mock:result");
        mock.expectedMessageCount(1);
        mock.expectedFileExists("target/camel-file/cxf-oneway-route");
       
        Greeter client = getCXFClient();
        client.greetMeOneWay("lemac");

        // may need to wait until the oneway call completes
        long waitUntil = System.currentTimeMillis() + 10000;
        while (!bindingDone && System.currentTimeMillis() < waitUntil) {
            Thread.sleep(1000);
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.