cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r606677 - /incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java
Date Mon, 24 Dec 2007 07:15:35 GMT
Author: mmao
Date: Sun Dec 23 23:15:34 2007
New Revision: 606677

URL: http://svn.apache.org/viewvc?rev=606677&view=rev
Log:
cXF-1323
 * In case of BindingProvider, BindingProviderImpl, the proxy should add the arguments as
well


Modified:
    incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java

Modified: incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java?rev=606677&r1=606676&r2=606677&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java
(original)
+++ incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java
Sun Dec 23 23:15:34 2007
@@ -92,6 +92,11 @@
         MethodDispatcher dispatcher = (MethodDispatcher)endpoint.getService().get(
                                                                                   MethodDispatcher.class
                                                                                       .getName());
+        Object[] params = args;
+        if (null == params) {
+            params = new Object[0];
+        }        
+        
         BindingOperationInfo oi = dispatcher.getBindingOperation(method, endpoint);
         if (oi == null) {
             // check for method on BindingProvider and Object
@@ -99,7 +104,7 @@
                 || method.getDeclaringClass().equals(BindingProviderImpl.class)
                 || method.getDeclaringClass().equals(Object.class)) {
                 try {
-                    return method.invoke(this);
+                    return method.invoke(this, params);
                 } catch (InvocationTargetException e) {
                     throw e.fillInStackTrace().getCause();
                 }
@@ -107,11 +112,6 @@
 
             Message msg = new Message("NO_OPERATION_INFO", LOG, method.getName());
             throw new WebServiceException(msg.toString());
-        }
-
-        Object[] params = args;
-        if (null == params) {
-            params = new Object[0];
         }
 
         Map<String, Object> reqContext = this.getRequestContextCopy();        



Mime
View raw message