cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessio Soldano <asold...@redhat.com>
Subject Propagating client endpoint properties in the Message
Date Mon, 24 Mar 2014 12:08:39 GMT
Hi,
I'm wondering if there's a specific reason for not copying the 
properties set in the Endpoint reference in the Client to the Message 
being constructed in ClientImpl::doInvoke. Something like:

---------------------------------------------------------
diff --git a/api/src/main/java/org/apache/cxf/endpoint/ClientImpl.java b/api/src/main/java/org/apache/cxf/endpoint/ClientImpl.java
index 77522fb..2a100a9 100644
--- a/api/src/main/java/org/apache/cxf/endpoint/ClientImpl.java
+++ b/api/src/main/java/org/apache/cxf/endpoint/ClientImpl.java
@@ -495,6 +495,7 @@ public class ClientImpl
                  LOG.fine("Invoke, operation info: " + oi + ", params: " + Arrays.toString(params));
              }
              Message message = endpoint.getBinding().createMessage();
+            message.putAll(endpoint);
              
              // Make sure INVOCATION CONTEXT, REQUEST_CONTEXT and RESPONSE_CONTEXT are present
              // on message
---------------------------------------------------------

WDYT?

Thanks
Alessio

-- 
Alessio Soldano
Web Service Lead, JBoss


Mime
View raw message