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 sa...@apache.org on 2006/02/03 13:58:20 UTC

svn commit: r374661 - in /webservices/axis2/trunk/c: modules/core/transport/http/ modules/core/transport/http/sender/ modules/core/transport/http/server/ modules/xml/soap/ samples/client/echo/ samples/client/math/ test/core/deployment/ test/xml/om/ tes...

Author: sahan
Date: Fri Feb  3 04:57:58 2006
New Revision: 374661

URL: http://svn.apache.org/viewcvs?rev=374661&view=rev
Log:
Changed the tests to comply with the new log constructor, as well as the server and the samples. Added HTTP chunking at the client side

Modified:
    webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c
    webservices/axis2/trunk/c/modules/core/transport/http/sender/http_client.c
    webservices/axis2/trunk/c/modules/core/transport/http/sender/http_transport_sender.c
    webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c
    webservices/axis2/trunk/c/modules/core/transport/http/server/http_server_main.c
    webservices/axis2/trunk/c/modules/xml/soap/soap_builder.c
    webservices/axis2/trunk/c/samples/client/echo/echo_client.c
    webservices/axis2/trunk/c/samples/client/math/math_client.c
    webservices/axis2/trunk/c/test/core/deployment/test_deployment.c
    webservices/axis2/trunk/c/test/xml/om/test_om.c
    webservices/axis2/trunk/c/test/xml/soap/test_soap.c

Modified: webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c?rev=374661&r1=374660&r2=374661&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c Fri Feb  3 04:57:58 2006
@@ -771,8 +771,6 @@
 	}
 	if(cb_ctx->chunked_stream != NULL)
 	{
-		/*TODO remove this debug message */
-		AXIS2_LOG_DEBUG((*env)->log, AXIS2_LOG_SI, "Stream chunked");
 		len = AXIS2_HTTP_CHUNKED_STREAM_READ(cb_ctx->chunked_stream, env, 
 						buffer, size);
 		return len;
@@ -800,24 +798,38 @@
     axis2_char_t *content_type = NULL;
     axis2_stream_t *in_stream = NULL;
     axis2_callback_info_t callback_ctx;
+	axis2_char_t *trans_enc = NULL;
     AXIS2_ENV_CHECK(env, NULL);
 	AXIS2_PARAM_CHECK((*env)->error, msg_ctx, NULL);
     AXIS2_PARAM_CHECK((*env)->error, soap_ns_uri, NULL);
     
     in_stream = AXIS2_MSG_CTX_GET_PROPERTY(msg_ctx, env, AXIS2_TRANSPORT_IN, 
                         AXIS2_FALSE);
+	callback_ctx.in_stream = in_stream;
+	callback_ctx.env = *env;
+	callback_ctx.content_length = -1;
+	callback_ctx.unread_len = -1;
+	callback_ctx.chunked_stream = NULL;
+	
     if(NULL == in_stream)
     {
         AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NULL_IN_STREAM_IN_MSG_CTX,
                         AXIS2_FAILURE);
         return NULL;
     }
-    
-    callback_ctx.in_stream = in_stream;
-	callback_ctx.env = *env;
-	callback_ctx.content_length = -1;
-	callback_ctx.unread_len = -1;
-	callback_ctx.chunked_stream = NULL;
+    trans_enc = AXIS2_MSG_CTX_GET_PROPERTY(msg_ctx, env, 
+						AXIS2_HTTP_HEADER_TRANSFER_ENCODING, AXIS2_FALSE);
+	if(NULL != trans_enc && 0 == AXIS2_STRCMP(trans_enc, 
+						AXIS2_HTTP_HEADER_TRANSFER_ENCODING_CHUNKED))
+	{
+		callback_ctx.chunked_stream = axis2_http_chunked_stream_create(env, 
+						in_stream);
+		if(NULL == callback_ctx.chunked_stream)
+		{
+			return NULL;
+		}
+	}
+	
     
     op_ctx = AXIS2_MSG_CTX_GET_OP_CTX(msg_ctx, env);
     if(NULL != op_ctx)

Modified: webservices/axis2/trunk/c/modules/core/transport/http/sender/http_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/sender/http_client.c?rev=374661&r1=374660&r2=374661&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/sender/http_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/sender/http_client.c Fri Feb  3 04:57:58 2006
@@ -22,6 +22,7 @@
 #include <axis2_http_request_line.h>
 #include <axis2_http_header.h>
 #include <axis2_http_status_line.h>
+#include <axis2_http_chunked_stream.h>
 
 
 /** 
@@ -162,8 +163,10 @@
 	char *str_request_line = NULL;
 	int body_size = 0;
 	int written = 0;
+	axis2_status_t status = AXIS2_FAILURE;
 	AXIS2_FUNC_PARAM_CHECK(client, env, AXIS2_FAILURE);
     client_impl = AXIS2_INTF_TO_IMPL(client);
+	axis2_bool_t chunking_enabled = AXIS2_FALSE;
 	
 	if(NULL == client_impl->url)
 	{
@@ -209,6 +212,19 @@
 		{
 			axis2_http_header_t *tmp_header = (axis2_http_header_t*)
 						AXIS2_ARRAY_LIST_GET(headers, env, i);
+			if(NULL == tmp_header)
+			{
+				continue;
+			}
+			/* check whether we have transfer encoding and then see whether the
+			 * value is "chunked" */
+			if(0 == AXIS2_STRCMP(AXIS2_HTTP_HEADER_GET_NAME(tmp_header, env), 
+						AXIS2_HTTP_HEADER_TRANSFER_ENCODING) && 0 == 
+						AXIS2_STRCMP(AXIS2_HTTP_HEADER_GET_VALUE(tmp_header, 
+						env), AXIS2_HTTP_HEADER_TRANSFER_ENCODING_CHUNKED))
+			{
+				chunking_enabled = AXIS2_TRUE;
+			}
 			axis2_char_t *header_ext_form = AXIS2_HTTP_HEADER_TO_EXTERNAL_FORM(
 						tmp_header, env);
 			str_header2 = AXIS2_STRACAT(str_header, header_ext_form, env);
@@ -237,18 +253,57 @@
 						&str_body);
 	if(body_size > 0 && NULL != str_body)
 	{
-		written = AXIS2_STREAM_WRITE(client_impl->data_stream, env, str_body, 
-						body_size);		
+		if(AXIS2_FALSE == chunking_enabled)
+		{
+			status = AXIS2_SUCCESS;
+			while(written < body_size)
+			{
+				written = AXIS2_STREAM_WRITE(client_impl->data_stream, env, 
+								str_body, body_size);
+				if(-1 == written)
+				{
+					status = AXIS2_FAILURE;
+					break;
+				}
+			}
+		}
+		else
+		{
+			axis2_http_chunked_stream_t *chunked_stream = NULL;
+			chunked_stream = axis2_http_chunked_stream_create(env, 
+							client_impl->data_stream);
+			status = AXIS2_SUCCESS;
+			if(NULL == chunked_stream)
+			{
+				AXIS2_LOG_ERROR((*env)->log, AXIS2_LOG_SI, "Creatoin of chunked"
+							"stream failed");
+				return AXIS2_FAILURE;
+			}
+			while(written < body_size)
+			{
+				written = AXIS2_HTTP_CHUNKED_STREAM_WRITE(chunked_stream, env, 
+							str_body, body_size);
+				if(-1 == written)
+				{
+					status = AXIS2_FAILURE;
+					break;
+				}
+			}
+			if(AXIS2_SUCCESS == status)
+			{
+				AXIS2_HTTP_CHUNKED_STREAM_WRITE_LAST_CHUNK(chunked_stream, env);
+			}
+			AXIS2_HTTP_CHUNKED_STREAM_FREE(chunked_stream, env);
+		}
 	}
-	written = AXIS2_STREAM_WRITE(client_impl->data_stream, env, AXIS2_HTTP_CRLF, 
-						2); 
+	
 	client_impl->request_sent = AXIS2_TRUE;
 	if(NULL != str_body)
 	{
 		AXIS2_FREE((*env)->allocator, str_body);
 		str_body = NULL;
 	}
-    return AXIS2_SUCCESS;
+    return status;
 }
 
 

Modified: webservices/axis2/trunk/c/modules/core/transport/http/sender/http_transport_sender.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/sender/http_transport_sender.c?rev=374661&r1=374660&r2=374661&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/sender/http_transport_sender.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/sender/http_transport_sender.c Fri Feb  3 04:57:58 2006
@@ -93,7 +93,6 @@
 		AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
 		return NULL;
 	}
-
     transport_sender_impl->http_version = AXIS2_STRDUP(
 						AXIS2_HTTP_HEADER_PROTOCOL_11, env);
 	transport_sender_impl->chunked = AXIS2_TRUE;
@@ -155,7 +154,7 @@
 	
 	AXIS2_FUNC_PARAM_CHECK(transport_sender, env, AXIS2_FAILURE);
 	AXIS2_PARAM_CHECK((*env)->error, msg_ctx, AXIS2_FAILURE);
-    
+
 	xml_writer = axis2_xml_writer_create_for_memory(env, NULL, AXIS2_TRUE, 0);
 	om_output = axis2_om_output_create(env, xml_writer);
 	
@@ -317,21 +316,27 @@
                     		axis2_env_t **env, axis2_conf_ctx_t *conf_ctx, 
 							axis2_transport_out_desc_t *out_desc)
 {
+	axis2_param_t *version_param = NULL;
     axis2_char_t *version = NULL;
 	axis2_char_t *temp = NULL;
-	
+	axis2_param_t *temp_param = NULL;
 	AXIS2_FUNC_PARAM_CHECK(transport_sender, env, AXIS2_FAILURE);
     AXIS2_PARAM_CHECK((*env)->error, conf_ctx, AXIS2_FAILURE);
 	AXIS2_PARAM_CHECK((*env)->error, out_desc, AXIS2_FAILURE);
 	
-	version = (axis2_char_t *)AXIS2_PARAM_CONTAINER_GET_PARAM(
+	version_param = AXIS2_PARAM_CONTAINER_GET_PARAM(
 							out_desc->param_container, env, 
 							AXIS2_HTTP_PROTOCOL_VERSION);
+	if(NULL != version_param)
+	{
+		version = AXIS2_PARAM_GET_VALUE(version_param, env);
+	}
 	if(NULL != version)
 	{
 		if(0 == AXIS2_STRCMP(version, AXIS2_HTTP_HEADER_PROTOCOL_11))
 		{
 			axis2_char_t *encoding = NULL;
+			axis2_param_t *encoding_param = NULL;
 			if(NULL != AXIS2_INTF_TO_IMPL(transport_sender)->http_version)
 			{
 				AXIS2_FREE((*env)->allocator, 
@@ -339,14 +344,22 @@
 			}
 			AXIS2_INTF_TO_IMPL(transport_sender)->http_version = AXIS2_STRDUP(
 							version, env);
-			encoding = (axis2_char_t *)AXIS2_PARAM_CONTAINER_GET_PARAM(
+			encoding_param = AXIS2_PARAM_CONTAINER_GET_PARAM(
 							out_desc->param_container, env, 
 							AXIS2_HTTP_HEADER_TRANSFER_ENCODING);
+			if(NULL != encoding_param)
+			{
+				encoding = AXIS2_PARAM_GET_VALUE(encoding_param, env);
+			}
 			if(NULL != encoding && 0 == AXIS2_STRCMP(encoding, 
 							AXIS2_HTTP_HEADER_TRANSFER_ENCODING_CHUNKED))
 			{
 				AXIS2_INTF_TO_IMPL(transport_sender)->chunked = AXIS2_TRUE;
 			}
+			else
+			{
+				AXIS2_INTF_TO_IMPL(transport_sender)->chunked = AXIS2_FALSE;
+			}
 		}
 		else if(0 == AXIS2_STRCMP(version, AXIS2_HTTP_HEADER_PROTOCOL_10))
 		{
@@ -359,30 +372,38 @@
 							version, env);
 			AXIS2_INTF_TO_IMPL(transport_sender)->chunked = AXIS2_FALSE;
 		}
-		else
-		{
-			AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NULL_HTTP_VERSION, 
+	}
+	else
+	{
+		AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NULL_HTTP_VERSION, 
 							AXIS2_FAILURE);
-			return AXIS2_FAILURE;
-			
-		}
+		return AXIS2_FAILURE;
+	}
+		
 		
-		temp = (axis2_char_t *)AXIS2_PARAM_CONTAINER_GET_PARAM(
+	temp_param = AXIS2_PARAM_CONTAINER_GET_PARAM(
 							out_desc->param_container, env, 
 							AXIS2_HTTP_SO_TIMEOUT);
-		if(NULL != temp)
-		{
-			AXIS2_INTF_TO_IMPL(transport_sender)->so_timeout = atoi(temp);
-		}
-		temp = (axis2_char_t *)AXIS2_PARAM_CONTAINER_GET_PARAM(
+	if(NULL != temp_param)
+	{
+		temp = AXIS2_PARAM_GET_VALUE(temp_param, env);
+	}
+	if(NULL != temp)
+	{
+		AXIS2_INTF_TO_IMPL(transport_sender)->so_timeout = atoi(temp);
+	}
+	temp = (axis2_char_t *)AXIS2_PARAM_CONTAINER_GET_PARAM(
 							out_desc->param_container, env, 
 							AXIS2_HTTP_CONNECTION_TIMEOUT);
-		if(NULL != temp)
-		{
-			AXIS2_INTF_TO_IMPL(transport_sender)->connection_timeout=atoi(temp);
-		}
+	if(NULL != temp_param)
+	{
+		temp = AXIS2_PARAM_GET_VALUE(temp_param, env);
 	}
-    
+	if(NULL != temp)
+	{
+		AXIS2_INTF_TO_IMPL(transport_sender)->connection_timeout=atoi(temp);
+	}
+
 	return AXIS2_SUCCESS;
 }
 
@@ -425,6 +446,12 @@
 	 */
 	axis2_soap_over_http_sender_t *sender = axis2_soap_over_http_sender_create
 							(env);
+	if(NULL == sender)
+	{
+		return AXIS2_FAILURE;
+	}
+	AXIS2_SOAP_OVER_HTTP_SENDER_SET_CHUNKED(sender, env, 
+						AXIS2_INTF_TO_IMPL(transport_sender)->chunked);
 	AXIS2_SOAP_OVER_HTTP_SENDER_SET_OM_OUTPUT(sender, env, om_output);
 	AXIS2_SOAP_OVER_HTTP_SENDER_SEND(sender, env, msg_ctx, out, url,
 						soap_action);

Modified: webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c?rev=374661&r1=374660&r2=374661&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c Fri Feb  3 04:57:58 2006
@@ -235,6 +235,13 @@
 						AXIS2_HTTP_HEADER_CONTENT_LENGTH, tmp_buf);
 		AXIS2_HTTP_SIMPLE_REQUEST_ADD_HEADER(request, env, http_header);
 	}
+	else
+	{
+		http_header = axis2_http_header_create(env, 
+						AXIS2_HTTP_HEADER_TRANSFER_ENCODING, 
+						AXIS2_HTTP_HEADER_TRANSFER_ENCODING_CHUNKED);
+		AXIS2_HTTP_SIMPLE_REQUEST_ADD_HEADER(request, env, http_header);
+	}
 	/* TODO we need to set the content type with soap action header for soap12*/
 	if(AXIS2_TRUE == AXIS2_MSG_CTX_GET_IS_SOAP_11(msg_ctx, env))
 	{
@@ -311,22 +318,37 @@
 	 * TODO MTOM support (MIME header)
 	 */
 	headers = AXIS2_HTTP_SIMPLE_RESPONSE_GET_HEADERS(response, env);
+	if(headers == NULL)
+	{
+		return AXIS2_SUCCESS;
+	}
 	for(i = 0; i < AXIS2_ARRAY_LIST_SIZE(headers, env); i++)
 	{
 		axis2_http_header_t *header = AXIS2_ARRAY_LIST_GET(headers, env, i);
 		axis2_char_t *name = AXIS2_HTTP_HEADER_GET_NAME((axis2_http_header_t *)
 						header, env);
-		if(NULL != name && 0 != AXIS2_STRCMP(name, 
-						AXIS2_HTTP_HEADER_CONTENT_TYPE))
+		if(NULL != name)
 		{
-			axis2_char_t *tmp_charset = NULL;
-			axis2_char_t *content_type = AXIS2_HTTP_HEADER_GET_VALUE(header, 
-						env);
-			tmp_charset = strstr(content_type, AXIS2_HTTP_CHAR_SET_ENCODING);
-			if(NULL != charset)
+			if(0 == AXIS2_STRCMP(name, AXIS2_HTTP_HEADER_TRANSFER_ENCODING) && 
+						0 == AXIS2_STRCMP(AXIS2_HTTP_HEADER_GET_VALUE(header
+						, env), AXIS2_HTTP_HEADER_TRANSFER_ENCODING_CHUNKED))
 			{
-				charset = AXIS2_STRDUP(tmp_charset, env);
-				break;
+				AXIS2_MSG_CTX_SET_PROPERTY(msg_ctx, env, 
+						AXIS2_HTTP_HEADER_TRANSFER_ENCODING, 
+						AXIS2_HTTP_HEADER_TRANSFER_ENCODING_CHUNKED,
+						AXIS2_FALSE);
+			}
+			if(0 != AXIS2_STRCMP(name, AXIS2_HTTP_HEADER_CONTENT_TYPE))
+			{
+				axis2_char_t *tmp_charset = NULL;
+				axis2_char_t *content_type = AXIS2_HTTP_HEADER_GET_VALUE(header, 
+						env);
+				tmp_charset = strstr(content_type, AXIS2_HTTP_CHAR_SET_ENCODING);
+				if(NULL != charset)
+				{
+					charset = AXIS2_STRDUP(tmp_charset, env);
+					break;
+				}
 			}
 		}
 	}

Modified: webservices/axis2/trunk/c/modules/core/transport/http/server/http_server_main.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/server/http_server_main.c?rev=374661&r1=374660&r2=374661&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/server/http_server_main.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/server/http_server_main.c Fri Feb  3 04:57:58 2006
@@ -30,7 +30,7 @@
 axis2_env_t* init_syetem_env(axis2_allocator_t *allocator)
 {
 	axis2_error_t *error = axis2_error_create(allocator);
-	axis2_log_t *log = axis2_log_create(allocator, NULL);
+	axis2_log_t *log = axis2_log_create(allocator, NULL, NULL);
 	return axis2_env_create_with_error_log(allocator, error, log);
 }
 

Modified: webservices/axis2/trunk/c/modules/xml/soap/soap_builder.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/soap/soap_builder.c?rev=374661&r1=374660&r2=374661&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/soap/soap_builder.c (original)
+++ webservices/axis2/trunk/c/modules/xml/soap/soap_builder.c Fri Feb  3 04:57:58 2006
@@ -661,7 +661,7 @@
         else if(AXIS2_STRCMP(AXIS2_SOAP12_SOAP_ENVELOPE_NAMESPACE_URI, ns_uri) == 0)
         {
             builder_impl->soap_version = AXIS2_SOAP12;          
-            AXIS2_LOG_WRITE((*env)->log,"identified soap version is soap12", AXIS2_LOG_LEVEL_DEBUG);
+            AXIS2_LOG_DEBUG((*env)->log, AXIS2_LOG_SI, "identified soap version is soap12");
             
         }
         AXIS2_SOAP_ENVELOPE_SET_SOAP_VERSION(builder_impl->soap_envelope, env, builder_impl->soap_version);        

Modified: webservices/axis2/trunk/c/samples/client/echo/echo_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/samples/client/echo/echo_client.c?rev=374661&r1=374660&r2=374661&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/client/echo/echo_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/echo/echo_client.c Fri Feb  3 04:57:58 2006
@@ -39,7 +39,7 @@
     
     allocator = axis2_allocator_init (NULL);
     error = axis2_error_create(allocator);
-    log = axis2_log_create(allocator, NULL);
+    log = axis2_log_create(allocator, NULL, "echo_client.log");
     env = axis2_env_create_with_error_log(allocator, error, log);
     env->log->level = AXIS2_LOG_LEVEL_INFO;
     axis2_error_init();

Modified: webservices/axis2/trunk/c/samples/client/math/math_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/samples/client/math/math_client.c?rev=374661&r1=374660&r2=374661&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/client/math/math_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/math/math_client.c Fri Feb  3 04:57:58 2006
@@ -43,7 +43,7 @@
     
     allocator = axis2_allocator_init (NULL);
     error = axis2_error_create(allocator);
-    log = axis2_log_create(allocator, NULL);
+    log = axis2_log_create(allocator, NULL, "math_client.log");
     env = axis2_env_create_with_error_log(allocator, error, log);
     env->log->level = AXIS2_LOG_LEVEL_INFO;
     axis2_error_init();

Modified: webservices/axis2/trunk/c/test/core/deployment/test_deployment.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/deployment/test_deployment.c?rev=374661&r1=374660&r2=374661&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/deployment/test_deployment.c (original)
+++ webservices/axis2/trunk/c/test/core/deployment/test_deployment.c Fri Feb  3 04:57:58 2006
@@ -26,7 +26,7 @@
    
 	axis2_allocator_t *allocator = axis2_allocator_init (NULL);
     axis2_error_t *error = axis2_error_create(allocator);
-    axis2_log_t *log = axis2_log_create(allocator, NULL);
+    axis2_log_t *log = axis2_log_create(allocator, NULL, "test_deployment.log");
     env = axis2_env_create_with_error_log(allocator, error, log);
     env->log->level = AXIS2_LOG_LEVEL_INFO;
     

Modified: webservices/axis2/trunk/c/test/xml/om/test_om.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/xml/om/test_om.c?rev=374661&r1=374660&r2=374661&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/xml/om/test_om.c (original)
+++ webservices/axis2/trunk/c/test/xml/om/test_om.c Fri Feb  3 04:57:58 2006
@@ -264,7 +264,7 @@
     if (argc > 1)
         file_name = argv[1];
     allocator = axis2_allocator_init (NULL);
-    axis_log = axis2_log_create(allocator, NULL);
+    axis_log = axis2_log_create(allocator, NULL, NULL);
     error = axis2_error_create(allocator);
     
     environment = axis2_env_create_with_error_log(allocator, error,  axis_log);

Modified: webservices/axis2/trunk/c/test/xml/soap/test_soap.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/xml/soap/test_soap.c?rev=374661&r1=374660&r2=374661&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/xml/soap/test_soap.c (original)
+++ webservices/axis2/trunk/c/test/xml/soap/test_soap.c Fri Feb  3 04:57:58 2006
@@ -246,7 +246,7 @@
             uri = AXIS2_SOAP12_SOAP_ENVELOPE_NAMESPACE_URI;
     }
     allocator = axis2_allocator_init (NULL);
-    log = axis2_log_create(allocator, NULL);
+    log = axis2_log_create(allocator, NULL, "test_soap.log");
     log->level = AXIS2_LOG_LEVEL_DEBUG;
     error = axis2_error_create(allocator);
     env = axis2_env_create_with_error_log(allocator, error,  log);