Package org.apache.axis2.engine

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


      if (resenvelope!=null) {
        //we proceed only if we hv found a valid envelope.
        if (isFaultEnvelope(resenvelope)) {
          engine.receiveFault(responseMessageContext);
        } else {
          engine.receive(responseMessageContext);
        }
      }

    } catch (Exception e) {
      String message = SandeshaMessageHelper.getMessage(SandeshaMessageKeys.noValidSyncResponse);
View Full Code Here


        if (postFailureInvocation) {
          makeMessageReadyForReinjection(msgToInvoke);
          if (log.isDebugEnabled())
            log.debug("Receiving message, key=" + messageContextKey + ", msgCtx="
                + msgToInvoke.getEnvelope().getHeader());
          engine.receive(msgToInvoke);
        } else {
          if (log.isDebugEnabled())
            log.debug("Resuming message, key=" + messageContextKey + ", msgCtx="
                + msgToInvoke.getEnvelope().getHeader());
          msgToInvoke.setPaused(false);
View Full Code Here

                    throw new AxisFault(soapFault.getCode(), soapFault.getReason(),
                            soapFault.getNode(), soapFault.getRole(), soapFault.getDetail());
                }
            } else {
                engine = new AxisEngine(msgctx.getConfigurationContext());
                engine.receive(responseMessageContext);
                if (responseMessageContext.getReplyTo() != null) {
                    sc.setTargetEPR(responseMessageContext.getReplyTo());
                }
            }
        }
View Full Code Here

        try {
            rmEnabledService(cc, ac, msgCtx);

            AxisEngine ae = new AxisEngine(cc);

            ae.receive(msgCtx);

        } catch (AxisFault axisFault) {
            throw new SynapseException(axisFault);
        }
        if (shouldTrace) {
View Full Code Here

            responseMessageContext, msgctx.getEnvelope()
                .getNamespace().getNamespaceURI());
        if (resenvelope != null) {
          responseMessageContext.setEnvelope(resenvelope);
          engine = new AxisEngine(msgctx.getConfigurationContext());
          engine.receive(responseMessageContext);
          if (responseMessageContext.getReplyTo() != null) {
            sc.setTargetEPR(responseMessageContext.getReplyTo());
          }
        } else {
          throw new AxisFault(Messages
View Full Code Here

        try {
            rmEnabledService(cc, ac, msgCtx);

            AxisEngine ae = new AxisEngine(cc);

            ae.receive(msgCtx);

        } catch (AxisFault axisFault) {
            throw new SynapseException(axisFault);
        }
        return false;
View Full Code Here

            log.error("Error closing input stream from which message was read", e);
        }

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

        try {
View Full Code Here

            .getConfigurationContext());
       
        if (isFaultEnvelope(resenvelope)) {
          engine.receiveFault(responseMessageContext);
        }else {
          engine.receive(responseMessageContext);
        }
      }
     
    } catch (Exception e) {
      String message = "No valid Sync response...";
View Full Code Here

     */
    public void run() {
        AxisEngine engine = new AxisEngine(configContext);
        // create and initialize a message context
        try {
            engine.receive(messageContext);
        } catch (Exception e) {
            try {
                if (messageContext != null&&!messageContext.isServerSide()) {
                    MessageContext faultContext =
                            MessageContextBuilder.createFaultMessageContext(messageContext, e);
View Full Code Here

            AxisEngine engine = new AxisEngine(msgCtx.getConfigurationContext());
            try {
                log.debug("Delegating JMS message for processing to the Axis engine");
                try {
                    engine.receive(msgCtx);
                } catch (AxisFault e) {
                    log.debug("Exception occured when receiving the SOAP message", e);
                    if (msgCtx.isServerSide()) {
                        MessageContext faultContext = MessageContextBuilder.createFaultMessageContext(msgCtx, e);
                        engine.sendFault(faultContext);
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.