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:40:32 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes c2e2c830d -> 1ad442008


CXF-6732 Allow SOAPAction to be overwritten via RequestContext property

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


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

Branch: refs/heads/3.0.x-fixes
Commit: 1ad442008361fe62da8504ea13f0ab8b60d262ee
Parents: c2e2c83
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:34:51 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/1ad44200/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