You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by bi...@apache.org on 2020/04/15 16:08:24 UTC
[axis-axis2-java-rampart] 06/10: Merge r1052172 from the trunk.
This is an automated email from the ASF dual-hosted git repository.
billblough pushed a commit to branch RAMPART-289
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-rampart.git
commit 82fe90d5e5c7c176a0c2be2786630842d7fce9d8
Author: Andreas Veithen <ve...@apache.org>
AuthorDate: Mon Jan 30 17:21:48 2017 +0000
Merge r1052172 from the trunk.
---
.../rampart-core/src/main/java/org/apache/rampart/util/Axis2Util.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/rampart-core/src/main/java/org/apache/rampart/util/Axis2Util.java b/modules/rampart-core/src/main/java/org/apache/rampart/util/Axis2Util.java
index 8d686d4..0db238a 100644
--- a/modules/rampart-core/src/main/java/org/apache/rampart/util/Axis2Util.java
+++ b/modules/rampart-core/src/main/java/org/apache/rampart/util/Axis2Util.java
@@ -205,7 +205,9 @@ public class Axis2Util {
OMNamespace ns = (OMNamespace) nsIter.next();
header.declareNamespace(ns);
}
- Iterator children = element.getChildElements();
+ // retrieve all child nodes (including any text nodes)
+ // and re-attach to header block
+ Iterator children = element.getChildren();
while (children.hasNext()) {
OMNode child = (OMNode)children.next();
child.detach();