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 su...@apache.org on 2008/06/27 10:36:01 UTC

svn commit: r672189 - /webservices/axis2/trunk/c/src/core/clientapi/svc_client.c

Author: supun
Date: Fri Jun 27 01:36:00 2008
New Revision: 672189

URL: http://svn.apache.org/viewvc?rev=672189&view=rev
Log:
Fixing 1154. Thanks Damitha for reviewing the patch.

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=672189&r1=672188&r2=672189&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/clientapi/svc_client.c (original)
+++ webservices/axis2/trunk/c/src/core/clientapi/svc_client.c Fri Jun 27 01:36:00 2008
@@ -544,6 +544,29 @@
         }
         qname_free_flag = AXIS2_TRUE;
     }
+	else
+	{
+		axis2_op_t *op = NULL;
+		axis2_char_t *mep = NULL;
+		axis2_svc_t *svc = NULL;
+		svc = axis2_svc_client_get_svc(svc_client, env);
+		if (!svc)
+		{
+			return AXIS2_FAILURE;
+		}
+		op = axis2_svc_get_op_with_qname(svc, env, op_qname);
+		if (!op)
+		{
+			return AXIS2_FAILURE;
+		}
+		mep = (axis2_char_t *)axis2_op_get_msg_exchange_pattern(op, env);
+		if (!mep || axutil_strcmp(AXIS2_MEP_URI_OUT_ONLY, mep) != 0)
+		{
+			AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "%s%s", "To use this method opeation uri should be",
+				AXIS2_MEP_URI_OUT_ONLY);
+			return AXIS2_FAILURE;
+		}
+	}
 
     svc_client->auth_failed = AXIS2_FALSE;
     svc_client->required_auth_is_http = AXIS2_FALSE;