oldAckElement.detach();
}
}
SOAPHeader SOAPHeader = (SOAPHeader) header;
SOAPHeaderBlock sequenceAcknowledgementHeaderBlock = SOAPHeader.addHeaderBlock(
Sandesha2Constants.WSRM_COMMON.SEQUENCE_ACK,rmNamespace);
if (sequenceAcknowledgementHeaderBlock == null)
throw new OMException("Cant set sequence acknowledgement since the element is null");
if (identifier == null)
throw new OMException(
SandeshaMessageHelper.getMessage(
SandeshaMessageKeys.invalidIdentifier,
header.toString()));
// SequenceACK messages should always have the MustUnderstand flag set to true
sequenceAcknowledgementHeaderBlock.setMustUnderstand(true);
identifier.toOMElement(sequenceAcknowledgementHeaderBlock);
Iterator ackRangeIt = acknowledgementRangeList.iterator();
while (ackRangeIt.hasNext()) {
AcknowledgementRange ackRange = (AcknowledgementRange) ackRangeIt