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 ma...@apache.org on 2008/11/18 07:28:21 UTC

svn commit: r718493 - /webservices/axis2/trunk/c/samples/server/echo/echo_skeleton.c

Author: manjula
Date: Mon Nov 17 22:28:21 2008
New Revision: 718493

URL: http://svn.apache.org/viewvc?rev=718493&view=rev
Log:
Applying the patch for AXIS2C-1291

Modified:
    webservices/axis2/trunk/c/samples/server/echo/echo_skeleton.c

Modified: webservices/axis2/trunk/c/samples/server/echo/echo_skeleton.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/echo/echo_skeleton.c?rev=718493&r1=718492&r2=718493&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/server/echo/echo_skeleton.c (original)
+++ webservices/axis2/trunk/c/samples/server/echo/echo_skeleton.c Mon Nov 17 22:28:21 2008
@@ -16,6 +16,7 @@
  * limitations under the License.
  */
 #include <axis2_svc_skeleton.h>
+#include <axis2_svc_client.h>
 #include "echo.h"
 #include <axutil_array_list.h>
 #include <axis2_msg_ctx.h>
@@ -92,6 +93,19 @@
      * To see how to deal with multiple impl methods, have a look at the
      * math sample.
      */
+	axis2_endpoint_ref_t* to_epr = NULL;
+	to_epr = axis2_msg_ctx_get_to(msg_ctx, env);
+	
+	if (to_epr)
+	{
+		axis2_char_t* to_address = NULL;
+		to_address = axis2_endpoint_ref_get_address(to_epr, env);
+	
+		if (to_address && strstr(to_address, AXIS2_ANON_SERVICE))
+		{
+			axis2_msg_ctx_set_wsa_action(msg_ctx, env, AXIS2_ANON_OUT_IN_OP);
+		}
+	}
 
     return axis2_echo_echo(env, node);
 }