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 da...@apache.org on 2007/04/28 07:40:15 UTC
svn commit: r533299 - in
/webservices/axis2/trunk/c/src/core/transport/http/sender: http_sender.c
http_transport_sender.c
Author: damitha
Date: Fri Apr 27 22:40:15 2007
New Revision: 533299
URL: http://svn.apache.org/viewvc?view=rev&rev=533299
Log:
added some logs
Modified:
webservices/axis2/trunk/c/src/core/transport/http/sender/http_sender.c
webservices/axis2/trunk/c/src/core/transport/http/sender/http_transport_sender.c
Modified: webservices/axis2/trunk/c/src/core/transport/http/sender/http_sender.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/sender/http_sender.c?view=diff&rev=533299&r1=533298&r2=533299
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/sender/http_sender.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/sender/http_sender.c Fri Apr 27 22:40:15 2007
@@ -201,6 +201,7 @@
body_node = axiom_soap_body_get_base_node(soap_body, env);
if (! body_node)
{
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "body_node is NULL");
return AXIS2_FAILURE;
}
data_out = axiom_node_get_first_element(body_node, env);
@@ -219,6 +220,7 @@
if (! url)
{
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "url is NULL");
return AXIS2_FAILURE;
}
@@ -231,6 +233,7 @@
sender->client = axis2_http_client_create(env, url);
if (! sender->client)
{
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sender->client is NULL");
return AXIS2_FAILURE;
}
@@ -241,16 +244,16 @@
if (!send_via_get)
{
- axutil_property_t *property = NULL;
+ /*axutil_property_t *property = NULL;*/
/* We put the client into msg_ctx so that we can free it once the processing
* is done at client side
*/
- property = axutil_property_create(env);
+ /*property = axutil_property_create(env);
axutil_property_set_scope(property, env, AXIS2_SCOPE_REQUEST);
axutil_property_set_free_func(property, env, axis2_http_client_free_void_arg);
axutil_property_set_value(property, env, sender->client);
- axis2_msg_ctx_set_property(msg_ctx, env, AXIS2_HTTP_CLIENT, property);
+ axis2_msg_ctx_set_property(msg_ctx, env, AXIS2_HTTP_CLIENT, property);*/
doing_mtom = axis2_msg_ctx_get_doing_mtom(msg_ctx, env);
@@ -522,6 +525,7 @@
if (status_code < 0)
{
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "status_code < 0");
return AXIS2_FAILURE;
}
response = axis2_http_client_get_response(sender->client, env);
@@ -548,6 +552,8 @@
if (axutil_strcmp(mep, AXIS2_MEP_URI_OUT_ONLY) == 0 ||
axutil_strcmp(mep, AXIS2_MEP_URI_ROBUST_OUT_ONLY) == 0)
{
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
+ "mep is AXIS2_MEP_URI_OUT_ONLY or AXIS2_MEP_URI_ROBUST_OUT_ONLY");
return AXIS2_FAILURE;
}
}
Modified: webservices/axis2/trunk/c/src/core/transport/http/sender/http_transport_sender.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/sender/http_transport_sender.c?view=diff&rev=533299&r1=533298&r2=533299
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/sender/http_transport_sender.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/sender/http_transport_sender.c Fri Apr 27 22:40:15 2007
@@ -244,11 +244,13 @@
AXIS2_TRUE, 0, AXIS2_XML_PARSER_TYPE_BUFFER);
if (! xml_writer)
{
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Could not create xml_writer");
return AXIS2_FAILURE;
}
om_output = axiom_output_create(env, xml_writer);
if (! om_output)
{
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Could not create om_output");
axiom_xml_writer_free(xml_writer, env);
xml_writer = NULL;
return AXIS2_FAILURE;
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org