cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [2/2] git commit: [CXF-5753] Update to use the addChildElement calls that use qnames that don't "inherit" default namespaces and such.
Date Mon, 16 Jun 2014 18:39:03 GMT
[CXF-5753] Update to use the addChildElement calls that use qnames that don't "inherit" default
namespaces and such.


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/b6436430
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/b6436430
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/b6436430

Branch: refs/heads/2.7.x-fixes
Commit: b6436430930ef11460538270836fe6cd5aa1fabb
Parents: 7360285
Author: Daniel Kulp <dkulp@apache.org>
Authored: Mon Jun 16 14:36:25 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Mon Jun 16 14:38:43 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/b6436430/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 d4d6ef9..4a30ed3 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(local);
+                    el = ((SOAPElement)cur).addChildElement(new QName(local));
                 } else {
-                    el = ((SOAPElement)cur).addChildElement(local, pfx, ns);
+                    el = ((SOAPElement)cur).addChildElement(new QName(ns, local, pfx == null
? "" : pfx));
                 }
                 cur.removeChild(el);
                 return el;


Mime
View raw message