if (message.getHeaders() != null && message.getHeaders().size() > 0) {
writer.writeStartElement(soapPrefix, SoapMarshaler.HEADER, soapUri);
for (Iterator it = message.getHeaders().values().iterator(); it.hasNext();) {
DocumentFragment df = (DocumentFragment) it.next();
Element e = (Element) df.getFirstChild();
XMLStreamHelper.copy(new W3CDOMStreamReader(e), writer);
}
writer.writeEndElement();
}
// Write Body
writer.writeStartElement(soapPrefix, SoapMarshaler.BODY, soapUri);