axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r397163 - in /webservices/axis2/trunk/c/modules/xml/attachments: data_handler.c mime_body_part.c mime_output.c
Date Wed, 26 Apr 2006 10:00:17 GMT
Author: samisa
Date: Wed Apr 26 03:00:14 2006
New Revision: 397163

URL: http://svn.apache.org/viewcvs?rev=397163&view=rev
Log:
Changes to fix new line problems that presented the client orking with Java server.
Now it can talk to Java server successfully

Modified:
    webservices/axis2/trunk/c/modules/xml/attachments/data_handler.c
    webservices/axis2/trunk/c/modules/xml/attachments/mime_body_part.c
    webservices/axis2/trunk/c/modules/xml/attachments/mime_output.c

Modified: webservices/axis2/trunk/c/modules/xml/attachments/data_handler.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/attachments/data_handler.c?rev=397163&r1=397162&r2=397163&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/attachments/data_handler.c (original)
+++ webservices/axis2/trunk/c/modules/xml/attachments/data_handler.c Wed Apr 26 03:00:14 2006
@@ -179,7 +179,7 @@
                 }
                 return AXIS2_FAILURE;
             }
-            count = fread(read_stream, sizeof(axis2_byte_t), 1024, f);
+            count = fread(read_stream, 1, 1024, f);
             if (ferror(f) != 0)
             {
                 /*TODO : need to set the correct error code */

Modified: webservices/axis2/trunk/c/modules/xml/attachments/mime_body_part.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/attachments/mime_body_part.c?rev=397163&r1=397162&r2=397163&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/attachments/mime_body_part.c (original)
+++ webservices/axis2/trunk/c/modules/xml/attachments/mime_body_part.c Wed Apr 26 03:00:14
2006
@@ -181,6 +181,9 @@
         }
     }
     
+    if (mime_body_part_impl->data_handler)
+        header_str = AXIS2_STRACAT(header_str, "\r\n", env);
+
     if (header_str)
         header_str_size = AXIS2_STRLEN(header_str);
     

Modified: webservices/axis2/trunk/c/modules/xml/attachments/mime_output.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/attachments/mime_output.c?rev=397163&r1=397162&r2=397163&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/attachments/mime_output.c (original)
+++ webservices/axis2/trunk/c/modules/xml/attachments/mime_output.c Wed Apr 26 03:00:14 2006
@@ -279,6 +279,7 @@
     
     if (soap_body_buffer)
     {
+        soap_body_buffer = AXIS2_STRACAT(soap_body_buffer, "\r\n", env);
         soap_body_buffer_size = AXIS2_STRLEN(soap_body_buffer);
     }
     



Mime
View raw message