svn commit: r721346 - in /webservices/sandesha/trunk/c/samples: RM10SampleService/rm_sample_svc_skel.c RM11SampleService/rm_sample_svc_skel.c rm_ping_1_0/rm_ping_1_0.c

[email protected]
Newsgroups gmane.comp.apache.webservices.fx.devel
Message-ID <[email protected]>
Author: damitha
Date: Thu Nov 27 21:39:12 2008
New Revision: 721346

URL: http://svn.apache.org/viewvc?rev=721346&view=rev
Log:
Applied patches SANDESHA2C-69 and SANDESHA2C-70.
By this commit all samples work with apache2. Even large sequence samples work. But in rm_echo_1_0_large_sequence I don't get the terminate message from server.

Modified:
    webservices/sandesha/trunk/c/samples/RM10SampleService/rm_sample_svc_skel.c
    webservices/sandesha/trunk/c/samples/RM11SampleService/rm_sample_svc_skel.c
    webservices/sandesha/trunk/c/samples/rm_ping_1_0/rm_ping_1_0.c

Modified: webservices/sandesha/trunk/c/samples/RM10SampleService/rm_sample_svc_skel.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/RM10SampleService/rm_sample_svc_skel.c?rev=721346&r1=721345&r2=721346&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/samples/RM10SampleService/rm_sample_svc_skel.c (original)
+++ webservices/sandesha/trunk/c/samples/RM10SampleService/rm_sample_svc_skel.c Thu Nov 27 21:39:12 2008
@@ -108,7 +108,21 @@
 
         if(op_name)
         {
-            if (!axutil_strcmp(op_name, "echoString"))
+			axis2_endpoint_ref_t* to_epr = NULL;
+            to_epr = axis2_msg_ctx_get_to(msg_ctx, env);
+
+            if (to_epr)
+            {
+                const 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);
+                }
+            }
+
+			if (!axutil_strcmp(op_name, "echoString"))
             {
                 return rm_sample_svc_echo(env, node);
             }

Modified: webservices/sandesha/trunk/c/samples/RM11SampleService/rm_sample_svc_skel.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/RM11SampleService/rm_sample_svc_skel.c?rev=721346&r1=721345&r2=721346&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/samples/RM11SampleService/rm_sample_svc_skel.c (original)
+++ webservices/sandesha/trunk/c/samples/RM11SampleService/rm_sample_svc_skel.c Thu Nov 27 21:39:12 2008
@@ -108,6 +108,20 @@
 
         if(op_name)
         {
+			axis2_endpoint_ref_t* to_epr = NULL;
+            to_epr = axis2_msg_ctx_get_to(msg_ctx, env);
+
+            if (to_epr)
+            {
+                const 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);
+                }
+            }
+
             if (!axutil_strcmp(op_name, "echoString"))
             {
                 return rm_sample_svc_echo(env, node);

Modified: webservices/sandesha/trunk/c/samples/rm_ping_1_0/rm_ping_1_0.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_ping_1_0/rm_ping_1_0.c?rev=721346&r1=721345&r2=721346&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_ping_1_0/rm_ping_1_0.c (original)
+++ webservices/sandesha/trunk/c/samples/rm_ping_1_0/rm_ping_1_0.c Thu Nov 27 21:39:12 2008
@@ -90,7 +90,7 @@
         axis2_options_set_to(options, env, endpoint_ref);
     }
 
-    /*axis2_options_set_action(options, env, "urn:wsrm:Ping");*/
+    axis2_options_set_action(options, env, "urn:wsrm:Ping");
 
     /* Set up deploy folder. It is from the deploy folder, the configuration is 
      * picked up using the axis2.xml file.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.