You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by du...@apache.org on 2008/01/09 12:20:03 UTC

svn commit: r610342 - in /webservices/axis2/trunk/c: axiom/include/axiom_element.h axiom/include/axiom_node.h axiom/include/axiom_xml_reader.h src/core/clientapi/svc_client.c

Author: dushshantha
Date: Wed Jan  9 03:19:27 2008
New Revision: 610342

URL: http://svn.apache.org/viewvc?rev=610342&view=rev
Log:
Applied patch for JIRAs 867, 869, 870. Thanks Senaka.

Modified:
    webservices/axis2/trunk/c/axiom/include/axiom_element.h
    webservices/axis2/trunk/c/axiom/include/axiom_node.h
    webservices/axis2/trunk/c/axiom/include/axiom_xml_reader.h
    webservices/axis2/trunk/c/src/core/clientapi/svc_client.c

Modified: webservices/axis2/trunk/c/axiom/include/axiom_element.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/include/axiom_element.h?rev=610342&r1=610341&r2=610342&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/include/axiom_element.h (original)
+++ webservices/axis2/trunk/c/axiom/include/axiom_element.h Wed Jan  9 03:19:27 2008
@@ -397,8 +397,14 @@
 
     /**
      * Sets the text of the given element.
-     *caution - This method will wipe out all the text elements (and hence any
+     * caution - This method will wipe out all the text elements (and hence any
      * mixed content) before setting the text
+     * @param om_element
+     * @param env
+     * @param text text to set.
+     * @param element_node node of element.
+     * @return AXIS2_SUCCESS if attribute was found and removed, else 
+     *           AXIS2_FAILURE
      */
     AXIS2_EXTERN axis2_status_t AXIS2_CALL
     axiom_element_set_text(

Modified: webservices/axis2/trunk/c/axiom/include/axiom_node.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/include/axiom_node.h?rev=610342&r1=610341&r2=610342&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/include/axiom_node.h (original)
+++ webservices/axis2/trunk/c/axiom/include/axiom_node.h Wed Jan  9 03:19:27 2008
@@ -102,7 +102,8 @@
         const axutil_env_t * env);
 
     /**
-    * Frees an om node and all of its children
+    * Frees an om node and all of its children. Please note that the attached
+    * data_element will also be freed along with the node.
     * @param om_node node to be freed.
     * @param env Environment. MUST NOT be NULL, .
     * @return satus of the op. AXIS2_SUCCESS on success else AXIS2_FAILURE

Modified: webservices/axis2/trunk/c/axiom/include/axiom_xml_reader.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/include/axiom_xml_reader.h?rev=610342&r1=610341&r2=610342&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/include/axiom_xml_reader.h (original)
+++ webservices/axis2/trunk/c/axiom/include/axiom_xml_reader.h Wed Jan  9 03:19:27 2008
@@ -363,7 +363,6 @@
      * NULL on error with error code set in the environment's error
      */
     AXIS2_EXTERN axiom_xml_reader_t *AXIS2_CALL
-
     axiom_xml_reader_create_for_file(
         const axutil_env_t * env,
         char *filename,
@@ -379,13 +378,14 @@
      * buffer on the fly while parsing.
      * @param env environment MUST NOT be NULL.
      * @param read_input_callback() callback function that fills
-     * a char buffer with size @size
-     * @param buffer a character buffer
-     * @param size size of the buffer to be filled
+     * a char buffer.
+     * @param close_input_callback() callback function that closes
+     * the input stream.
+     * @param ctx, context can be any data that needs to be passed
+     * to the callback method.
      * @param encoding encoding scheme of the xml stream
      */
     AXIS2_EXTERN axiom_xml_reader_t *AXIS2_CALL
-
     axiom_xml_reader_create_for_io(
         const axutil_env_t * env,
         AXIS2_READ_INPUT_CALLBACK,
@@ -396,13 +396,14 @@
     /**
      * Create an axiom_xml_reader_t using a buffer, which is the xml input
      * @param env environment, MUST not be NULL
-     * @param buffer xml input string in a char buffer
-     * @param size size of the @buffer
+     * @param container any data that needs to passed to the corresponding
+     * parser's create_for_memory method. The reader does not take ownership
+     * of this data.
+     * @param size size of the buffer
      * @param encoding encoding of the xml
      * @return pointer to axiom_xml_reader_t struct on success , NULL otherwise
      */
     AXIS2_EXTERN axiom_xml_reader_t *AXIS2_CALL
-
     axiom_xml_reader_create_for_memory(
         const axutil_env_t * env,
         void *container,

Modified: webservices/axis2/trunk/c/src/core/clientapi/svc_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/clientapi/svc_client.c?rev=610342&r1=610341&r2=610342&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/clientapi/svc_client.c (original)
+++ webservices/axis2/trunk/c/src/core/clientapi/svc_client.c Wed Jan  9 03:19:27 2008
@@ -497,7 +497,7 @@
 
     size = axutil_array_list_size(svc_client->headers, env);
 
-    for (i = 0; i < size; i++)
+    for (i = size-1; i >-1; i--)
     {
         /*axiom_node_t *node = NULL;
            node = axutil_array_list_get(svc_client->headers, env, i);



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