Package org.apache.hello_world_soap_http.xmlbeans

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


        ClientProxy.getClient(port).getInInterceptors().add(new LoggingInInterceptor());
        ClientProxy.getClient(port).getOutInterceptors().add(new LoggingOutInterceptor());
        resp = port.sayHi();
        assertEquals("We should get the right response", "Bonjour", resp);       
       
        resp = port.greetMe("Willem");
        assertEquals("We should get the right response", "Hello Willem", resp);

        try {
            port.greetMe("fault");
            fail("Should have been a fault");
View Full Code Here


       
        resp = port.greetMe("Willem");
        assertEquals("We should get the right response", "Hello Willem", resp);

        try {
            port.greetMe("fault");
            fail("Should have been a fault");
        } catch (GreetMeFault ex) {
            assertEquals("Some fault detail", ex.getFaultInfo().getStringValue());
        }
View Full Code Here

        } catch (GreetMeFault ex) {
            assertEquals("Some fault detail", ex.getFaultInfo().getStringValue());
        }

        try {
            resp = port.greetMe("Invoking greetMe with invalid length string, expecting exception...");
            fail("We expect exception here");
        } catch (WebServiceException ex) {          
            assertTrue("Get a wrong exception",
                       ex.getMessage().
                       indexOf("string length (67) is greater than maxLength facet (30)") >= 0);
View Full Code Here

        ClientProxy.getClient(port).getInInterceptors().add(new LoggingInInterceptor());
        ClientProxy.getClient(port).getOutInterceptors().add(new LoggingOutInterceptor());
        resp = port.sayHi();
        assertEquals("We should get the right response", resp, "Bonjour");       
       
        resp = port.greetMe("Willem");
        assertEquals("We should get the right response", resp, "Hello Willem");
       
        try {
            resp = port.greetMe("Invoking greetMe with invalid length string, expecting exception...");
            fail("We expect exception here");
View Full Code Here

       
        resp = port.greetMe("Willem");
        assertEquals("We should get the right response", resp, "Hello Willem");
       
        try {
            resp = port.greetMe("Invoking greetMe with invalid length string, expecting exception...");
            fail("We expect exception here");
        } catch (WebServiceException ex) {          
            assertTrue("Get a wrong exception",
                       ex.getMessage().
                       indexOf("string length (67) is greater than maxLength facet (30)") >= 0);
View Full Code Here

            FaultDetail detail = detailDocument.getFaultDetail();
            assertEquals("Wrong faultDetail major", detail.getMajor(), 2);
            assertEquals("Wrong faultDetail minor", detail.getMinor(), 1);            
       
        try {
            port.greetMe("fault");
            fail("Should have been a fault");
        } catch (GreetMeFault ex) {
            assertEquals("Some fault detail", ex.getFaultInfo().getStringValue());
        }
View Full Code Here

        String resp;
       
        resp = port.sayHi();
        assertEquals("We should get the right response", resp, "Bonjour");       
       
        resp = port.greetMe("Willem");
        assertEquals("We should get the right response", resp, "Hello Willem");
       
        try {
            resp = port.greetMe("Invoking greetMe with invalid length string, expecting exception...");
            fail("We expect exception here");
View Full Code Here

       
        resp = port.greetMe("Willem");
        assertEquals("We should get the right response", resp, "Hello Willem");
       
        try {
            resp = port.greetMe("Invoking greetMe with invalid length string, expecting exception...");
            fail("We expect exception here");
        } catch (WebServiceException ex) {          
            assertTrue("Get a wrong exception",
                       ex.getMessage().
                       indexOf("string length (67) is greater than maxLength facet (30)") >= 0);
View Full Code Here

        ClientProxy.getClient(port).getInInterceptors().add(new LoggingInInterceptor());
        ClientProxy.getClient(port).getOutInterceptors().add(new LoggingOutInterceptor());
        resp = port.sayHi();
        assertEquals("We should get the right response", "Bonjour", resp);       
       
        resp = port.greetMe("Willem");
        assertEquals("We should get the right response", "Hello Willem", resp);

        try {
            port.greetMe("fault");
            fail("Should have been a fault");
View Full Code Here

       
        resp = port.greetMe("Willem");
        assertEquals("We should get the right response", "Hello Willem", resp);

        try {
            port.greetMe("fault");
            fail("Should have been a fault");
        } catch (GreetMeFault ex) {
            assertEquals("Some fault detail", ex.getFaultInfo().getGreetMeFaultDetail());
        }
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.