You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ga...@apache.org on 2009/07/16 05:17:21 UTC
svn commit: r794502 -
/geronimo/server/trunk/plugins/cxf/geronimo-cxf/src/main/java/org/apache/geronimo/cxf/client/CXFPortMethodInterceptor.java
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();