Examples of sendFault()


Examples of org.apache.axis2.engine.AxisEngine.sendFault()

                    msgContext.setProperty(MessageContext.TRANSPORT_OUT, socket.getOutputStream());

                    MessageContext faultContext =
                            MessageContextBuilder.createFaultMessageContext(msgContext, e);

                    engine.sendFault(faultContext);
                }
            } catch (Exception e1) {
                log.error(e1.getMessage(), e1);
            }
        } finally {
View Full Code Here

Examples of org.apache.axis2.engine.AxisEngine.sendFault()

        }

        try {
            AxisEngine engine = new AxisEngine(cfgCtx);
            MessageContext faultContext = engine.createFaultMessageContext(msgContext, e);
            engine.sendFault(faultContext);

        } catch (Exception ex) {
            response.setStatusCode(HttpStatus.SC_INTERNAL_SERVER_ERROR);
            response.addHeader(CONTENT_TYPE, TEXT_XML);
            serverHandler.commitResponse(conn, response);
View Full Code Here

Examples of org.apache.axis2.engine.AxisEngine.sendFault()

            try {
                if (msgContext != null) {
                    MessageContext faultContext =
                            MessageContextBuilder.createFaultMessageContext(msgContext, e);

                    engine.sendFault(faultContext);
                }
            } catch (Exception e1) {
                log.error(e.getMessage(), e);
            }
        }
View Full Code Here

Examples of org.apache.axis2.engine.AxisEngine.sendFault()

  private void handleFault(MessageContext inMsgContext, Exception e) throws Exception {
    // msgContext.setProperty(MessageContext.TRANSPORT_OUT, out);
    AxisEngine engine = new AxisEngine(inMsgContext.getConfigurationContext());
    MessageContext faultContext = engine.createFaultMessageContext(inMsgContext, e);
    engine.sendFault(faultContext);
  }
 
}
View Full Code Here

Examples of org.apache.axis2.engine.AxisEngine.sendFault()

            public void handleFault(AxisFault fault) throws AxisFault {
                AxisEngine engine =
                    new AxisEngine(
                        messgeCtx.getOperationContext().getServiceContext().getEngineContext());
                MessageContext faultContext = engine.createFaultMessageContext(messgeCtx, fault);
                engine.sendFault(faultContext);
            }
        };
        Runnable theadedTask = new Runnable() {
            public void run() {
                try {
View Full Code Here

Examples of org.apache.axis2.engine.AxisEngine.sendFault()

            if (msgContext != null) {
                msgContext.setProperty(MessageContext.TRANSPORT_OUT, out);
                AxisEngine engine = new AxisEngine(configContext);
                MessageContext faultContext =
                        engine.createFaultMessageContext(msgContext, e);
                engine.sendFault(faultContext);
            } else {
                throw new ServletException(e);
            }
        } catch (Exception e) {
            throw new ServletException(e);
View Full Code Here

Examples of org.apache.axis2.engine.AxisEngine.sendFault()

                msgContext.setProperty(MessageContext.TRANSPORT_OUT,
                        out);
                AxisEngine engine = new AxisEngine(configContext);
                MessageContext faultContext =
                        engine.createFaultMessageContext(msgContext, e);
                engine.sendFault(faultContext);
            } else {
                throw new ServletException(e);
            }
        }
    }
View Full Code Here

Examples of org.apache.axis2.engine.AxisEngine.sendFault()

        } catch (AxisFault e) {
            AxisEngine engine =
                new AxisEngine(
                    messgeCtx.getOperationContext().getServiceContext().getEngineContext());
            MessageContext faultContext = engine.createFaultMessageContext(messgeCtx, e);
            engine.sendFault(faultContext);
        }
    }

}
View Full Code Here

Examples of org.apache.axis2.engine.AxisEngine.sendFault()

        } catch (Exception e) {
            try {

                if (msgContext != null) {
                    MessageContext faultContext = engine.createFaultMessageContext(msgContext, e);
                    engine.sendFault(faultContext);
                } else {
                    log.error(e);
                }
            } catch (AxisFault e1) {
                log.error(e);
View Full Code Here

Examples of org.apache.sandesha.server.msgprocessors.FaultProcessor.sendFault()

            rmMessageContext.setMsgContext(msgContext);
            try {
                MessageValidator.validate(rmMessageContext, client);
            } catch (AxisFault af) {
                FaultProcessor faultProcessor = new FaultProcessor(storageManager, af);
                if (!faultProcessor.sendFault(rmMessageContext)) {
                    msgContext.setPastPivot(true);
                    msgContext.setResponseMessage(null);
                    return;
                }
                return;
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.