Package org.apache.axis2.clientapi

Examples of org.apache.axis2.clientapi.MessageSender.send()


          Constants.VALUE_TRUE);

      rmMsgCtx.getMessageContext().setProperty(
          Sandesha2Constants.ACK_WRITTEN, "true");
      try {
        engine.send(ackRMMsgCtx.getMessageContext());
      } catch (AxisFault e1) {
        throw new SandeshaException(e1.getMessage());
      }
    } else {
View Full Code Here


     
      ackMsgCtx.setTransportOut(new Sandesha2TransportOutDesc ());
     
      AxisEngine engine = new AxisEngine (configurationContext);
      try {
        engine.send(ackMsgCtx);
      } catch (AxisFault e) {
        throw new SandeshaException (e.getMessage());
      }
     
      SandeshaUtil.startSenderForTheSequence(configurationContext,sequenceID);
View Full Code Here

            }

            oc.addMessageContext(mc);
            // ship it out
            AxisEngine engine = new AxisEngine(cc);
            engine.send(mc);
        }

    }

    public OperationContext getOperationContext() {
View Full Code Here

        AxisEngine ae = new AxisEngine(messageContext.getConfigurationContext());
        try {
            messageContext.setProperty(Constants.ISRESPONSE_PROPERTY, Boolean.TRUE);
            // check for addressing is alredy engaged for this message.
            // if engage we should use the address enable Configuraion context.
            ae.send(messageContext);

        } catch (AxisFault e) {
            throw new SynapseException(e);
        }
    }
View Full Code Here

                // Building a nicely formatted fault
                envelope.getBody().addFault(toSoapFault(e, soapFactory));
            }
            AxisEngine engine = new AxisEngine(
                    msgContext.getOperationContext().getServiceContext().getConfigurationContext());
            engine.send(outMsgContext);
        } catch (IllegalAccessException e) {
            throw new OdeFault("Couldn't invoke method named " + methodName + " in management interface!", e);
        } catch (InvocationTargetException e) {
            throw new OdeFault("Invocation of method " + methodName + " in management interface failed!", e.getTargetException());
        }
View Full Code Here

                        + msgContext.getAxisOperation().getName());
                __log.debug("Reply message " + outMsgContext.getEnvelope());
            }
            AxisEngine engine = new AxisEngine(msgContext.getOperationContext().getServiceContext()
                    .getConfigurationContext());
            engine.send(outMsgContext);
        } else {
            if (__log.isDebugEnabled())
                __log.debug("Received one-way message for " + msgContext.getAxisService().getName() + "."
                        + msgContext.getAxisOperation().getName());
            invokeBusinessLogic(msgContext, null);
View Full Code Here

            OMElement responseOp = factory.createOMElement(op, _pmapi);
            responseOp.addChild(response);
            envelope.getBody().addChild(response);
            AxisEngine engine = new AxisEngine(
                    messageContext.getOperationContext().getServiceContext().getConfigurationContext());
            engine.send(outMsgContext);
        }
    }

    private static void copyInputStream(InputStream in, OutputStream out)
            throws IOException {
View Full Code Here

                        + msgContext.getAxisOperation().getName());
        __log.debug("Reply message " + outMsgContext.getEnvelope());
      }
            AxisEngine engine = new AxisEngine(msgContext.getOperationContext().getServiceContext()
                    .getConfigurationContext());
      engine.send(outMsgContext);
    } else {
            if (__log.isDebugEnabled())
                __log.debug("Received one-way message for " + msgContext.getAxisService().getName() + "."
                        + msgContext.getAxisOperation().getName());
            invokeBusinessLogic(msgContext, null);
View Full Code Here

                            "." + msgContext.getAxisOperation().getName());
                    __log.debug("Reply mgmt message " + outMsgContext.getEnvelope());
                }
                AxisEngine engine = new AxisEngine(
                        msgContext.getOperationContext().getServiceContext().getConfigurationContext());
                engine.send(outMsgContext);
            }
        } catch (IllegalAccessException e) {
            throw new OdeFault("Couldn't invoke method named " + methodName + " in management interface!", e);
        } catch (InvocationTargetException e) {
            throw new OdeFault("Invocation of method " + methodName + " in management interface failed!", e);
View Full Code Here

        TestLogger.logger.debug("[server] response message [" + responseEnv.toString() + "]");
       
        response.getOperationContext().addMessageContext(response);
        AxisEngine engine = new AxisEngine(response.getConfigurationContext());
        engine.send(response);   
    }
   
    /*
     * Verify that the AxisOperation on the MessageContext is the
     * one that we were expecting based on the request.
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.