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 sa...@apache.org on 2006/01/17 07:46:15 UTC
svn commit: r369701 - in /webservices/axis2/trunk/c/modules:
core/transport/http/receiver/simple_http_svr_conn.c util/stream.c
Author: samisa
Date: Mon Jan 16 22:46:07 2006
New Revision: 369701
URL: http://svn.apache.org/viewcvs?rev=369701&view=rev
Log:
More fixes to get the server working
Modified:
webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c
webservices/axis2/trunk/c/modules/util/stream.c
Modified: webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c?rev=369701&r1=369700&r2=369701&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c Mon Jan 16 22:46:07 2006
@@ -381,8 +381,8 @@
if(body_size > 0)
{
int write_size = 0;
- write_size = AXIS2_STREAM_WRITE(response_stream, env, response_body,
- body_size);
+ write_size = AXIS2_HTTP_RESPONSE_WRITER_PRINTLN_STR(response_writer,
+ env, response_body);
if(write_size < 0)
{
AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_WRITING_RESPONSE,
Modified: webservices/axis2/trunk/c/modules/util/stream.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/util/stream.c?rev=369701&r1=369700&r2=369701&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/util/stream.c (original)
+++ webservices/axis2/trunk/c/modules/util/stream.c Mon Jan 16 22:46:07 2006
@@ -619,7 +619,8 @@
fp = AXIS2_INTF_TO_IMPL(stream)->fp;
if (NULL == buffer)
return -1;
- len = fwrite(buffer, sizeof(axis2_char_t), count, fp);
+ /*len = fwrite(buffer, sizeof(axis2_char_t), count, fp);*/
+ len = write(AXIS2_INTF_TO_IMPL(stream)->socket, buffer, count);
return len;
}