cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject cxf git commit: [CXF-6394] do not exclude SOAP_NAMESPACE and let the consumer decide what to do with it
Date Tue, 12 May 2015 18:57:39 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes f509a800f -> 6c174a500


[CXF-6394] do not exclude SOAP_NAMESPACE and let the consumer decide what to do with it


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

Branch: refs/heads/3.0.x-fixes
Commit: 6c174a5009d07cbb3c99e76d0951994eb2b2eb7a
Parents: f509a80
Author: Akitoshi Yoshida <ay@apache.org>
Authored: Tue May 12 20:56:30 2015 +0200
Committer: Akitoshi Yoshida <ay@apache.org>
Committed: Tue May 12 20:57:07 2015 +0200

----------------------------------------------------------------------
 .../cxf/binding/soap/interceptor/ReadHeadersInterceptor.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/6c174a50/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/ReadHeadersInterceptor.java
----------------------------------------------------------------------
diff --git a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/ReadHeadersInterceptor.java
b/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/ReadHeadersInterceptor.java
index 189e7bc..88709a1 100644
--- a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/ReadHeadersInterceptor.java
+++ b/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/ReadHeadersInterceptor.java
@@ -298,10 +298,10 @@ public class ReadHeadersInterceptor extends AbstractSoapInterceptor
{
     private void addCurrentNamespaceDecls(XMLStreamReader xmlReader, Map<String, String>
bodyNsMap) {
         for (int i = 0; i < xmlReader.getNamespaceCount(); i++) {
             String nsuri = xmlReader.getNamespaceURI(i);
-            if (!Soap11.SOAP_NAMESPACE.equals(nsuri) && !Soap12.SOAP_NAMESPACE.equals(nsuri))
{
-                bodyNsMap.put(xmlReader.getNamespacePrefix(i), nsuri);
-            } else if ("".equals(nsuri)) {
+            if ("".equals(nsuri)) {
                 bodyNsMap.remove("");
+            } else {
+                bodyNsMap.put(xmlReader.getNamespacePrefix(i), nsuri);
             }
         }
     }


Mime
View raw message