cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1342038 - /cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/RMManager.java
Date Wed, 23 May 2012 20:37:36 GMT
Author: dkulp
Date: Wed May 23 20:37:36 2012
New Revision: 1342038

URL: http://svn.apache.org/viewvc?rev=1342038&view=rev
Log:
Use the direction of the original message to find the maps to avoid
WARNING log messages in the logs

Modified:
    cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/RMManager.java

Modified: cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/RMManager.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/RMManager.java?rev=1342038&r1=1342037&r2=1342038&view=diff
==============================================================================
--- cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/RMManager.java (original)
+++ cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/RMManager.java Wed May 23 20:37:36
2012
@@ -48,6 +48,7 @@ import org.apache.cxf.message.Exchange;
 import org.apache.cxf.message.ExchangeImpl;
 import org.apache.cxf.message.Message;
 import org.apache.cxf.message.MessageImpl;
+import org.apache.cxf.message.MessageUtils;
 import org.apache.cxf.service.Service;
 import org.apache.cxf.service.model.BindingInfo;
 import org.apache.cxf.service.model.InterfaceInfo;
@@ -348,7 +349,8 @@ public class RMManager {
     public String getAddressingNamespace(Message message) {
         String addrUri = (String)message.getContextualProperty(WSRM_WSA_VERSION_PROPERTY);
         if (addrUri == null) {
-            AddressingProperties maps = RMContextUtils.retrieveMAPs(message, false, false);
+            boolean out = MessageUtils.isOutbound(message);
+            AddressingProperties maps = RMContextUtils.retrieveMAPs(message, false, out);
             if (maps != null) {
                 addrUri = maps.getNamespaceURI();
             }



Mime
View raw message