Package org.apache.axis.message

Examples of org.apache.axis.message.SOAPFaultElement


                msgContext.setResponseMessage(msg);
            } else {
                try {
                    SOAPEnvelope env = msg.getAsSOAPEnvelope();
                    env.clearBody();
                    env.addBodyElement(new SOAPFaultElement((AxisFault)e));
                } catch (AxisFault af) {
                    // Should never reach here!
                }
            }
        }
View Full Code Here


            Message respMsg = serverContext.getResponseMessage();
            if (respMsg == null) {
                respMsg = new Message(fault);
                serverContext.setResponseMessage(respMsg);
            } else {
                SOAPFaultElement faultEl = new SOAPFaultElement(fault);
                SOAPEnvelope env = respMsg.getAsSOAPEnvelope();
                env.clearBody();
                env.addBodyElement(faultEl);
            }
        }
View Full Code Here

                msgContext.setResponseMessage(msg);
            } else {
                try {
                    SOAPEnvelope env = msg.getSOAPEnvelope();
                    env.clearBody();
                    env.addBodyElement(new SOAPFaultElement((AxisFault)e));
                    msgContext.setResponseMessage(msg);
                } catch (AxisFault af) {
                    // Should never reach here!
                }
            }
View Full Code Here

    public void output(SerializationContext context) throws Exception {

        SOAPEnvelope envelope = new SOAPEnvelope();

        SOAPFaultElement fault =
                                new SOAPFaultElement(this);
        envelope.addBodyElement(fault);

        envelope.output(context);
    }
View Full Code Here

            Message respMsg = serverContext.getResponseMessage();
            if (respMsg == null) {
                respMsg = new Message(fault);
                serverContext.setResponseMessage(respMsg);
            } else {
                SOAPFaultElement faultEl = new SOAPFaultElement(fault);
                SOAPEnvelope env = respMsg.getSOAPEnvelope();
                env.clearBody();
                env.addBodyElement(faultEl);
            }
        }
View Full Code Here

            Message respMsg = serverContext.getResponseMessage();
            if (respMsg == null) {
                respMsg = new Message(fault);
                serverContext.setResponseMessage(respMsg);
            } else {
                SOAPFaultElement faultEl = new SOAPFaultElement(fault);
                SOAPEnvelope env = respMsg.getAsSOAPEnvelope();
                env.clearBody();
                env.addBodyElement(faultEl);
            }
        }
View Full Code Here

                msgContext.setResponseMessage(msg);
            } else {
                try {
                    SOAPEnvelope env = msg.getSOAPPart().getAsSOAPEnvelope();
                    env.clearBody();
                    env.addBodyElement(new SOAPFaultElement((AxisFault)e));
                    msgContext.setResponseMessage(msg);
                } catch (AxisFault af) {
                    // Should never reach here!
                }
            }
View Full Code Here

                        try {
                            SOAPEnvelope env = responseMsg.
                                                getSOAPPart().
                                                getAsSOAPEnvelope();
                            env.clearBody();
                            env.addBodyElement(new SOAPFaultElement((AxisFault)e));
                        } catch (AxisFault fault) {
                            // Should never reach here!
                        }
                    }
                }
View Full Code Here

            Message respMsg = serverContext.getResponseMessage();
            if (respMsg == null) {
                respMsg = new Message(fault);
                serverContext.setResponseMessage(respMsg);
            } else {
                SOAPFaultElement faultEl = new SOAPFaultElement(fault);
                SOAPEnvelope env = respMsg.getSOAPPart().getAsSOAPEnvelope();
                env.clearBody();
                env.addBodyElement(faultEl);
            }
        }
View Full Code Here

                        try {
                            SOAPEnvelope env = responseMsg.
                                                getSOAPPart().
                                                getAsSOAPEnvelope();
                            env.clearBody();
                            env.addBodyElement(new SOAPFaultElement((AxisFault)e));
                        } catch (AxisFault fault) {
                            // Should never reach here!
                        }
                    }
                }
View Full Code Here

TOP

Related Classes of org.apache.axis.message.SOAPFaultElement

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.