Examples of receiveFault()


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

            StAXBuilder builder = new StAXSOAPModelBuilder(reader, soapNamespaceURI);

            SOAPEnvelope envelope = (SOAPEnvelope) builder.getDocumentElement();
            msgContext.setEnvelope(envelope);
            if (envelope.getBody().hasFault()) {
                engine.receiveFault(msgContext);
            } else {
                engine.receive(msgContext);
            }
        } catch (Exception e) {
            try {
View Full Code Here

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

            }

            msgContext.setEnvelope(envelope);
            AxisEngine engine = new AxisEngine(configurationContext);
            if (envelope.getBody().hasFault()) {
                engine.receiveFault(msgContext);
            } else {
                engine.receive(msgContext);
            }
        } catch (SOAPProcessingException e) {
            throw new AxisFault(e);
View Full Code Here

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

                StAXBuilder builder = new StAXSOAPModelBuilder(reader, soapNamespaceURI);
                SOAPEnvelope envelope = (SOAPEnvelope) builder.getDocumentElement();
                msgContext.setEnvelope(envelope);
                if (envelope.getBody().hasFault()) {
                    engine.receiveFault(msgContext);
                } else {
                    engine.receive(msgContext);
                }
            } else {
                throw new AxisFault(Messages.getMessage("unknownTransport",
View Full Code Here

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

            SOAPEnvelope envelope = (SOAPEnvelope) builder.getDocumentElement();

            msgContext.setEnvelope(envelope);

            if (envelope.getBody().hasFault()) {
                engine.receiveFault(msgContext);
            } else {
                engine.receive(msgContext);
            }
        } catch (Exception e) {
            try {
View Full Code Here

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

            msgContext.setEnvelope(envelope);

            AxisEngine engine = new AxisEngine(msgContext.getConfigurationContext());

            if (envelope.getBody().hasFault()) {
                engine.receiveFault(msgContext);
            } else {
                engine.receive(msgContext);
            }
        } catch (SOAPProcessingException e) {
            throw new AxisFault(e);
View Full Code Here

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

                SOAPEnvelope envelope = (SOAPEnvelope) builder.getDocumentElement();

                msgContext.setEnvelope(envelope);

                if (envelope.getBody().hasFault()) {
                    engine.receiveFault(msgContext);
                } else {
                    engine.receive(msgContext);
                }
            } else {
                throw new AxisFault(Messages.getMessage("unknownTransport",
View Full Code Here

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

                responseMessageContext.setEnvelope(envelope);
            }
            if (envelope != null) {
                if (envelope.getBody().hasFault()) {
                    //receiving a fault
                    engine.receiveFault(responseMessageContext);
                    AxisFault af = Utils.getInboundFaultFromMessageContext(responseMessageContext);
                    throw af;
                }
            }
            return null;
View Full Code Here

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

        // create and initialize a message context
        while (true) {
            try {
                msgContext = (MessageContext) messageQueue.take();
                if (msgContext.getEnvelope().getBody().hasFault()) {
                    engine.receiveFault(msgContext);
                } else {
                    engine.receive(msgContext);
                }

            } catch (Exception e) {
View Full Code Here

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

            envelope = TransportUtils.createSOAPMessage(msgContext, in, contentType);
            msgContext.setEnvelope(envelope);
            AxisEngine engine = new AxisEngine(msgContext.getConfigurationContext());

            if (envelope.getBody().hasFault()) {
                pi = engine.receiveFault(msgContext);
            } else {
                pi = engine.receive(msgContext);
            }

            return pi;
View Full Code Here

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

            msgCtx.setEnvelope(envelope);

            AxisEngine engine = new AxisEngine(confContext);

            if (envelope.getBody().hasFault()) {
                engine.receiveFault(msgCtx);
            } else {
                engine.receive(msgCtx);
            }
        } catch (XMLStreamException e) {
            throw new AxisFault(e);
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.