geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r794502 - /geronimo/server/trunk/plugins/cxf/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/client/CXFPortMethodInterceptor.java
Date Thu, 16 Jul 2009 03:17:21 GMT
Author: gawor
Date: Thu Jul 16 03:17:20 2009
New Revision: 794502

URL: http://svn.apache.org/viewvc?rev=794502&view=rev
Log:
check for Dispatch clients when setting wss4j properties (GERONIMO-4642)

Modified:
    geronimo/server/trunk/plugins/cxf/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/client/CXFPortMethodInterceptor.java

Modified: geronimo/server/trunk/plugins/cxf/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/client/CXFPortMethodInterceptor.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/cxf/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/client/CXFPortMethodInterceptor.java?rev=794502&r1=794501&r2=794502&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/cxf/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/client/CXFPortMethodInterceptor.java
(original)
+++ geronimo/server/trunk/plugins/cxf/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/client/CXFPortMethodInterceptor.java
Thu Jul 16 03:17:20 2009
@@ -21,6 +21,7 @@
 import java.util.Map;
 
 import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Dispatch;
 
 import org.apache.cxf.endpoint.Client;
 import org.apache.cxf.endpoint.Endpoint;
@@ -70,6 +71,13 @@
         
         super.setProperties(proxy, info, otherProps);
                 
+        if (proxy instanceof Dispatch) {
+            if (!wss4jInProps.isEmpty() || !wss4jOutProps.isEmpty()) {
+                LOG.warn("wss4j properties are not supported for Dispatch clients");
+            }
+            return;
+        }
+        
         Client client = ClientProxy.getClient(proxy);
         Endpoint cxfEndpoint = client.getEndpoint();
                 



Mime
View raw message