Package org.jibx.ws.example.custom.exception.common

Examples of org.jibx.ws.example.custom.exception.common.ServiceError


     */
    public void handleException(Throwable t, Processor processor, OutServerConnection outConn) {
        logger.error("Error processing request", t);

        try {
            processor.getCurrentMessageContext().setBody(new ServiceError(t.getClass().getName(), t.getMessage()));
            processor.sendMessage(outConn);
        } catch (IOException e) {
            logger.error(e);
        } catch (WsException e) {
            logger.error(e);
View Full Code Here


     * @throws SoapFaultException if server fault occurs
     */
    public Object welcomeService(Greetee greetee) {
        char firstChar = greetee.getName().charAt(0);
        if (firstChar != 'z' && firstChar != 'Z') {
            return new ServiceError("Bad Name", "Sorry, service only available for names starting with Z !");
        }
        return new Welcome("Howdy " + greetee.getName() + "!");
    }
View Full Code Here

TOP

Related Classes of org.jibx.ws.example.custom.exception.common.ServiceError

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.