axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From su...@apache.org
Subject svn commit: r672189 - /webservices/axis2/trunk/c/src/core/clientapi/svc_client.c
Date Fri, 27 Jun 2008 08:36:01 GMT
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;



Mime
View raw message