axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manj...@apache.org
Subject svn commit: r718493 - /webservices/axis2/trunk/c/samples/server/echo/echo_skeleton.c
Date Tue, 18 Nov 2008 06:28:21 GMT
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);
 }



Mime
View raw message