You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by du...@apache.org on 2008/01/24 19:49:08 UTC
svn commit: r614957 -
/webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c
Author: dumindu
Date: Thu Jan 24 10:48:59 2008
New Revision: 614957
URL: http://svn.apache.org/viewvc?rev=614957&view=rev
Log:
trivial fixed to echo_rest sample
Modified:
webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c
Modified: webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c?rev=614957&r1=614956&r2=614957&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c (original)
+++ webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c Thu Jan 24 10:48:59 2008
@@ -69,11 +69,11 @@
if (argc > 2)
{
- if (0 == strncmp(argv[2], "-mGET", 2))
+ if (0 == strncmp(argv[2], "-mGET", 4))
{
method_get = AXIS2_TRUE;
}
- else if (0 == strncmp(argv[2], "-mHEAD", 2))
+ else if (0 == strncmp(argv[2], "-mHEAD", 5))
{
method_head = AXIS2_TRUE;
}
@@ -144,6 +144,13 @@
printf("\nReceived OM : %s\n", om_str);
AXIS2_FREE(env->allocator, om_str);
}
+ printf("\necho client invoke SUCCESSFUL!\n");
+ }
+ else if (method_head)
+ {
+ /* HEAD request should probably be removed from this file,
+ * and be relocated to transport unit tests.
+ */
printf("\necho client invoke SUCCESSFUL!\n");
}
else
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org