cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1417515 - /cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/AbstractJAXWSMethodInvoker.java
Date Wed, 05 Dec 2012 16:39:39 GMT
Author: dkulp
Date: Wed Dec  5 16:39:39 2012
New Revision: 1417515

URL: http://svn.apache.org/viewvc?rev=1417515&view=rev
Log:
Just copy the non-inbound headers to the response

Modified:
    cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/AbstractJAXWSMethodInvoker.java

Modified: cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/AbstractJAXWSMethodInvoker.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/AbstractJAXWSMethodInvoker.java?rev=1417515&r1=1417514&r2=1417515&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/AbstractJAXWSMethodInvoker.java
(original)
+++ cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/AbstractJAXWSMethodInvoker.java
Wed Dec  5 16:39:39 2012
@@ -305,12 +305,13 @@ public abstract class AbstractJAXWSMetho
                     Iterator<?> iter = list.iterator();
                     while (iter.hasNext()) {
                         Header header = (Header) iter.next();
-                        if (!header.getName().getNamespaceURI().
-                            equals("http://docs.oasis-open.org/wss/2004/01/" 
-                                   + "oasis-200401-wss-wssecurity-secext-1.0.xsd")
-                                && !header.getName().getNamespaceURI().
-                                equals("http://docs.oasis-open.org/" 
-                                    + "wss/oasis-wss-wssecurity-secext-1.1.xsd")) {
+                        if (header.getDirection() != Header.Direction.DIRECTION_IN
+                            && !header.getName().getNamespaceURI().
+                                equals("http://docs.oasis-open.org/wss/2004/01/" 
+                                        + "oasis-200401-wss-wssecurity-secext-1.0.xsd")
+                                   && !header.getName().getNamespaceURI().
+                                       equals("http://docs.oasis-open.org/" 
+                                              + "wss/oasis-wss-wssecurity-secext-1.1.xsd"))
{
                             //don't copy over security header, out interceptor chain will
take care of it.
                             sm.getHeaders().add(header);
                         }



Mime
View raw message