* @param soapMsg
*/
private void extractAttachmentNodes(OMElement element, SOAPMessage soapMsg){
Iterator childIter = element.getChildren();
while(childIter.hasNext()) {
OMNode child = (OMNode)childIter.next();
if(child instanceof OMText){
OMText binaryNode = (OMText)child;
DataHandler actualDH = (DataHandler)binaryNode.getDataHandler();
if(actualDH != null){
AttachmentPart ap = soapMsg.createAttachmentPart(actualDH);
String contentId = SessionUtils.generateSessionId();
ap.setContentId(contentId);
ap.setContentType(actualDH.getContentType());
OMElement parent = (OMElement)child.getParent();
OMAttribute attr = org.apache.axis2.om.OMAbstractFactory.getOMFactory().createOMAttribute("href", null,"cid:"+contentId);
parent.addAttribute(attr);
binaryNode.detach();
soapMsg.addAttachmentPart(ap);
}