axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r410069 - /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/rpc/client/RPCServiceClient.java
Date Mon, 29 May 2006 10:27:13 GMT
Author: deepal
Date: Mon May 29 03:27:10 2006
New Revision: 410069

URL: http://svn.apache.org/viewvc?rev=410069&view=rev
Log:
-fixing few problems in RPCServiceClient

Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/rpc/client/RPCServiceClient.java

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/rpc/client/RPCServiceClient.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/rpc/client/RPCServiceClient.java?rev=410069&r1=410068&r2=410069&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/rpc/client/RPCServiceClient.java
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/rpc/client/RPCServiceClient.java
Mon May 29 03:27:10 2006
@@ -30,8 +30,13 @@
 
 public class RPCServiceClient extends ServiceClient {
 
+    private boolean notNullService;
+
     public RPCServiceClient(ConfigurationContext configContext, AxisService service) throws
AxisFault {
         super(configContext, service);
+        if (service != null) {
+            notNullService = true;
+        }
     }
 
     public RPCServiceClient() throws AxisFault {
@@ -42,6 +47,7 @@
                             URL wsdlURL, QName wsdlServiceName,
                             String portName) throws AxisFault {
         super(configContext, wsdlURL, wsdlServiceName, portName);
+        notNullService = true;
     }
 
     /**
@@ -57,6 +63,9 @@
      */
     public OMElement invokeBlocking(QName opName, Object [] args) throws AxisFault {
         OMElement omElement = BeanUtil.getOMElement(opName, args, null);
+        if (notNullService) {
+            return super.sendReceive(opName, omElement);
+        }
         return super.sendReceive(omElement);
     }
 
@@ -78,7 +87,12 @@
 
     public Object[]  invokeBlocking(QName opName, Object [] args, Object [] returnTypes)
throws AxisFault {
         OMElement omElement = BeanUtil.getOMElement(opName, args, null);
-        OMElement response = super.sendReceive(omElement);
+        OMElement response;
+        if (notNullService) {
+            response = super.sendReceive(opName, omElement);
+        } else {
+            response = super.sendReceive(omElement);
+        }
         return BeanUtil.deserialize(response, returnTypes);
     }
 
@@ -98,7 +112,11 @@
             throws AxisFault {
         OMElement omElement = BeanUtil.getOMElement(opName, args, null);
         //call the underline implementation
-        super.sendReceiveNonBlocking(omElement, callback);
+        if (notNullService) {
+            super.sendReceiveNonBlocking(opName, omElement, callback);
+        } else {
+            super.sendReceiveNonBlocking(omElement, callback);
+        }
     }
 
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message