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 da...@apache.org on 2006/07/31 06:21:25 UTC

svn commit: r427012 - /webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c

Author: damitha
Date: Sun Jul 30 21:21:22 2006
New Revision: 427012

URL: http://svn.apache.org/viewvc?rev=427012&view=rev
Log:
Client samples were not working after my tuesday commit.
The reason was in receive_send method of svc_client where
I didn't check for operations NULL value

Modified:
    webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c

Modified: webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c?rev=427012&r1=427011&r2=427012&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c Sun Jul 30 21:21:22 2006
@@ -695,10 +695,16 @@
    svc_client_impl = AXIS2_INTF_TO_IMPL(svc_client);
 
     op = AXIS2_SVC_GET_OP_WITH_QNAME(svc_client_impl->svc, env, op_qname);
-    param = AXIS2_OP_GET_PARAM(op, env, AXIS2_SOAP_ACTION);
-    action_uri = (axis2_uri_t *) AXIS2_PARAM_GET_VALUE(param, env);
-    action_str = AXIS2_URI_TO_STRING(action_uri, env, AXIS2_URI_UNP_OMITUSERINFO);
-    AXIS2_OPTIONS_SET_ACTION(svc_client_impl->options, env, action_str);
+    if(op)
+    {
+        param = AXIS2_OP_GET_PARAM(op, env, AXIS2_SOAP_ACTION);
+        if(param)
+        {
+            action_uri = (axis2_uri_t *) AXIS2_PARAM_GET_VALUE(param, env);
+            action_str = AXIS2_URI_TO_STRING(action_uri, env, AXIS2_URI_UNP_OMITUSERINFO);
+            AXIS2_OPTIONS_SET_ACTION(svc_client_impl->options, env, action_str);
+        }
+    }
    if (!op_qname)
    {
        op_qname = axis2_qname_create(env, AXIS2_ANON_OUT_IN_OP, NULL, NULL);



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