cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsosno...@apache.org
Subject svn commit: r1159020 - /cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/Proxy.java
Date Thu, 18 Aug 2011 04:11:46 GMT
Author: dsosnoski
Date: Thu Aug 18 04:11:46 2011
New Revision: 1159020

URL: http://svn.apache.org/viewvc?rev=1159020&view=rev
Log:
Set contextual properties for protocol variation to be used for communicating with serverside
RM endpoint.

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

Modified: cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/Proxy.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/Proxy.java?rev=1159020&r1=1159019&r2=1159020&view=diff
==============================================================================
--- cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/Proxy.java (original)
+++ cxf/trunk/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/Proxy.java Thu Aug 18 04:11:46 2011
@@ -309,7 +309,12 @@ public class Proxy {
                 return conduit;
             }
         };  
-        return new RMClient(bus, endpoint, cs);
+        RMClient client = new RMClient(bus, endpoint, cs);
+        Map<String, Object> context = client.getRequestContext();
+        ProtocolVariation protocol = reliableEndpoint.getProtocol();
+        context.put(RMManager.WSRM_VERSION_PROPERTY, protocol.getWSRMNamespace());
+        context.put(RMManager.WSRM_WSA_VERSION_PROPERTY, protocol.getWSANamespace());
+        return client;
     }
     
     class RMClient extends ClientImpl {



Mime
View raw message