axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r821688 - in /webservices/axis2/trunk/c: include/axis2_svc_client.h src/core/clientapi/svc_client.c
Date Mon, 05 Oct 2009 05:28:08 GMT
Author: damitha
Date: Mon Oct  5 05:28:07 2009
New Revision: 821688

URL: http://svn.apache.org/viewvc?rev=821688&view=rev
Log:
Adding service client close functionality

Modified:
    webservices/axis2/trunk/c/include/axis2_svc_client.h
    webservices/axis2/trunk/c/src/core/clientapi/svc_client.c

Modified: webservices/axis2/trunk/c/include/axis2_svc_client.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_svc_client.h?rev=821688&r1=821687&r2=821688&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_svc_client.h (original)
+++ webservices/axis2/trunk/c/include/axis2_svc_client.h Mon Oct  5 05:28:07 2009
@@ -623,6 +623,17 @@
         axis2_svc_client_t * svc_client,
         const axutil_env_t * env);
 
+    /**
+     * Close the service client. 
+     * @param svc_client pointer to service_client struct
+     * @param env pointer to environment struct
+     * @return AXIS2_FAILURE if there was a fault, else AXIS2_SUCCESS
+     */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axis2_svc_client_close(
+        axis2_svc_client_t * svc_client,
+        const axutil_env_t * env);
+
     /** @} */
 #ifdef __cplusplus
 }

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=821688&r1=821687&r2=821688&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/clientapi/svc_client.c (original)
+++ webservices/axis2/trunk/c/src/core/clientapi/svc_client.c Mon Oct  5 05:28:07 2009
@@ -1592,3 +1592,18 @@
     }
 }
 
+AXIS2_EXTERN axis2_status_t AXIS2_CALL
+axis2_svc_client_close(
+    axis2_svc_client_t * svc_client,
+    const axutil_env_t * env)
+{
+    axis2_status_t status = AXIS2_FAILURE;
+    axutil_property_t *property = NULL;
+
+    property = axutil_property_create_with_args(env, 0, 0, 0, AXIS2_VALUE_TRUE);
+    axis2_options_set_property(svc_client->options, env, AXIS2_SVC_CLIENT_CLOSED, property);
+    status = axis2_svc_client_send_robust(svc_client, env, NULL);
+
+    return status;
+}
+



Mime
View raw message