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 sa...@apache.org on 2007/02/19 09:37:06 UTC

svn commit: r509130 - in /webservices/sandesha/trunk/c/samples: RMSampleService/ rm_echo_1_0/ rm_echo_1_1/ rm_echo_single_1_0/ rm_echo_single_1_1/ rm_mtom_1_0/ rm_ping_1_0/ rm_ping_1_1/

Author: samisa
Date: Mon Feb 19 00:37:05 2007
New Revision: 509130

URL: http://svn.apache.org/viewvc?view=rev&rev=509130
Log:
Fixed warnings

Modified:
    webservices/sandesha/trunk/c/samples/RMSampleService/rm_sample_svc.c
    webservices/sandesha/trunk/c/samples/RMSampleService/rm_sample_svc.h
    webservices/sandesha/trunk/c/samples/RMSampleService/rm_sample_svc_skel.c
    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_ping_1_0/rm_ping_1_0.c
    webservices/sandesha/trunk/c/samples/rm_ping_1_1/rm_ping_1_1.c

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=509130&r1=509129&r2=509130
==============================================================================
--- webservices/sandesha/trunk/c/samples/RMSampleService/rm_sample_svc.c (original)
+++ webservices/sandesha/trunk/c/samples/RMSampleService/rm_sample_svc.c Mon Feb 19 00:37:05 2007
@@ -142,7 +142,6 @@
     axiom_node_t *text_parent_node = NULL;
     axiom_element_t *text_parent_element = NULL;
     axiom_node_t *text_node = NULL;
-    axiom_node_t *ret_node = NULL;
     axiom_element_t *element = NULL;
     axis2_char_t *ns = "http://tempuri.org/";
     axis2_qname_t *qname = NULL;
@@ -193,11 +192,11 @@
     
     if (AXIOM_NODE_GET_NODE_TYPE(text_node, env) == AXIOM_TEXT)
     {
-        axiom_text_t *text = (axiom_text_t *)AXIOM_NODE_GET_DATA_ELEMENT(text_node, env);
+        /*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);
-        }
+        }*/
     }
     else
     {

Modified: webservices/sandesha/trunk/c/samples/RMSampleService/rm_sample_svc.h
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/RMSampleService/rm_sample_svc.h?view=diff&rev=509130&r1=509129&r2=509130
==============================================================================
--- webservices/sandesha/trunk/c/samples/RMSampleService/rm_sample_svc.h (original)
+++ webservices/sandesha/trunk/c/samples/RMSampleService/rm_sample_svc.h Mon Feb 19 00:37:05 2007
@@ -34,4 +34,9 @@
     const axis2_env_t *env, 
     axiom_node_t *node);
 
+axiom_node_t *
+rm_sample_svc_mtom(
+    const axis2_env_t *env, 
+    axiom_node_t *node);
+
 #endif /* CALC_H*/

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=509130&r1=509129&r2=509130
==============================================================================
--- webservices/sandesha/trunk/c/samples/RMSampleService/rm_sample_svc_skel.c (original)
+++ webservices/sandesha/trunk/c/samples/RMSampleService/rm_sample_svc_skel.c Mon Feb 19 00:37:05 2007
@@ -107,7 +107,7 @@
     op = AXIS2_MSG_CTX_GET_OP(msg_ctx, env);
     if(op)
     {
-        op_qname = AXIS2_OP_GET_QNAME(op, env);
+        op_qname = (axis2_qname_t *)AXIS2_OP_GET_QNAME(op, env);
         if(op_qname)
             op_name = AXIS2_QNAME_GET_LOCALPART(op_qname, env);
         if(op_name)

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=509130&r1=509129&r2=509130
==============================================================================
--- 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 Mon Feb 19 00:37:05 2007
@@ -28,6 +28,7 @@
 #include <sandesha2_constants.h>
 #include <sandesha2_client.h>
 #include <platforms/axis2_platform_auto_sense.h>
+#include <ctype.h>
 
 #define SANDESHA2_MAX_COUNT 40
 
@@ -67,7 +68,6 @@
     axis2_callback_t *callback = NULL;
     axis2_callback_t *callback2 = NULL;
     axis2_callback_t *callback3 = NULL;
-    axis2_callback_t *callback4 = NULL;
     axis2_property_t *property = NULL;
     axis2_listener_manager_t *listener_manager = NULL;
     int c;

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=509130&r1=509129&r2=509130
==============================================================================
--- 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 Mon Feb 19 00:37:05 2007
@@ -29,6 +29,7 @@
 #include <sandesha2_client.h>
 #include <axis2_addr.h>
 #include <platforms/axis2_platform_auto_sense.h>
+#include <ctype.h>
 
 #define SANDESHA2_MAX_COUNT 10
 
@@ -73,7 +74,6 @@
     axis2_listener_manager_t *listener_manager = NULL;
     axis2_char_t *offered_seq_id = NULL;
     axis2_bool_t offer = AXIS2_FALSE;
-    axis2_bool_t single_channel = AXIS2_TRUE;
     int c;
    
     /* Set up the environment */

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=509130&r1=509129&r2=509130
==============================================================================
--- 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 Mon Feb 19 00:37:05 2007
@@ -28,6 +28,7 @@
 #include <sandesha2_constants.h>
 #include <sandesha2_client.h>
 #include <axis2_addr.h>
+#include <ctype.h>
 
 #define SANDESHA2_MAX_COUNT 4
 
@@ -65,7 +66,7 @@
     axis2_property_t *property = NULL;
     axis2_listener_manager_t *listener_manager = NULL;
     axis2_char_t *offered_seq_id = NULL;
-    axis2_status_t status = AXIS2_FAILURE;
+    axiom_node_t *result = NULL;
     int c;
    
     /* Set up the environment */
@@ -195,8 +196,8 @@
     property = axis2_property_create_with_args(env, 0, 0, 0, AXIS2_VALUE_TRUE);
     AXIS2_OPTIONS_SET_PROPERTY(options, env, "Sandesha2LastMessage", property);
     payload = build_om_payload_for_echo_svc(env, "echo3", "sequence1");
-    status = AXIS2_SVC_CLIENT_SEND_RECEIVE(svc_client, env, payload);
-    if(status)
+    result = AXIS2_SVC_CLIENT_SEND_RECEIVE(svc_client, env, payload);
+    if(result)
         printf("\necho client single channel invoke SUCCESSFUL!\n");
     payload = NULL;
 

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=509130&r1=509129&r2=509130
==============================================================================
--- 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 Mon Feb 19 00:37:05 2007
@@ -28,6 +28,7 @@
 #include <sandesha2_constants.h>
 #include <sandesha2_client.h>
 #include <axis2_addr.h>
+#include <ctype.h>
 
 #define SANDESHA2_MAX_COUNT 10
 

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=509130&r1=509129&r2=509130
==============================================================================
--- 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 Mon Feb 19 00:37:05 2007
@@ -25,6 +25,7 @@
 #include <axis2_callback_recv.h>
 #include <axis2_svc_client.h>
 #include <sandesha2_client_constants.h>
+#include <ctype.h>
 
 #define SANDESHA2_SLEEP_TIME 2
 void 
@@ -36,18 +37,15 @@
     const axis2_env_t *env = NULL;
     const axis2_char_t *address = NULL;
     axis2_endpoint_ref_t* endpoint_ref = NULL;
-    axis2_endpoint_ref_t* reply_to = NULL;
     axis2_options_t *options = NULL;
     const axis2_char_t *client_home = NULL;
     axis2_svc_client_t* svc_client = NULL;
     axiom_node_t *payload = NULL;
     axis2_property_t *property = NULL;
-    axis2_listener_manager_t *listener_manager = NULL;
     axis2_char_t *offered_seq_id = NULL;
     axis2_status_t status = AXIS2_FAILURE;
     int c;
     const axis2_char_t *image_name = "resources/axis2.jpg";
-    axiom_node_t *ret_node = NULL;
    
     /* Set up the environment */
     env = axis2_env_create_all("echo_non_blocking_dual.log", 

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?view=diff&rev=509130&r1=509129&r2=509130
==============================================================================
--- 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 Mon Feb 19 00:37:05 2007
@@ -21,6 +21,7 @@
 #include <axis2_client.h>
 #include <sandesha2_client_constants.h>
 #include <sandesha2_constants.h>
+#include <ctype.h>
 
 #define MAX_COUNT 2
 
@@ -48,7 +49,6 @@
     axiom_node_t *payload = NULL;
     axis2_status_t status = AXIS2_FAILURE;
     axis2_property_t *property = NULL;
-    int count = 0;
     int c;
    
     /* Set up the environment */

Modified: webservices/sandesha/trunk/c/samples/rm_ping_1_1/rm_ping_1_1.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_ping_1_1/rm_ping_1_1.c?view=diff&rev=509130&r1=509129&r2=509130
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_ping_1_1/rm_ping_1_1.c (original)
+++ webservices/sandesha/trunk/c/samples/rm_ping_1_1/rm_ping_1_1.c Mon Feb 19 00:37:05 2007
@@ -22,6 +22,7 @@
 #include <sandesha2_client_constants.h>
 #include <sandesha2_constants.h>
 #include <sandesha2_client.h>
+#include <ctype.h>
 
 #define MAX_COUNT 1
 
@@ -29,7 +30,7 @@
 build_om_programatically(
     const axis2_env_t *env,
     axis2_char_t *text,
-    axis2_char_t *seq);
+    const axis2_char_t *seq);
 
 static void 
 usage(
@@ -51,7 +52,6 @@
     axiom_node_t *payload = NULL;
     axis2_status_t status = AXIS2_FAILURE;
     axis2_property_t *property = NULL;
-    int count = 0;
     int c;
    
     /* Set up the environment */
@@ -100,7 +100,7 @@
         AXIS2_OPTIONS_SET_TO(options, env, endpoint_ref);
     if(target_epr)
     {
-        property = axis2_property_create_with_args(env, 0, 0, 0, target_epr);
+        property = axis2_property_create_with_args(env, 0, 0, 0, (void*)target_epr);
         AXIS2_OPTIONS_SET_PROPERTY(options, env, AXIS2_TARGET_EPR, property);
     }
     /*AXIS2_OPTIONS_SET_ACTION(options, env, "urn:wsrm:Ping");*/
@@ -145,7 +145,7 @@
     }
     if(seq_key)
     {
-        property = axis2_property_create_with_args(env, 3, 0, 0, seq_key);
+        property = axis2_property_create_with_args(env, 3, 0, 0, (void*)seq_key);
         if(property)
         {
             AXIS2_OPTIONS_SET_PROPERTY(options, env, SANDESHA2_CLIENT_SEQ_KEY, 
@@ -192,7 +192,7 @@
 build_om_programatically(
     const axis2_env_t *env,
     axis2_char_t *text,
-    axis2_char_t *seq_key)
+    const axis2_char_t *seq_key)
 {
     axiom_node_t *ping_om_node = NULL;
     axiom_element_t* ping_om_ele = NULL;



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