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/31 01:20:51 UTC
svn commit: r373643 - in /webservices/axis2/trunk/c:
modules/core/deployment/ modules/core/engine/ modules/util/
test/core/clientapi/
Author: samisa
Date: Mon Jan 30 16:20:37 2006
New Revision: 373643
URL: http://svn.apache.org/viewcvs?rev=373643&view=rev
Log:
More logging related updates to sync with new improved logging API
Modified:
webservices/axis2/trunk/c/modules/core/deployment/svc_builder.c
webservices/axis2/trunk/c/modules/core/engine/addr_disp.c
webservices/axis2/trunk/c/modules/core/engine/phase.c
webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c
webservices/axis2/trunk/c/modules/core/engine/soap_action_disp.c
webservices/axis2/trunk/c/modules/core/engine/soap_body_disp.c
webservices/axis2/trunk/c/modules/util/class_loader.c
webservices/axis2/trunk/c/modules/util/dir_handler.c
webservices/axis2/trunk/c/test/core/clientapi/echo.xml
webservices/axis2/trunk/c/test/core/clientapi/test_client.c
Modified: webservices/axis2/trunk/c/modules/core/deployment/svc_builder.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/deployment/svc_builder.c?rev=373643&r1=373642&r2=373643&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/svc_builder.c (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/svc_builder.c Mon Jan 30 16:20:37 2006
@@ -350,7 +350,7 @@
svc_folder_path = AXIS2_FILE_GET_PATH(svc_folder, env);
temp_path = AXIS2_STRACAT(svc_folder_path, AXIS2_PATH_SEP_STR, env);
dll_path = AXIS2_STRACAT(temp_path, svc_dll_name, env);
- AXIS2_LOG_INFO((*env)->log, LOG_SI, "dll path is : %s", dll_path);
+ AXIS2_LOG_DEBUG((*env)->log, LOG_SI, "dll path is : %s", dll_path);
status = AXIS2_DLL_DESC_SET_NAME(dll_desc, env, dll_path);
if(AXIS2_SUCCESS != status)
{
Modified: webservices/axis2/trunk/c/modules/core/engine/addr_disp.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/engine/addr_disp.c?rev=373643&r1=373642&r2=373643&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/addr_disp.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/addr_disp.c Mon Jan 30 16:20:37 2006
@@ -98,7 +98,7 @@
if (address)
{
axis2_char_t **url_tokens = NULL;
- AXIS2_LOG_INFO((*env)->log, LOG_SI, "Checking for service using WSA enpoint address : %s", address);
+ AXIS2_LOG_DEBUG((*env)->log, LOG_SI, "Checking for service using WSA enpoint address : %s", address);
if ( (AXIS2_STRCMP(AXIS2_WSA_ANONYMOUS_URL, address) == 0 ) ||
(AXIS2_STRCMP(AXIS2_WSA_NAMESPACE_SUBMISSION, address) == 0 ))
@@ -159,7 +159,7 @@
if (action)
{
axis2_char_t message[1024];
- AXIS2_LOG_INFO((*env)->log, LOG_SI, "Checking for Operation using WSAAction : %s", action);
+ AXIS2_LOG_DEBUG((*env)->log, LOG_SI, "Checking for operation using WSAAction : %s", action);
qname = axis2_qname_create(env, action, NULL, NULL);
return AXIS2_SVC_GET_OP_WITH_QNAME(svc, env, qname);
Modified: webservices/axis2/trunk/c/modules/core/engine/phase.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/engine/phase.c?rev=373643&r1=373642&r2=373643&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/phase.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/phase.c Mon Jan 30 16:20:37 2006
@@ -162,7 +162,7 @@
phase_impl = AXIS2_INTF_TO_IMPL(phase);
- AXIS2_LOG_INFO((*env)->log, LOG_SI, "axis2_handler_t *%s added to the index %d of the phase %s",
+ AXIS2_LOG_DEBUG((*env)->log, LOG_SI, "axis2_handler_t *%s added to the index %d of the phase %s",
AXIS2_QNAME_GET_LOCALPART(AXIS2_HANDLER_GET_NAME(handler, env), env),
index,
phase_impl->name);
@@ -192,7 +192,6 @@
axis2_msg_ctx_t *msg_ctx)
{
axis2_phase_impl_t *phase_impl = NULL;
- char message[1024];
int index = 0, size = 0;
axis2_status_t status = AXIS2_SUCCESS;
@@ -233,7 +232,7 @@
axis2_handler_t *handler = (axis2_handler_t*) AXIS2_ARRAY_LIST_GET(phase_impl->handlers, env, index);
if (handler)
{
- AXIS2_LOG_INFO((*env)->log, LOG_SI, "Invoke the handler %s within the phase %s",
+ AXIS2_LOG_DEBUG((*env)->log, LOG_SI, "Invoke the handler %s within the phase %s",
AXIS2_QNAME_GET_LOCALPART(AXIS2_HANDLER_GET_NAME(handler, env), env),
phase_impl->name);
status = AXIS2_HANDLER_INVOKE(handler, env, msg_ctx);
Modified: webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c?rev=373643&r1=373642&r2=373643&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c Mon Jan 30 16:20:37 2006
@@ -98,7 +98,7 @@
if (address)
{
axis2_char_t **url_tokens = NULL;
- AXIS2_LOG_INFO((*env)->log, LOG_SI, "Checking for service using target endpoint address : %s", address);
+ AXIS2_LOG_DEBUG((*env)->log, LOG_SI, "Checking for service using target endpoint address : %s", address);
url_tokens = axis2_parse_request_url_for_svc_and_op(env, address);
@@ -163,7 +163,7 @@
{
axis2_qname_t *op_qname = NULL;
axis2_op_t *op = NULL;
- AXIS2_LOG_INFO((*env)->log, LOG_SI, "Checking for operation using target endpoint uri fragment : %s", url_tokens[1]);
+ AXIS2_LOG_DEBUG((*env)->log, LOG_SI, "Checking for operation using target endpoint uri fragment : %s", url_tokens[1]);
op_qname = axis2_qname_create(env, url_tokens[1], NULL, NULL);
op = AXIS2_SVC_GET_OP_WITH_NAME(svc, env, AXIS2_QNAME_GET_LOCALPART(op_qname, env));
AXIS2_QNAME_FREE(op_qname, env);
Modified: webservices/axis2/trunk/c/modules/core/engine/soap_action_disp.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/engine/soap_action_disp.c?rev=373643&r1=373642&r2=373643&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/soap_action_disp.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/soap_action_disp.c Mon Jan 30 16:20:37 2006
@@ -86,7 +86,7 @@
{
AXIS2_FUNC_PARAM_CHECK(msg_ctx, env, NULL);
- AXIS2_LOG_INFO((*env)->log, LOG_SI, "Checking for Service using SOAPAction is a TODO item");
+ AXIS2_LOG_DEBUG((*env)->log, LOG_SI, "Checking for service using SOAPAction is a TODO item");
return NULL;
}
@@ -112,7 +112,7 @@
if (action)
{
axis2_op_t *op = NULL;
- AXIS2_LOG_INFO((*env)->log, LOG_SI, "Checking for operation using SOAP action : %s", action);
+ AXIS2_LOG_DEBUG((*env)->log, LOG_SI, "Checking for operation using SOAPAction : %s", action);
op = AXIS2_SVC_GET_OP_BY_SOAP_ACTION(svc, env, action);
if (!op)
Modified: webservices/axis2/trunk/c/modules/core/engine/soap_body_disp.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/engine/soap_body_disp.c?rev=373643&r1=373642&r2=373643&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/soap_body_disp.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/soap_body_disp.c Mon Jan 30 16:20:37 2006
@@ -113,7 +113,7 @@
if (uri)
{
axis2_char_t **url_tokens = NULL;
- AXIS2_LOG_INFO((*env)->log, LOG_SI, "Checking for service using SOAP message body's first child's namespace URI : %s", uri);
+ AXIS2_LOG_DEBUG((*env)->log, LOG_SI, "Checking for service using SOAP message body's first child's namespace URI : %s", uri);
url_tokens = axis2_parse_request_url_for_svc_and_op(env, uri);
@@ -189,7 +189,7 @@
{
axis2_qname_t *op_qname = NULL;
axis2_op_t *op = NULL;
- AXIS2_LOG_INFO((*env)->log, LOG_SI, "Checking for operation using SOAP message body's first child's local name : %s", element_name);
+ AXIS2_LOG_DEBUG((*env)->log, LOG_SI, "Checking for operation using SOAP message body's first child's local name : %s", element_name);
op_qname = axis2_qname_create(env, element_name, NULL, NULL);
op = AXIS2_SVC_GET_OP_WITH_NAME(svc, env, AXIS2_QNAME_GET_LOCALPART(op_qname, env));
AXIS2_QNAME_FREE(op_qname, env);
Modified: webservices/axis2/trunk/c/modules/util/class_loader.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/util/class_loader.c?rev=373643&r1=373642&r2=373643&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/util/class_loader.c (original)
+++ webservices/axis2/trunk/c/modules/util/class_loader.c Mon Jan 30 16:20:37 2006
@@ -168,42 +168,51 @@
if(AXIS2_MSG_RECV_DLL == dll_type)
{
create_funct(&msg_recv, env);
- printf("message receiver loaded successfully\n");
if(NULL == msg_recv)
{
axis2_class_loader_unload_lib(env, dll_desc);
- printf("msg_recv is null\n");
+ AXIS2_LOG_DEBUG((*env)->log, LOG_SI, "message receiver is NULL");
AXIS2_ERROR_SET((*env)->error,
AXIS2_ERROR_MSG_RECV_CREATION_FAILED,AXIS2_FAILURE);
return NULL;
}
+ else
+ {
+ AXIS2_LOG_DEBUG((*env)->log, LOG_SI, "message receiver loaded successfully");
+ }
return msg_recv;
}
if(AXIS2_TRANSPORT_RECV_DLL == dll_type)
{
create_funct(&transport_recv, env);
- printf("transport receiver loaded successfully\n");
if(NULL == transport_recv)
{
axis2_class_loader_unload_lib(env, dll_desc);
- printf("transport_recv is null\n");
+ AXIS2_LOG_DEBUG((*env)->log, LOG_SI, "transport receiver is NULL");
AXIS2_ERROR_SET((*env)->error,
AXIS2_ERROR_TRANSPORT_RECV_CREATION_FAILED,AXIS2_FAILURE);
return NULL;
}
+ else
+ {
+ AXIS2_LOG_DEBUG((*env)->log, LOG_SI, "transport receiver loaded successfully");
+ }
return transport_recv;
}
if(AXIS2_TRANSPORT_SENDER_DLL == dll_type)
{
create_funct(&transport_sender, env);
- printf("transport sender loaded successfully\n");
if(NULL == transport_sender)
{
axis2_class_loader_unload_lib(env, dll_desc);
- printf("transport_sender is null\n");
+ AXIS2_LOG_DEBUG((*env)->log, LOG_SI, "transport sender is NULL");
AXIS2_ERROR_SET((*env)->error,
AXIS2_ERROR_TRANSPORT_SENDER_CREATION_FAILED,AXIS2_FAILURE);
return NULL;
+ }
+ else
+ {
+ AXIS2_LOG_DEBUG((*env)->log, LOG_SI, "transport sender loaded successfully");
}
return transport_sender;
}
Modified: webservices/axis2/trunk/c/modules/util/dir_handler.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/util/dir_handler.c?rev=373643&r1=373642&r2=373643&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/util/dir_handler.c (original)
+++ webservices/axis2/trunk/c/modules/util/dir_handler.c Mon Jan 30 16:20:37 2006
@@ -42,7 +42,7 @@
/* If no files found, make a non-selectable menu item */
if (count <= 0)
{
- printf("No files in this directory:%s\n", pathname);
+ AXIS2_LOG_DEBUG((*env)->log, LOG_SI, "No files in this directory : %s", pathname);
return NULL;
}
@@ -115,7 +115,7 @@
/* If no files found, make a non-selectable menu item */
if (count <= 0)
{
- printf("No files in this directory:%s\n", pathname);
+ AXIS2_LOG_DEBUG((*env)->log, LOG_SI, "No files in this directory : %s", pathname);
return NULL;
}
Modified: webservices/axis2/trunk/c/test/core/clientapi/echo.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/clientapi/echo.xml?rev=373643&r1=373642&r2=373643&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/clientapi/echo.xml (original)
+++ webservices/axis2/trunk/c/test/core/clientapi/echo.xml Mon Jan 30 16:20:37 2006
@@ -1 +1 @@
-<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><echoString><text>echo5</text></echoString></soapenv:Body></soapenv:Envelope>
+<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><echo><text>echo5</text></echo></soapenv:Body></soapenv:Envelope>
Modified: webservices/axis2/trunk/c/test/core/clientapi/test_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/clientapi/test_client.c?rev=373643&r1=373642&r2=373643&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/clientapi/test_client.c (original)
+++ webservices/axis2/trunk/c/test/core/clientapi/test_client.c Mon Jan 30 16:20:37 2006
@@ -109,7 +109,7 @@
sprintf(tmpstr, "%d", strlen(buffer));
strcat(buffer_l, tmpstr);
strcat(buffer_l, "\r\n");
- strcat(buffer_l, "SOAPAction: http://localhost:9090/axis2/services/echo/echo\r\n");
+ /*strcat(buffer_l, "SOAPAction: http://localhost:9090/axis2/services/echo/echo\r\n");*/
strcat(buffer_l, "Content-Type: application/soap+xml;\r\n");
strcat(buffer_l, "\r\n");