Author: kaushalye
Date: Wed Oct 31 06:08:55 2007
New Revision: 590658

URL: http://svn.apache.org/viewvc?rev=590658&view=rev
Log:
echo sample

Modified:
    webservices/rampart/trunk/c/samples/client/sec_echo/echo.c
    webservices/rampart/trunk/c/samples/client/sec_echo/update_n_run.sh

Modified: webservices/rampart/trunk/c/samples/client/sec_echo/echo.c
URL: 
http://svn.apache.org/viewvc/webservices/rampart/trunk/c/samples/client/sec_echo/echo.c?rev=590658&r1=590657&r2=590658&view=diff
==============================================================================
--- webservices/rampart/trunk/c/samples/client/sec_echo/echo.c (original)
+++ webservices/rampart/trunk/c/samples/client/sec_echo/echo.c Wed Oct 31 
06:08:55 2007
@@ -70,7 +70,7 @@
     options = axis2_options_create(env);
     axis2_options_set_to(options, env, endpoint_ref);
     axis2_options_set_action(options, env,
-            "http://xmlsoap.org/Ping";);
+            "http://example.com/ws/2004/09/policy/Test/EchoRequest";);
     /*axis2_options_set_action(options, env,
             "urn:echo");*/
 
@@ -202,13 +202,12 @@
     axiom_namespace_t *ns1 = NULL;
     axis2_char_t *om_str = NULL;
 
-    ns1 = axiom_namespace_create(env, "http://xmlsoap.org/Ping";, "ns0");
-    echo_om_ele = axiom_element_create(env, NULL, "Ping", ns1, &echo_om_node);
+    ns1 = axiom_namespace_create(env, 
"http://ws.apache.org/rampart/c/samples";, "ns1");
+    echo_om_ele = axiom_element_create(env, NULL, "echoIn", ns1, 
&echo_om_node);
     
     
-    /*text_om_ele = axiom_element_create(env, echo_om_node, "text", NULL, 
&text_om_node);
-         */
-    axiom_element_set_text(text_om_ele, env, "Hello", echo_om_ele);
+    text_om_ele = axiom_element_create(env, echo_om_node, "text", NULL, 
&text_om_node);
+    axiom_element_set_text(text_om_ele, env, "Hello", text_om_node);
 
     om_str = axiom_node_to_string(echo_om_node, env);
     if (om_str){

Modified: webservices/rampart/trunk/c/samples/client/sec_echo/update_n_run.sh
URL: 
http://svn.apache.org/viewvc/webservices/rampart/trunk/c/samples/client/sec_echo/update_n_run.sh?rev=590658&r1=590657&r2=590658&view=diff
==============================================================================
--- webservices/rampart/trunk/c/samples/client/sec_echo/update_n_run.sh 
(original)
+++ webservices/rampart/trunk/c/samples/client/sec_echo/update_n_run.sh Wed Oct 
31 06:08:55 2007
@@ -7,6 +7,4 @@
 cp -r $AXIS2C_HOME/modules/rampart $CLIENT_REPO/modules
 
 #RUN
-#./echo http://localhost:9090/axis2/services/sec_echo/echoString $CLIENT_REPO
-#./echo http://192.168.1.57:1110/services/UsernameForCertificateSign 
$CLIENT_REPO
-./echo http://localhost:9090/services/UsernameForCertificateSign $CLIENT_REPO
+./echo http://localhost:9090/axis2/services/sec_echo/echoString $CLIENT_REPO


Reply via email to