cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject cxf git commit: CXF-6732 Allow SOAPAction to be overwritten via RequestContext property
Date Thu, 07 Jan 2016 06:47:31 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes 39e65abf8 -> 880f8263c


CXF-6732 Allow SOAPAction to be overwritten via RequestContext property

(cherry picked from commit b874e11bf2a73eb39346a22d45b8b9ca38cbf208)
(cherry picked from commit 58830d85e683805c21ecb8d7ac5cc6b8a818718d)
(cherry picked from commit 1ad442008361fe62da8504ea13f0ab8b60d262ee)


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

Branch: refs/heads/2.7.x-fixes
Commit: 880f8263c732f57503121325096394103799f217
Parents: 39e65ab
Author: Tomohisa Igarashi <tm.igarashi@gmail.com>
Authored: Wed Jan 6 16:19:41 2016 +0900
Committer: Freeman Fang <freeman.fang@gmail.com>
Committed: Thu Jan 7 14:42:53 2016 +0800

----------------------------------------------------------------------
 .../binding/soap/interceptor/SoapPreProtocolOutInterceptor.java  | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/880f8263/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapPreProtocolOutInterceptor.java
----------------------------------------------------------------------
diff --git a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapPreProtocolOutInterceptor.java
b/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapPreProtocolOutInterceptor.java
index eba5bfe..62946ca 100644
--- a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapPreProtocolOutInterceptor.java
+++ b/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapPreProtocolOutInterceptor.java
@@ -118,9 +118,7 @@ public class SoapPreProtocolOutInterceptor extends AbstractSoapInterceptor
{
                 message.put(Message.PROTOCOL_HEADERS, reqHeaders);
             }
             
-            if (!reqHeaders.containsKey(SoapBindingConstants.SOAP_ACTION)) {            
-                reqHeaders.put(SoapBindingConstants.SOAP_ACTION, Collections.singletonList(action));
-            }
+            reqHeaders.put(SoapBindingConstants.SOAP_ACTION, Collections.singletonList(action));
         } else if (message.getVersion() instanceof Soap12 && !"\"\"".equals(action))
{
             String ct = (String) message.get(Message.CONTENT_TYPE);
             


Mime
View raw message