You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2007/09/10 04:44:32 UTC

svn commit: r574119 - in /webservices/axis2/trunk/c/src/core/clientapi: op_client.c svc_client.c

Author: samisa
Date: Sun Sep  9 19:44:31 2007
New Revision: 574119

URL: http://svn.apache.org/viewvc?rev=574119&view=rev
Log:
Fixed the send robust bug - AXIS2C-680

Modified:
    webservices/axis2/trunk/c/src/core/clientapi/op_client.c
    webservices/axis2/trunk/c/src/core/clientapi/svc_client.c

Modified: webservices/axis2/trunk/c/src/core/clientapi/op_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/clientapi/op_client.c?rev=574119&r1=574118&r2=574119&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/clientapi/op_client.c (original)
+++ webservices/axis2/trunk/c/src/core/clientapi/op_client.c Sun Sep  9 19:44:31 2007
@@ -638,9 +638,13 @@
     axis2_op_client_add_msg_ctx(args_list->op_client, th_env, response);
     args_list->op_client->async_result = axis2_async_result_create(th_env, 
         response);
-    axis2_callback_invoke_on_complete(args_list->callback, 
-        th_env, args_list->op_client->async_result);
-    axis2_callback_set_complete(args_list->callback, th_env, AXIS2_TRUE);
+    
+    if (args_list->callback)
+    {
+        axis2_callback_invoke_on_complete(args_list->callback, 
+            th_env, args_list->op_client->async_result);
+        axis2_callback_set_complete(args_list->callback, th_env, AXIS2_TRUE);
+    }
 
     /* clean up memory */
     axis2_async_result_free(args_list->op_client->async_result, th_env);

Modified: webservices/axis2/trunk/c/src/core/clientapi/svc_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/clientapi/svc_client.c?rev=574119&r1=574118&r2=574119&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/clientapi/svc_client.c (original)
+++ webservices/axis2/trunk/c/src/core/clientapi/svc_client.c Sun Sep  9 19:44:31 2007
@@ -546,7 +546,6 @@
     const axutil_qname_t *op_qname,
     const axiom_node_t *payload)
 {
-    axis2_op_client_t *op_client = NULL;
     axis2_msg_ctx_t *msg_ctx = NULL;
     axis2_bool_t qname_free_flag = AXIS2_FALSE;
 
@@ -574,7 +573,7 @@
     }
 
     axis2_op_client_add_out_msg_ctx(svc_client->op_client, env, msg_ctx);
-    axis2_op_client_execute(op_client, env, AXIS2_FALSE);
+    axis2_op_client_execute(svc_client->op_client, env, AXIS2_FALSE);
     
     if (qname_free_flag)
     {



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