/** * same as OutInAxisOperationClient */ public void addMessageContext(MessageContext mc) throws AxisFault { mc.setServiceContext(sc); if (mc.getMessageID() == null) { setMessageID(mc); } axisOp.registerOperationContext(mc, oc); }
/** * same as OutInAxisOperationClient */ public void addMessageContext(MessageContext mc) throws AxisFault { mc.setServiceContext(sc); if (mc.getMessageID() == null) { setMessageID(mc); } axisOp.registerOperationContext(mc, oc); }
/** * Adds message context to operation context, so that it will handle the * logic correctly if the OperationContext is null then new one will be * created, and Operation Context will become null when some one calls reset(). * * @param msgContext the MessageContext to add * @throws AxisFault */ public void addMessageContext(MessageContext msgContext) throws AxisFault { msgContext.setServiceContext(sc); if (msgContext.getMessageID() == null) { setMessageID(msgContext); } axisOp.registerOperationContext(msgContext, oc); }
/** * Adds message context to operation context, so that it will handle the * logic correctly if the OperationContext is null then new one will be * created, and Operation Context will become null when some one calls reset(). * * @param msgContext the MessageContext to add * @throws AxisFault */ public void addMessageContext(MessageContext msgContext) throws AxisFault { msgContext.setServiceContext(sc); if (msgContext.getMessageID() == null) { setMessageID(msgContext); } axisOp.registerOperationContext(msgContext, oc); }
/** * Adds message context to operation context, so that it will handle the logic correctly if the OperationContext * is null then new one will be created, and Operation Context will become null when some one calls reset(). * * @param msgContext the MessageContext to add * @throws AxisFault */ @Override public void addMessageContext(final MessageContext msgContext) throws AxisFault { msgContext.setServiceContext(sc); if (msgContext.getMessageID() == null) { setMessageID(msgContext); } axisOp.registerOperationContext(msgContext, oc); }
/** * Adds a message context to the client for processing. This method must not * process the message - it only records it in the MEP client. Processing * only occurs when execute() is called. * * @param mc the message context * @throws AxisFault if this is called inappropriately. */ public void addMessageContext(MessageContext mc) throws AxisFault { if (this.mc != null) { throw new AxisFault(Messages.getMessage("cannotaddmsgctx")); } this.mc = mc; if (mc.getMessageID() == null) { setMessageID(mc); } mc.setServiceContext(sc); axisOp.registerOperationContext(mc, oc); this.completed = false; }
/** * Adds a message context to the client for processing. This method must not * process the message - it only records it in the MEP client. Processing * only occurs when execute() is called. * * @param mc the message context * @throws AxisFault if this is called inappropriately. */ public void addMessageContext(MessageContext mc) throws AxisFault { if (this.mc != null) { throw new AxisFault(Messages.getMessage("cannotaddmsgctx")); } this.mc = mc; if (mc.getMessageID() == null) { setMessageID(mc); } mc.setServiceContext(sc); axisOp.registerOperationContext(mc, oc); this.completed = false; }
OperationContext operationContext = messageContext.getServiceContext().createOperationContext(inOutOperation); inOutOperation.registerOperationContext(newMessageContext, operationContext); messageContext.setAxisMessage(inOutOperation.getMessage(WSDLConstants.MESSAGE_LABEL_IN_VALUE));
public void sendSequenceAcknowledgementMessage(MessageContext inboundMessageContext) throws AxisFault, RMMessageBuildingException { // there is no point in sending an empty sequece acknowledgment message. if (this.receivedMessageNumbers.size() > 0) { SequenceAcknowledgment sequenceAcknowledgment = new SequenceAcknowledgment(sequenceID); sequenceAcknowledgment.populateAcknowledgmentRanges(this.receivedMessageNumbers); sequenceAcknowledgment.setSoapNamesapce(this.getAxis2Info().getSoapNamespaceURI()); SequenceAcknowledgmentMessage sequenceAcknowledgmentMessage = new SequenceAcknowledgmentMessage(sequenceAcknowledgment); sequenceAcknowledgmentMessage.setSoapNamesapce(this.getAxis2Info().getSoapNamespaceURI()); MessageContext messageContext = getNewMessageContext(sequenceAcknowledgmentMessage, inboundMessageContext); messageContext.getOptions().setProperty(AddressingConstants.WS_ADDRESSING_VERSION, this.axis2Info.getAddressingNamespaceURI()); messageContext.setReplyTo(new EndpointReference(AddressingConstants.Final.WSA_NONE_URI)); messageContext.getOptions().setAction(MercuryConstants.SEQUENCE_ACKNOWLEDGMENT_ACTION); AxisService axisServce = this.axis2Info.getAxisService(); AxisOperation inOnlyOperation = axisServce.getOperationByAction(MercuryConstants.SEQUENCE_ACKNOWLEDGMENT_ACTION); OperationContext operationContext = this.axis2Info.getServiceContext().createOperationContext(inOnlyOperation); inOnlyOperation.registerOperationContext(messageContext, operationContext); messageContext.setAxisMessage(inOnlyOperation.getMessage(WSDLConstants.MESSAGE_LABEL_IN_VALUE)); // we have to use the same message formatter type messageContext.setProperty(Constants.Configuration.MESSAGE_TYPE, this.axis2Info.getProperty(Constants.Configuration.MESSAGE_TYPE)); //sending the message sendMessage(messageContext, false); } }
inOnlyOperation.registerOperationContext(responseMessageContext, operationContext);
axisOperation.registerOperationContext(messageContext, operationContext); axisOperation.registerOperationContext(responseMessageContext, responseOperationContext);
axisOperation.registerOperationContext(outMessageContext, operationContext); AxisEngine.send(outMessageContext);
OperationContext operationContext = messageContext.getServiceContext().createOperationContext(inOutOperation); inOutOperation.registerOperationContext(newMessageContext, operationContext); messageContext.setAxisMessage(inOutOperation.getMessage(WSDLConstants.MESSAGE_LABEL_OUT_VALUE));
this.axis2Info.getServiceContext().createOperationContext(axisOperation); axisOperation.registerOperationContext(messageContext, operationContext); messageContext.setAxisMessage(axisOperation.getMessage(WSDLConstants.MESSAGE_LABEL_OUT_VALUE)); MessageContext responseMessageContext = messageContext.getConfigurationContext().createMessageContext(); responseMessageContext.setServerSide(false); axisOperation.registerOperationContext(responseMessageContext, operationContext); responseMessageContext.setOptions(messageContext.getOptions()); responseMessageContext.getOptions().setAction(MercuryConstants.CREATE_SEQUENCE_RESPONSE_ACTION);