private void parseHeaders(SoapMessage message, XMLStreamReader reader)
throws Exception {
while (reader.nextTag() != XMLStreamConstants.END_ELEMENT) {
QName hn = reader.getName();
FragmentStreamReader rh = new FragmentStreamReader(reader);
Document doc = (Document) marshaler.getSourceTransformer().toDOMNode(
new StaxSource(rh));
DocumentFragment df = doc.createDocumentFragment();
df.appendChild(doc.getDocumentElement());
message.addHeader(hn, df);