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 19:00:25 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes fd62d2c74 -> 2941436a0


[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/2941436a
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/2941436a
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/2941436a

Branch: refs/heads/2.7.x-fixes
Commit: 2941436a034df635f10b70eea9f87ca12b89b26f
Parents: fd62d2c
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:59:08 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/2941436a/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 c115d32..3069623 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
@@ -292,10 +292,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