SOAPHeaderElement headerElement =
(SOAPHeaderElement)headerElements.next();
Name headerName = headerElement.getElementName();
if (WSRM_NAMESPACE_URI.equals(headerName.getURI())
|| WSRM_NAMESPACE_URI.equals(headerName.getURI())) {
headerElement.detachNode();
}
}
} catch (SOAPException e) {
System.out.println("*** discard WS headers failed: " + e);
}