You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2014/06/17 18:04:27 UTC
git commit: [CXF-5753,
CXF-5811] More attempts to get the child namespaces "correct" with
various SAAJ versions
Repository: cxf
Updated Branches:
refs/heads/master 60be93b7b -> 71320263c
[CXF-5753, CXF-5811] More attempts to get the child namespaces "correct" with various SAAJ versions
Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/71320263
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/71320263
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/71320263
Branch: refs/heads/master
Commit: 71320263c5788ccc35aeb2753aa495593028a7fb
Parents: 60be93b
Author: Daniel Kulp <dk...@apache.org>
Authored: Tue Jun 17 12:03:36 2014 -0400
Committer: Daniel Kulp <dk...@apache.org>
Committed: Tue Jun 17 12:04:24 2014 -0400
----------------------------------------------------------------------
.../java/org/apache/cxf/binding/soap/saaj/SAAJStreamWriter.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cxf/blob/71320263/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/SAAJStreamWriter.java
----------------------------------------------------------------------
diff --git a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/SAAJStreamWriter.java b/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/SAAJStreamWriter.java
index 4a30ed3..f96a14d 100644
--- a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/SAAJStreamWriter.java
+++ b/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/SAAJStreamWriter.java
@@ -156,9 +156,9 @@ public final class SAAJStreamWriter extends OverlayW3CDOMStreamWriter {
try {
Element el = null;
if (StringUtils.isEmpty(pfx) && StringUtils.isEmpty(ns)) {
- el = ((SOAPElement)cur).addChildElement(new QName(local));
+ el = ((SOAPElement)cur).addChildElement(local, "", "");
} else {
- el = ((SOAPElement)cur).addChildElement(new QName(ns, local, pfx == null ? "" : pfx));
+ el = ((SOAPElement)cur).addChildElement(local, pfx == null ? "" : pfx, ns);
}
cur.removeChild(el);
return el;