You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by da...@apache.org on 2009/10/30 14:53:52 UTC
svn commit: r831299 -
/webservices/axis2/trunk/c/src/core/clientapi/svc_client.c
Author: damitha
Date: Fri Oct 30 13:53:51 2009
New Revision: 831299
URL: http://svn.apache.org/viewvc?rev=831299&view=rev
Log:
Adding close function. This is currently used by Sandesha2/C clients. However this does not include Sandesha2/C specific includes
Modified:
webservices/axis2/trunk/c/src/core/clientapi/svc_client.c
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=831299&r1=831298&r2=831299&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/clientapi/svc_client.c (original)
+++ webservices/axis2/trunk/c/src/core/clientapi/svc_client.c Fri Oct 30 13:53:51 2009
@@ -1599,10 +1599,25 @@
{
axis2_status_t status = AXIS2_FAILURE;
axutil_property_t *property = NULL;
+ axis2_endpoint_ref_t *replyto = 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);
+ replyto = axis2_options_get_reply_to(svc_client->options, env);
+ if(replyto)
+ {
+ axiom_node_t *reply = NULL;
+
+ reply = axis2_svc_client_send_receive(svc_client, env, NULL);
+ if(reply)
+ {
+ status = AXIS2_SUCCESS;
+ }
+ }
+ else
+ {
+ status = axis2_svc_client_send_robust(svc_client, env, NULL);
+ }
return status;
}