Examples of pingMe()


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

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

                try {
                    greeter.pingMe();
                    fail("Should have thrown FaultException");
                } catch (PingMeFault ex) {
                    assertNotNull(ex.getFaultInfo());
                }
View Full Code Here

Examples of org.apache.hello_world_mixedstyle.Greeter.pingMe()

            String reply = greeter.sayHi();
            assertNotNull("no response received from service", reply);
            assertEquals("Bonjour", reply);
           
            try {
                greeter.pingMe();
                fail("expected exception not caught");
            } catch (org.apache.hello_world_mixedstyle.PingMeFault f) {
                //ignore, expected
            }
        } catch (UndeclaredThrowableException ex) {
View Full Code Here

Examples of org.apache.hello_world_soap12_http.Greeter.pingMe()

    @Test
    public void testPingMeFault() throws Exception {
        Greeter greeter = getGreeter();
        try {
            greeter.pingMe();
            fail("Should throw Exception!");
        } catch (PingMeFault ex) {
            FaultDetail detail = ex.getFaultInfo();
            assertEquals((short)2, detail.getMajor());
            assertEquals((short)1, detail.getMinor());
View Full Code Here

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

        assertEquals("Get a wrong response", "Hello Willem", resp);
       
        proxy.greetMeOneWay(System.getProperty("user.name"));

        try {
            proxy.pingMe("hello");
            fail("expect exception here");
        } catch (PingMeFault ex) {
            FaultDetail detail = ex.getFaultInfo();
            assertEquals("Wrong FaultDetail major:", 2, detail.getMajor());
            assertEquals("Wrong FaultDetail minor:", 1, detail.getMinor());
View Full Code Here

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

      
        port.greetMeOneWay(System.getProperty("user.name"));

        try {
            System.out.println("Invoking pingMe, expecting exception...");
            port.pingMe("hello");
            fail("expects the exception here");
        } catch (PingMeFault ex) {
            assertEquals("Get a wrong exception message", "PingMeFault raised by server EndpointB", ex.getMessage());
            FaultDetail detail = ex.getFaultInfo();
            assertEquals("Wrong FaultDetail major:", 2, detail.getMajor());
View Full Code Here

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

        System.out.println("No response from server as method is OneWay");
        System.out.println();

        try {
            System.out.println("Invoking pingMe, expecting exception...");
            port.pingMe("hello");
        } catch (PingMeFault ex) {
            System.out.println("Expected exception: PingMeFault has occurred: " + ex.getMessage());
            FaultDetail detail = ex.getFaultInfo();
            System.out.println("FaultDetail major:" + detail.getMajor());
            System.out.println("FaultDetail minor:" + detail.getMinor());
View Full Code Here

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

        System.out.println("No response from server as method is OneWay");
        System.out.println();

        try {
            System.out.println("Invoking pingMe, expecting exception...");
            port.pingMe("hello");
        } catch (PingMeFault ex) {
            System.out.println("Expected exception: PingMeFault has occurred: " + ex.getMessage());
            FaultDetail detail = ex.getFaultInfo();
            System.out.println("FaultDetail major:" + detail.getMajor());
            System.out.println("FaultDetail minor:" + detail.getMinor());           
View Full Code Here

Examples of org.apache.hello_world_soap_http.jibx.Greeter.pingMe()

        } catch (GreetMeFault ex) {
            assertEquals("Some fault detail", ex.getFaultInfo().getGreetMeFaultDetail());
        }
       
        try {
            port.pingMe();
            fail("We expect exception here");
        } catch (PingMeFault ex) {           
            FaultDetail detail = ex.getFaultInfo();
            assertEquals("Wrong faultDetail major", detail.getMajor(), 2);
            assertEquals("Wrong faultDetail minor", detail.getMinor(), 1);            
View Full Code Here

Examples of org.apache.hello_world_soap_http.xmlbeans.Greeter.pingMe()

                       ex.getMessage().
                       indexOf("string length (67) is greater than maxLength facet (30)") >= 0);
        }
       
        try {
            port.pingMe();
            fail("We expect exception here");
        } catch (PingMeFault ex) {           
            FaultDetailDocument detailDocument = ex.getFaultInfo();
            FaultDetail detail = detailDocument.getFaultDetail();
            assertEquals("Wrong faultDetail major", detail.getMajor(), 2);
View Full Code Here

Examples of org.apache.hello_world_soap_http.xmlbeans.Greeter.pingMe()

                       ex.getMessage().
                       indexOf("string length (67) is greater than maxLength facet (30)") >= 0);
        }
       
        try {
            port.pingMe();
            fail("We expect exception here");
        } catch (PingMeFault ex) {           
            FaultDetailDocument detailDocument = ex.getFaultInfo();
            FaultDetail detail = detailDocument.getFaultDetail();
            assertEquals("Wrong faultDetail major", detail.getMajor(), 2);
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.