*/
public RMHeaders fromSOAPEnvelope(SOAPEnvelope env) throws Exception, AxisFault {
if (env != null) {
Iterator iterator = env.getHeaders().iterator();
SOAPHeaderElement headerElement;
while (iterator.hasNext()) {
headerElement = (SOAPHeaderElement) iterator.next();
if (headerElement.getName().equals(Constants.WSRM.SEQUENCE)) {
sequence = new Sequence();
headerElement.setProcessed(true);
headerElement.setMustUnderstand(false);
sequence.fromSOAPEnveploe(headerElement);
}
if (headerElement.getName().equals(Constants.WSRM.SEQUENCE_ACK)) {
sequenceAcknowledgement = new SequenceAcknowledgement();
headerElement.setProcessed(true);
headerElement.setMustUnderstand(false);
sequenceAcknowledgement.fromSOAPEnveploe(headerElement);
}
if (headerElement.getName().equals(Constants.WSRM.ACK_REQUESTED)) {
ackRequest = new AckRequested();
headerElement.setProcessed(true);
headerElement.setMustUnderstand(false);
ackRequest.fromSOAPEnveploe(headerElement);
}
}
iterator = (Iterator) env.getBody().getChildElements();