Package org.apache.hello_world_soap_http_xmlbeans.xmlbeans

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


       
        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().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.