You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sandesha-dev@ws.apache.org by da...@apache.org on 2007/04/29 10:37:03 UTC

svn commit: r533487 - in /webservices/sandesha/trunk/c: ./ samples/ samples/RMSampleService/ samples/rm_echo_1_0/ samples/rm_echo_1_1/ samples/rm_echo_single_1_0/ samples/rm_echo_single_1_1/ samples/rm_mtom_1_0/ samples/rm_report/

Author: damitha
Date: Sun Apr 29 01:37:02 2007
New Revision: 533487

URL: http://svn.apache.org/viewvc?view=rev&rev=533487
Log:
removed warnings from the samples and enforced -Werror on configure.ac

Modified:
    webservices/sandesha/trunk/c/configure.ac
    webservices/sandesha/trunk/c/samples/RMSampleService/rm_sample_svc.c
    webservices/sandesha/trunk/c/samples/RMSampleService/rm_sample_svc_skel.c
    webservices/sandesha/trunk/c/samples/configure.ac
    webservices/sandesha/trunk/c/samples/rm_echo_1_0/rm_echo.c
    webservices/sandesha/trunk/c/samples/rm_echo_1_1/rm_echo_1_1.c
    webservices/sandesha/trunk/c/samples/rm_echo_single_1_0/rm_echo_single.c
    webservices/sandesha/trunk/c/samples/rm_echo_single_1_1/rm_echo_single_1_1.c
    webservices/sandesha/trunk/c/samples/rm_mtom_1_0/rm_mtom_1_0.c
    webservices/sandesha/trunk/c/samples/rm_report/report.c

Modified: webservices/sandesha/trunk/c/configure.ac
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/configure.ac?view=diff&rev=533487&r1=533486&r2=533487
==============================================================================
--- webservices/sandesha/trunk/c/configure.ac (original)
+++ webservices/sandesha/trunk/c/configure.ac Sun Apr 29 01:37:02 2007
@@ -22,7 +22,7 @@
 
 CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"
 if test "$GCC" = "yes"; then
-    CFLAGS="$CFLAGS -ansi -Wall -Wno-implicit-function-declaration"
+    CFLAGS="$CFLAGS -ansi -Wall -Werror -Wno-implicit-function-declaration -g"
 fi
 LDFLAGS="-lpthread"
 

Modified: webservices/sandesha/trunk/c/samples/RMSampleService/rm_sample_svc.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/RMSampleService/rm_sample_svc.c?view=diff&rev=533487&r1=533486&r2=533487
==============================================================================
--- webservices/sandesha/trunk/c/samples/RMSampleService/rm_sample_svc.c (original)
+++ webservices/sandesha/trunk/c/samples/RMSampleService/rm_sample_svc.c Sun Apr 29 01:37:02 2007
@@ -23,13 +23,13 @@
 axiom_node_t *
 build_echo_om(
     const axutil_env_t *env, 
-    axis2_char_t *text);
+    const axis2_char_t *text);
 
 /* Builds the response content */
 axiom_node_t *
 build_mtom_om(
     const axutil_env_t *env, 
-    axis2_char_t *text);
+    const axis2_char_t *text);
 
 axiom_node_t *
 rm_sample_svc_echo (
@@ -93,7 +93,7 @@
         axiom_text_t *text = (axiom_text_t *)axiom_node_get_data_element(text_node, env);
         if( text && axiom_text_get_value(text , env))
         {
-            axis2_char_t *text_str = axiom_text_get_value(text, env);
+            const axis2_char_t *text_str = axiom_text_get_value(text, env);
             ret_node = build_echo_om(env, text_str);
         }
     }
@@ -110,7 +110,7 @@
 axiom_node_t *
 build_echo_om(
     const axutil_env_t *env, 
-    axis2_char_t *text)
+    const axis2_char_t *text)
 {
     axiom_node_t *echo_om_node = NULL;
     axiom_element_t* echo_om_ele = NULL;
@@ -252,7 +252,7 @@
         if (text && axiom_text_get_value(text , env))
         {
             axiom_node_t *image_node = NULL;
-            axis2_char_t *text_str = axiom_text_get_value(text, env);
+            const axis2_char_t *text_str = axiom_text_get_value(text, env);
 
             image_node = axiom_node_get_next_sibling(file_name_node, env);
             if (image_node)
@@ -271,7 +271,8 @@
                         data_handler = axiom_text_get_data_handler(bin_text, env);
                         if (data_handler)
                         {
-                            axiom_data_handler_set_file_name(data_handler, env, text_str);
+                            axiom_data_handler_set_file_name(data_handler, env, 
+                                (axis2_char_t *) text_str);
                             axiom_data_handler_write_to(data_handler, env);
                             ret_node = build_mtom_om(env, text_str);
                         }
@@ -292,7 +293,9 @@
 
 /* Builds the response content */
 axiom_node_t *
-build_mtom_om(const axutil_env_t *env, axis2_char_t *text)
+build_mtom_om(
+    const axutil_env_t *env, 
+    const axis2_char_t *text)
 {
     axiom_node_t *mtom_om_node = NULL;
     axiom_element_t* mtom_om_ele = NULL;

Modified: webservices/sandesha/trunk/c/samples/RMSampleService/rm_sample_svc_skel.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/RMSampleService/rm_sample_svc_skel.c?view=diff&rev=533487&r1=533486&r2=533487
==============================================================================
--- webservices/sandesha/trunk/c/samples/RMSampleService/rm_sample_svc_skel.c (original)
+++ webservices/sandesha/trunk/c/samples/RMSampleService/rm_sample_svc_skel.c Sun Apr 29 01:37:02 2007
@@ -158,13 +158,6 @@
         svc_skeleton->func_array = NULL;
     }
     
-    /* Free the function array */
-    if(svc_skeleton->ops)
-    {
-        AXIS2_FREE(env->allocator, svc_skeleton->ops);
-        svc_skeleton->ops = NULL;
-    }
-    
     /* Free the service skeleton */
     if(svc_skeleton)
     {

Modified: webservices/sandesha/trunk/c/samples/configure.ac
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/configure.ac?view=diff&rev=533487&r1=533486&r2=533487
==============================================================================
--- webservices/sandesha/trunk/c/samples/configure.ac (original)
+++ webservices/sandesha/trunk/c/samples/configure.ac Sun Apr 29 01:37:02 2007
@@ -35,7 +35,9 @@
 AC_FUNC_REALLOC
 
 PKG_CHECK_MODULES(LIBXML2, libxml-2.0)
-CFLAGS="$CFLAGS $LIBXML2_CFLAGS $GUTHTHILA_CFLAGS"
+if test "$GCC" = "yes"; then
+    CFLAGS="$CFLAGS $LIBXML2_CFLAGS $GUTHTHILA_CFLAGS -Werror -g"
+fi
 
 AC_MSG_CHECKING(whether to build dynamic invocation client)
 AC_ARG_ENABLE(diclient, [  --enable-diclient    build diclient. default=no],

Modified: webservices/sandesha/trunk/c/samples/rm_echo_1_0/rm_echo.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_echo_1_0/rm_echo.c?view=diff&rev=533487&r1=533486&r2=533487
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_echo_1_0/rm_echo.c (original)
+++ webservices/sandesha/trunk/c/samples/rm_echo_1_0/rm_echo.c Sun Apr 29 01:37:02 2007
@@ -65,8 +65,8 @@
     const axis2_char_t *client_home = NULL;
     axis2_svc_client_t* svc_client = NULL;
     axiom_node_t *payload = NULL;
-    axis2_callback_t *callback1 = NULL;
-    axis2_callback_t *callback2 = NULL;
+    /*axis2_callback_t *callback1 = NULL;
+    axis2_callback_t *callback2 = NULL;*/
     axis2_callback_t *callback3 = NULL;
     axutil_property_t *property = NULL;
     axis2_listener_manager_t *listener_manager = NULL;

Modified: webservices/sandesha/trunk/c/samples/rm_echo_1_1/rm_echo_1_1.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_echo_1_1/rm_echo_1_1.c?view=diff&rev=533487&r1=533486&r2=533487
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_echo_1_1/rm_echo_1_1.c (original)
+++ webservices/sandesha/trunk/c/samples/rm_echo_1_1/rm_echo_1_1.c Sun Apr 29 01:37:02 2007
@@ -171,8 +171,8 @@
         property = axutil_property_create(env);
         if(property)
         {
-            axutil_property_set_value(property, env, axutil_strdup(offered_seq_id, 
-                env));
+            axutil_property_set_value(property, env, axutil_strdup(env, 
+                offered_seq_id));
             axis2_options_set_property(options, env, 
                 SANDESHA2_CLIENT_OFFERED_SEQ_ID, property);
         }

Modified: webservices/sandesha/trunk/c/samples/rm_echo_single_1_0/rm_echo_single.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_echo_single_1_0/rm_echo_single.c?view=diff&rev=533487&r1=533486&r2=533487
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_echo_single_1_0/rm_echo_single.c (original)
+++ webservices/sandesha/trunk/c/samples/rm_echo_single_1_0/rm_echo_single.c Sun Apr 29 01:37:02 2007
@@ -19,7 +19,6 @@
 #include <axiom_soap.h>
 #include <axis2_client.h>
 #include <axis2_svc_ctx.h>
-#include <axis2_conf_ctx.h>
 #include <axis2_op_client.h>
 #include <axis2_listener_manager.h>
 #include <axis2_callback_recv.h>
@@ -63,17 +62,14 @@
     axis2_options_t *options = NULL;
     const axis2_char_t *client_home = NULL;
     axis2_svc_client_t* svc_client = NULL;
-    axis2_svc_ctx_t *svc_ctx = NULL;
-    axis2_conf_ctx_t *conf_ctx = NULL;
     axiom_node_t *payload = NULL;
     axutil_property_t *property = NULL;
     axis2_listener_manager_t *listener_manager = NULL;
     axis2_char_t *offered_seq_id = NULL;
-    axiom_soap_envelope_t *result = NULL;
+    axiom_node_t *result = NULL;
     axutil_string_t *soap_action = NULL;
     axis2_char_t *seq_key = NULL;
     int c;
-    int i = 0, size = 0;
    
     /* Set up the environment */
     /*env = axutil_env_create_all("rm_echo_single_1_0.log", 

Modified: webservices/sandesha/trunk/c/samples/rm_echo_single_1_1/rm_echo_single_1_1.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_echo_single_1_1/rm_echo_single_1_1.c?view=diff&rev=533487&r1=533486&r2=533487
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_echo_single_1_1/rm_echo_single_1_1.c (original)
+++ webservices/sandesha/trunk/c/samples/rm_echo_single_1_1/rm_echo_single_1_1.c Sun Apr 29 01:37:02 2007
@@ -159,8 +159,8 @@
     property = axutil_property_create(env);
     if(property)
     {
-        axutil_property_set_value(property, env, axutil_strdup(offered_seq_id, 
-            env));
+        axutil_property_set_value(property, env, axutil_strdup(env, 
+            offered_seq_id));
         axis2_options_set_property(options, env, 
             SANDESHA2_CLIENT_OFFERED_SEQ_ID, property);
     }

Modified: webservices/sandesha/trunk/c/samples/rm_mtom_1_0/rm_mtom_1_0.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_mtom_1_0/rm_mtom_1_0.c?view=diff&rev=533487&r1=533486&r2=533487
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_mtom_1_0/rm_mtom_1_0.c (original)
+++ webservices/sandesha/trunk/c/samples/rm_mtom_1_0/rm_mtom_1_0.c Sun Apr 29 01:37:02 2007
@@ -47,8 +47,7 @@
     axiom_node_t *payload = NULL;
     axutil_property_t *property = NULL;
     axis2_char_t *offered_seq_id = NULL;
-    axis2_status_t status = AXIS2_FAILURE;
-    axiom_soap_envelope_t *result = NULL;
+    axiom_node_t *result = NULL;
     int c;
     const axis2_char_t *image_name = "resources/axis2.jpg";
    

Modified: webservices/sandesha/trunk/c/samples/rm_report/report.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_report/report.c?view=diff&rev=533487&r1=533486&r2=533487
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_report/report.c (original)
+++ webservices/sandesha/trunk/c/samples/rm_report/report.c Sun Apr 29 01:37:02 2007
@@ -71,10 +71,9 @@
     axis2_listener_manager_t *listener_manager = NULL;
     axis2_char_t *offered_seq_id = NULL;
     axis2_char_t *seq_key = NULL;
-    axiom_soap_envelope_t *result = NULL;
-    sandesha2_seq_report_t *report = NULL;
+    axiom_node_t *result = NULL;
+    sandesha2_report_t *report = NULL;
     int c;
-    int i = 0, size = 0;
    
     /* Set up the environment */
     /*env = axutil_env_create_all("report_non_blocking_dual.log", 
@@ -166,8 +165,8 @@
     property = axutil_property_create(env);
     if(property)
     {
-        axutil_property_set_value(property, env, axutil_strdup(offered_seq_id, 
-            env));
+        axutil_property_set_value(property, env, axutil_strdup(env, 
+            offered_seq_id));
         axis2_options_set_property(options, env, 
             SANDESHA2_CLIENT_OFFERED_SEQ_ID, property);
     }
@@ -245,7 +244,7 @@
                 printf("outgoing seq_id %d:%s\n", i+1, seq_id);
                 completed_msgs_count = sandesha2_report_get_completed_msgs_count(
                     report, env, seq_id);
-                printf("completed_msgs_count:%d\n", completed_msgs_count);
+                printf("completed_msgs_count:%ld\n", completed_msgs_count);
             }
         }
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org