axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r441738 - in /webservices/axis2/trunk/c/samples: client/rm_ping/rm_ping_client.c server/rm_ping/rm_ping.c
Date Sat, 09 Sep 2006 04:40:25 GMT
Author: damitha
Date: Fri Sep  8 21:40:23 2006
New Revision: 441738

URL: http://svn.apache.org/viewvc?view=rev&rev=441738
Log:
rm_ping is now working


Modified:
    webservices/axis2/trunk/c/samples/client/rm_ping/rm_ping_client.c
    webservices/axis2/trunk/c/samples/server/rm_ping/rm_ping.c

Modified: webservices/axis2/trunk/c/samples/client/rm_ping/rm_ping_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/rm_ping/rm_ping_client.c?view=diff&rev=441738&r1=441737&r2=441738
==============================================================================
--- webservices/axis2/trunk/c/samples/client/rm_ping/rm_ping_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/rm_ping/rm_ping_client.c Fri Sep  8 21:40:23
2006
@@ -36,10 +36,10 @@
     axis2_property_t *property = NULL;
    
     /* Set up the environment */
-    env = axis2_env_create_all("rm_notify.log", AXIS2_LOG_LEVEL_TRACE);
+    env = axis2_env_create_all("rm_ping.log", AXIS2_LOG_LEVEL_TRACE);
 
     /* Set end point reference of echo service */
-    address = "http://localhost:9090/axis2/services/rm_notify";
+    address = "http://localhost:9090/axis2/services/rm_ping";
     if (argc > 1 )
         address = argv[1];
     if (AXIS2_STRCMP(address, "-h") == 0)
@@ -58,7 +58,7 @@
     AXIS2_OPTIONS_SET_TO(options, env, endpoint_ref);
     /*AXIS2_OPTIONS_SET_USE_SEPARATE_LISTENER(options, env, AXIS2_TRUE);*/
     AXIS2_OPTIONS_SET_ACTION(options, env,
-        "http://example.org/action/notify");
+        "http://example.org/action/ping");
 
     /* Set up deploy folder. It is from the deploy folder, the configuration is picked up

      * using the axis2.xml file.
@@ -101,14 +101,14 @@
     status = AXIS2_SVC_CLIENT_SEND_ROBUST(svc_client, env, payload);
     if(status == AXIS2_SUCCESS)
     {
-        printf("\nnotify client invoke SUCCESSFUL!\n");
+        printf("\nping client invoke SUCCESSFUL!\n");
     }
     else
     {
       AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
                   " %d :: %s", env->error->error_number,
                         AXIS2_ERROR_GET_MESSAGE(env->error));
-        printf("notify client invoke FAILED!\n");
+        printf("ping client invoke FAILED!\n");
     }
     AXIS2_SLEEP(1000);
     
@@ -129,17 +129,17 @@
 axiom_node_t *
 build_om_programatically(const axis2_env_t *env)
 {
-    axiom_node_t *notify_om_node = NULL;
-    axiom_element_t* notify_om_ele = NULL;
+    axiom_node_t *ping_om_node = NULL;
+    axiom_element_t* ping_om_ele = NULL;
     axiom_namespace_t *ns1 = NULL;
     axis2_char_t *buffer = NULL;
     
-    ns1 = axiom_namespace_create (env, "http://example.org/rm_notify", "m");
-    notify_om_ele = axiom_element_create(env, NULL, "notify", ns1, &notify_om_node);
-    AXIOM_ELEMENT_SET_TEXT(notify_om_ele, env, "notify5", notify_om_node);
+    ns1 = axiom_namespace_create (env, "http://example.org/rm_ping", "m");
+    ping_om_ele = axiom_element_create(env, NULL, "ping", ns1, &ping_om_node);
+    AXIOM_ELEMENT_SET_TEXT(ping_om_ele, env, "ping5", ping_om_node);
     
-    buffer = AXIOM_NODE_TO_STRING(notify_om_node, env);
+    buffer = AXIOM_NODE_TO_STRING(ping_om_node, env);
     printf("\nSending OM node in XML : %s \n",  buffer); 
 
-    return notify_om_node;
+    return ping_om_node;
 }

Modified: webservices/axis2/trunk/c/samples/server/rm_ping/rm_ping.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/rm_ping/rm_ping.c?view=diff&rev=441738&r1=441737&r2=441738
==============================================================================
--- webservices/axis2/trunk/c/samples/server/rm_ping/rm_ping.c (original)
+++ webservices/axis2/trunk/c/samples/server/rm_ping/rm_ping.c Fri Sep  8 21:40:23 2006
@@ -17,7 +17,7 @@
 #include <stdio.h>
 
 void
-axis2_rm_ping_notify (const axis2_env_t *env, axiom_node_t *node)
+axis2_rm_ping_ping (const axis2_env_t *env, axiom_node_t *node)
 {
     axiom_node_t *text_node = NULL;
 
@@ -25,9 +25,9 @@
         return;
    
     /* Expected request format is :-
-       <m:notify xmlns:m="http://example.org/notify">Message 3</m:notify>
+       <m:ping xmlns:m="http://example.org/ping">Message 3</m:ping>
      */
-    if (!node) /* 'notify' node */
+    if (!node) /* 'ping' node */
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_SVC_SKEL_INPUT_OM_NODE_NULL, AXIS2_FAILURE);
         printf("Echo client ERROR: input parameter NULL\n");
@@ -35,7 +35,7 @@
     }
 
     text_node = AXIOM_NODE_GET_FIRST_CHILD(node, env);
-    if (!node) /* actual text to notify */
+    if (!node) /* actual text to ping */
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_SVC_SKEL_INVALID_XML_FORMAT_IN_REQUEST,
AXIS2_FAILURE);
         printf("Echo client ERROR: invalid XML in request\n");



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


Mime
View raw message