Examples of ZorroFault


Examples of org.jibx.ws.example.fault.custom.common.ZorroFault

     * @throws WsException on error creating SOAP Fault
     */
    private SoapFault createFaultFor(Greetee greetee) throws WsException {
        SoapFault fault = new SoapFault(SoapFault.FAULT_CODE_SERVER, "ZorroFault in welcomeService",
            "http://example.ws.jibx.org/someactor");
        ZorroFault zorroFault = new ZorroFault(greetee.getName());
        fault.addDetailWriter(new MarshallingOutHandler(zorroFault));
        return fault;
    }
View Full Code Here

Examples of org.jibx.ws.example.fault.custom.common.ZorroFault

            List details = e.getFault().getDetails();
            if (details.size() > 0) {
                for (Iterator iterator = details.iterator(); iterator.hasNext();) {
                    Object detail = iterator.next();
                    if (detail instanceof ZorroFault) {
                        ZorroFault ze = (ZorroFault) detail;
                        System.err.println("Sorry " + ze.getName() + " the following error was sent by the actor "
                            + e.getFault().getFaultActor());
                        System.err.println("\"" + ze.getMessage() + "\"");
                    } else {
                        System.err.println(detail);
                    }
                }
            } else {
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.