Package org.apache.axis2.engine

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


            ao.registerOperationContext(mc,oc);
            ServiceContext sc = Utils.fillContextInformation(ao, as, cc);
            oc.setParent(sc);
            mc.setAxisOperation(ao);
            mc.setAxisService(as);
            ae.receive(mc);

        } catch (AxisFault axisFault) {
            throw new SynapseException(
                    "__AddresingInHandler__ caught an Exception" +
                            axisFault.getMessage());
View Full Code Here


            responseMsgCtx.setProperty(NhttpConstants.NON_BLOCKING_TRANSPORT, true);

            // process response received
            AxisEngine engine = new AxisEngine(cfgCtx);
            try {
                engine.receive(responseMsgCtx);
            } catch (AxisFault af) {
                log.error("Fault processing response message through Axis2", af);
            }

        } catch (AxisFault af) {
View Full Code Here

                new ByteArrayInputStream(message.getBytes());
            XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(bais);
            StAXBuilder builder = new StAXSOAPModelBuilder(reader);
            msgContext.setEnvelope((SOAPEnvelope) builder.getDocumentElement());
            // invoke the Axis engine
            engine.receive(msgContext);
        } catch (Exception e) {
            AxisFault af;
            if (e instanceof AxisFault) {
                af = (AxisFault) e;
                log.debug("Error occured while trying to process the mail.", af);
View Full Code Here

            try {
                msgContext = (MessageContext) messageQueue.take();
                if (msgContext.getEnvelope().getBody().hasFault()) {
                    engine.receiveFault(msgContext);
                } else {
                    engine.receive(msgContext);
                }

            } catch (Exception e) {
                try {
                    if (msgContext != null) {
View Full Code Here

            return false;
        } else {
            msgContext.setDoingREST(true);
            msgContext.setEnvelope(envelope);
            AxisEngine engine = new AxisEngine(configurationContext);
            engine.receive(msgContext);
            return true;
        }
    }

    private static final int VERSION_UNKNOWN = 0;
View Full Code Here

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

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

            return pi;
        } catch (SOAPProcessingException e) {
            throw new AxisFault(e);
View Full Code Here

            AxisEngine engine = new AxisEngine(confContext);

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

            msgContext.setEnvelope(envelope);

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

    }

    private static Handler.InvocationResponse invokeAxisEngine(MessageContext messageContext)
            throws AxisFault {
        AxisEngine axisEngine = new AxisEngine(messageContext.getConfigurationContext());
        return axisEngine.receive(messageContext);

    }

    private static void dispatchAndVerify(MessageContext msgContext) throws AxisFault {
        RequestURIBasedDispatcher requestDispatcher = new RequestURIBasedDispatcher();
View Full Code Here

                msgContext.setEnvelope(envelope);

                if (envelope.getBody().hasFault()) {
                    engine.receiveFault(msgContext);
                } else {
                    engine.receive(msgContext);
                }
            } else {
                throw new AxisFault(Messages.getMessage("unknownTransport",
                                                        Constants.TRANSPORT_TCP));
            }
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.