Package org.apache.helloworldsoaphttpjibx.jibx.types

Examples of org.apache.helloworldsoaphttpjibx.jibx.types.FaultDetail


        return "Bonjour";
    }
   
    public void pingMe() throws PingMeFault {
        // here we need to put the FaultDetail into the FaultDetailDocument
        FaultDetail faultDetail = new FaultDetail();
        faultDetail.setMajor((short)2);
        faultDetail.setMinor((short)1);
        LOG.info("Executing operation pingMe, throwing PingMeFault exception");       
        throw new PingMeFault("PingMeFault raised by server", faultDetail);
    }
View Full Code Here


       
        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

TOP

Related Classes of org.apache.helloworldsoaphttpjibx.jibx.types.FaultDetail

Copyright © 2018 www.massapicom. 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.