String messageID = messageInformationHeaders.getMessageId();
if (messageID != null) {//optional
processStringInfo(messageID, WSA_MESSAGE_ID, soapHeader);
}
RelatesTo relatesTo = messageInformationHeaders.getRelatesTo();
OMElement relatesToHeader = null;
if (relatesTo != null) {
relatesToHeader = processStringInfo(relatesTo.getValue(), WSA_RELATES_TO, soapHeader);
}
if (relatesToHeader != null)
if ("".equals(relatesTo.getRelationshipType())) {
relatesToHeader.addAttribute(WSA_RELATES_TO_RELATIONSHIP_TYPE,
Submission.WSA_RELATES_TO_RELATIONSHIP_TYPE_DEFAULT_VALUE,
addressingNamespaceObject);
} else {
relatesToHeader.addAttribute(WSA_RELATES_TO_RELATIONSHIP_TYPE,
relatesTo.getRelationshipType(),
addressingNamespaceObject);
}
}