axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From din...@apache.org
Subject svn commit: r477508 - /webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c
Date Tue, 21 Nov 2006 05:20:57 GMT
Author: dinesh
Date: Mon Nov 20 21:20:53 2006
New Revision: 477508

URL: http://svn.apache.org/viewvc?view=rev&rev=477508
Log:
fixed: axis2c-416, patch submitted by Dumindu

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?view=diff&rev=477508&r1=477507&r2=477508
==============================================================================
--- webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c (original)
+++ webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c Mon Nov 20 21:20:53 2006
@@ -82,10 +82,13 @@
     AXIS2_PROPERTY_SET_VALUE(rest_property, env, axis2_strdup(AXIS2_VALUE_TRUE, env));
     AXIS2_OPTIONS_SET_PROPERTY(options, env, AXIS2_ENABLE_REST,
             rest_property);
+    rest_property = NULL;
     if (AXIS2_TRUE == method_get)
     {
-        AXIS2_OPTIONS_SET_PROPERTY(options, env, AXIS2_HTTP_METHOD,
-                AXIS2_HTTP_HEADER_GET);
+        rest_property = axis2_property_create(env);
+        AXIS2_PROPERTY_SET_VALUE(rest_property, env, axis2_strdup(AXIS2_HTTP_HEADER_GET,
env));
+         AXIS2_OPTIONS_SET_PROPERTY(options, env, AXIS2_HTTP_METHOD,
+                rest_property);
     }
     /* Set up deploy folder. It is from the deploy folder, the configuration is picked up
      * using the axis2.xml file.



---------------------------------------------------------------------
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