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 2007/01/24 06:44:16 UTC
svn commit: r499268 [2/2] - in /webservices/axis2/trunk/c: axiom/include/
axiom/src/om/ axiom/src/parser/libxml2/ axiom/test/om/ include/
modules/core/clientapi/ modules/core/context/ modules/core/deployment/
modules/core/description/ modules/core/engi...
Modified: webservices/axis2/trunk/c/modules/core/deployment/conf_init.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/deployment/conf_init.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/conf_init.c (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/conf_init.c Tue Jan 23 21:44:07 2007
@@ -179,49 +179,36 @@
conf = AXIS2_CONF_CTX_GET_CONF(conf_ctx, env);
if (conf)
{
- axis2_hash_t *transport_map = NULL;
+ axis2_transport_in_desc_t **transport_in_map = NULL;
+ axis2_transport_out_desc_t **transport_out_map = NULL;
+ int i = 0;
- transport_map = AXIS2_CONF_GET_ALL_IN_TRANSPORTS(conf, env);
- if (transport_map)
+ transport_in_map = AXIS2_CONF_GET_ALL_IN_TRANSPORTS(conf, env);
+ for (i = 0; i < AXIS2_TRANSPORT_ENUM_MAX; i++)
{
- axis2_hash_index_t *hi = NULL;
- void *transport = NULL;
- for (hi = axis2_hash_first(transport_map, env);
- hi; hi = axis2_hash_next(env, hi))
+ if (transport_in_map[i])
{
- axis2_hash_this(hi, NULL, NULL, &transport);
- if (transport)
+ axis2_transport_receiver_t *listener = AXIS2_TRANSPORT_IN_DESC_GET_RECV(transport_in_map[i], env);
+ if (listener)
{
- axis2_transport_in_desc_t *transport_in = (axis2_transport_in_desc_t*)transport;
- axis2_transport_receiver_t *listener = AXIS2_TRANSPORT_IN_DESC_GET_RECV(transport_in, env);
- if (listener)
- {
- status = AXIS2_TRANSPORT_RECEIVER_INIT(listener, env, conf_ctx, transport_in);
- }
-
+ status = AXIS2_TRANSPORT_RECEIVER_INIT(listener, env, conf_ctx, transport_in_map[i]);
}
+
}
}
- transport_map = AXIS2_CONF_GET_ALL_OUT_TRANSPORTS(conf, env);
- if (transport_map)
+ transport_out_map = AXIS2_CONF_GET_ALL_OUT_TRANSPORTS(conf, env);
+ for (i = 0; i < AXIS2_TRANSPORT_ENUM_MAX; i++)
{
- axis2_hash_index_t *hi = NULL;
- void *transport = NULL;
- for (hi = axis2_hash_first(transport_map, env);
- hi; hi = axis2_hash_next(env, hi))
+ if (transport_out_map[i])
{
- axis2_hash_this(hi, NULL, NULL, &transport);
- if (transport)
+ axis2_transport_sender_t *sender =
+ AXIS2_TRANSPORT_OUT_DESC_GET_SENDER(transport_out_map[i], env);
+ if (sender)
{
- axis2_transport_out_desc_t *transport_out = (axis2_transport_out_desc_t*)transport;
- axis2_transport_sender_t *sender = AXIS2_TRANSPORT_OUT_DESC_GET_SENDER(transport_out, env);
- if (sender)
- {
- status = AXIS2_TRANSPORT_SENDER_INIT(sender, env, conf_ctx, transport_out);
- }
-
+ status = AXIS2_TRANSPORT_SENDER_INIT(sender, env, conf_ctx, transport_out_map[i]);
}
+
}
}
status = AXIS2_SUCCESS;
Modified: webservices/axis2/trunk/c/modules/core/deployment/dep_engine.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/deployment/dep_engine.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/dep_engine.c (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/dep_engine.c Tue Jan 23 21:44:07 2007
@@ -1331,16 +1331,14 @@
{
axis2_handler_desc_t *handlermd = NULL;
axis2_handler_t *handler = NULL;
- const axis2_qname_t *handler_qname = NULL;
- axis2_char_t *handler_name = NULL;
+ const axis2_string_t *handler_name = NULL;
AXIS2_HANDLER_CREATE_FUNC handler_create_func = NULL;
handlermd = AXIS2_FLOW_GET_HANDLER(flow, env, j);
- handler_qname = AXIS2_HANDLER_DESC_GET_QNAME(handlermd, env);
- handler_name = AXIS2_QNAME_GET_LOCALPART(handler_qname, env);
+ handler_name = AXIS2_HANDLER_DESC_GET_NAME(handlermd, env);
handler_create_func = axis2_hash_get(handler_create_func_map,
- handler_name, AXIS2_HASH_KEY_STRING);
- handler = handler_create_func(env, handler_qname);
+ axis2_string_get_buffer(handler_name, env), AXIS2_HASH_KEY_STRING);
+ handler = handler_create_func(env, handler_name);
AXIS2_HANDLER_INIT(handler, env, handlermd);
AXIS2_HANDLER_DESC_SET_HANDLER(handlermd, env, handler);
}
Modified: webservices/axis2/trunk/c/modules/core/deployment/desc_builder.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/deployment/desc_builder.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/desc_builder.c (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/desc_builder.c Tue Jan 23 21:44:07 2007
@@ -415,7 +415,7 @@
AXIS2_PARAM_CHECK(env->error, handler_node, NULL);
AXIS2_PARAM_CHECK(env->error, parent, NULL);
- handler_desc = axis2_handler_desc_create_with_qname(env, NULL);
+ handler_desc = axis2_handler_desc_create(env, NULL);
if (!handler_desc)
{
return NULL;
@@ -439,14 +439,14 @@
}
else
{
- axis2_qname_t *handler_qname = NULL;
+ axis2_string_t *handler_name = NULL;
axis2_char_t *value = NULL;
value = AXIOM_ATTRIBUTE_GET_VALUE(name_attrib, env);
- handler_qname = axis2_qname_create(env, value, NULL, NULL);
- status = AXIS2_HANDLER_DESC_SET_QNAME(handler_desc, env, handler_qname);
- if (handler_qname)
- AXIS2_QNAME_FREE(handler_qname, env);
+ handler_name = axis2_string_create(env, value);
+ status = AXIS2_HANDLER_DESC_SET_NAME(handler_desc, env, handler_name);
+ if (handler_name)
+ axis2_string_free(handler_name, env);
if (AXIS2_SUCCESS != status)
{
Modified: webservices/axis2/trunk/c/modules/core/description/handler_desc.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/description/handler_desc.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/handler_desc.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/handler_desc.c Tue Jan 23 21:44:07 2007
@@ -26,12 +26,12 @@
axis2_handler_desc_t handler_desc;
/** name */
- axis2_qname_t *qname;
+ axis2_string_t *name;
/** phase rules */
axis2_phase_rule_t *rules;
/** handler represented by meta information*/
axis2_handler_t *handler;
- /** class qname */
+ /** class name */
axis2_char_t *class_name;
/** parent param container */
axis2_param_container_t *parent;
@@ -43,16 +43,16 @@
#define AXIS2_INTF_TO_IMPL(handler_desc) \
((axis2_handler_desc_impl_t *)handler_desc)
-const axis2_qname_t *AXIS2_CALL
-axis2_handler_desc_get_qname(
+const axis2_string_t *AXIS2_CALL
+axis2_handler_desc_get_name(
const axis2_handler_desc_t *handler_desc,
const axis2_env_t *env);
axis2_status_t AXIS2_CALL
-axis2_handler_desc_set_qname(
+axis2_handler_desc_set_name(
axis2_handler_desc_t *handler_desc,
const axis2_env_t *env,
- const axis2_qname_t *qname);
+ axis2_string_t *name);
axis2_phase_rule_t *AXIS2_CALL
axis2_handler_desc_get_rules(
@@ -127,9 +127,9 @@
const axis2_env_t *env);
AXIS2_EXTERN axis2_handler_desc_t *AXIS2_CALL
-axis2_handler_desc_create_with_qname(
+axis2_handler_desc_create(
const axis2_env_t *env,
- const axis2_qname_t *qname)
+ axis2_string_t *name)
{
axis2_handler_desc_impl_t *handler_desc_impl = NULL;
@@ -144,7 +144,7 @@
}
handler_desc_impl->handler_desc.param_container = NULL;
- handler_desc_impl->qname = NULL;
+ handler_desc_impl->name = NULL;
handler_desc_impl->rules = NULL;
handler_desc_impl->handler = NULL;
handler_desc_impl->class_name = NULL;
@@ -168,9 +168,9 @@
return NULL;
}
- if (qname)
+ if (name)
{
- handler_desc_impl->qname = AXIS2_QNAME_CLONE((axis2_qname_t *)qname, env);
+ handler_desc_impl->name = axis2_string_clone(name, env);
}
/* initialize ops */
@@ -184,8 +184,8 @@
return NULL;
}
- handler_desc_impl->handler_desc.ops->get_qname = axis2_handler_desc_get_qname;
- handler_desc_impl->handler_desc.ops->set_qname = axis2_handler_desc_set_qname;
+ handler_desc_impl->handler_desc.ops->get_name = axis2_handler_desc_get_name;
+ handler_desc_impl->handler_desc.ops->set_name = axis2_handler_desc_set_name;
handler_desc_impl->handler_desc.ops->get_rules = axis2_handler_desc_get_rules;
handler_desc_impl->handler_desc.ops->set_rules = axis2_handler_desc_set_rules;
handler_desc_impl->handler_desc.ops->get_param = axis2_handler_desc_get_param;
@@ -203,23 +203,33 @@
return &(handler_desc_impl->handler_desc);
}
-const axis2_qname_t *AXIS2_CALL
-axis2_handler_desc_get_qname(
+const axis2_string_t *AXIS2_CALL
+axis2_handler_desc_get_name(
const axis2_handler_desc_t *handler_desc,
const axis2_env_t *env)
{
AXIS2_ENV_CHECK(env, NULL);
- return AXIS2_INTF_TO_IMPL(handler_desc)->qname;
+ return AXIS2_INTF_TO_IMPL(handler_desc)->name;
}
axis2_status_t AXIS2_CALL
-axis2_handler_desc_set_qname(
+axis2_handler_desc_set_name(
axis2_handler_desc_t *handler_desc,
const axis2_env_t *env,
- const axis2_qname_t *qname)
+ axis2_string_t *name)
{
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
- AXIS2_INTF_TO_IMPL(handler_desc)->qname = AXIS2_QNAME_CLONE((axis2_qname_t *)qname, env);
+ if (AXIS2_INTF_TO_IMPL(handler_desc)->name)
+ {
+ axis2_string_free(AXIS2_INTF_TO_IMPL(handler_desc)->name, env);
+ AXIS2_INTF_TO_IMPL(handler_desc)->name = NULL;
+ }
+
+ if (name)
+ {
+ AXIS2_INTF_TO_IMPL(handler_desc)->name = axis2_string_clone(name, env);
+ }
+
return AXIS2_SUCCESS;
}
@@ -455,10 +465,10 @@
handler_desc_impl->handler_desc.param_container = NULL;
}
- if (handler_desc_impl->qname)
+ if (handler_desc_impl->name)
{
- AXIS2_QNAME_FREE(handler_desc_impl->qname, env);
- handler_desc_impl->qname = NULL;
+ axis2_string_free(handler_desc_impl->name, env);
+ handler_desc_impl->name = NULL;
}
if (handler_desc_impl->rules)
Modified: webservices/axis2/trunk/c/modules/core/description/transport_in_desc.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/description/transport_in_desc.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/transport_in_desc.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/transport_in_desc.c Tue Jan 23 21:44:07 2007
@@ -23,7 +23,7 @@
axis2_transport_in_desc_t transport_in;
axis2_flow_t *in_flow;
axis2_flow_t *fault_in_flow;
- axis2_qname_t *qname;
+ AXIS2_TRANSPORT_ENUMS trans_enum;
/**
* transport receiver will have a shallow copy, but will be freed by
* free function.
@@ -41,16 +41,16 @@
axis2_transport_in_desc_t *transport_in,
const axis2_env_t *env);
-const axis2_qname_t *AXIS2_CALL
-axis2_transport_in_desc_get_qname(
+AXIS2_TRANSPORT_ENUMS AXIS2_CALL
+axis2_transport_in_desc_get_enum(
const axis2_transport_in_desc_t *transport_in,
const axis2_env_t *env);
axis2_status_t AXIS2_CALL
-axis2_transport_in_desc_set_qname(
+axis2_transport_in_desc_set_enum(
axis2_transport_in_desc_t *transport_in,
const axis2_env_t *env,
- const axis2_qname_t *qname);
+ const AXIS2_TRANSPORT_ENUMS trans_enum);
axis2_flow_t *AXIS2_CALL
axis2_transport_in_desc_get_in_flow(
@@ -128,14 +128,13 @@
AXIS2_EXTERN axis2_transport_in_desc_t *AXIS2_CALL
-axis2_transport_in_desc_create_with_qname(
+axis2_transport_in_desc_create(
const axis2_env_t *env,
- const axis2_qname_t *qname)
+ const AXIS2_TRANSPORT_ENUMS trans_enum)
{
axis2_transport_in_desc_impl_t *transport_in_impl = NULL;
AXIS2_ENV_CHECK(env, NULL);
- AXIS2_PARAM_CHECK(env->error, qname, NULL);
transport_in_impl = (axis2_transport_in_desc_impl_t *) AXIS2_MALLOC(env->
allocator, sizeof(axis2_transport_in_desc_impl_t));
@@ -146,7 +145,7 @@
return NULL;
}
- transport_in_impl->qname = NULL;
+ transport_in_impl->trans_enum = trans_enum;
transport_in_impl->in_phase = NULL;
transport_in_impl->fault_phase = NULL;
transport_in_impl->in_flow = NULL;
@@ -163,8 +162,6 @@
return NULL;
}
- transport_in_impl->qname = AXIS2_QNAME_CLONE((axis2_qname_t *)qname, env);
-
transport_in_impl->transport_in.ops =
AXIS2_MALLOC(env->allocator, sizeof(axis2_transport_in_desc_ops_t));
if (NULL == transport_in_impl->transport_in.ops)
@@ -178,10 +175,10 @@
transport_in_impl->transport_in.ops->free_void_arg =
axis2_transport_in_desc_free_void_arg;
- transport_in_impl->transport_in.ops->get_qname =
- axis2_transport_in_desc_get_qname;
- transport_in_impl->transport_in.ops->set_qname =
- axis2_transport_in_desc_set_qname;
+ transport_in_impl->transport_in.ops->get_enum =
+ axis2_transport_in_desc_get_enum;
+ transport_in_impl->transport_in.ops->set_enum =
+ axis2_transport_in_desc_set_enum;
transport_in_impl->transport_in.ops->get_in_flow =
axis2_transport_in_desc_get_in_flow;
transport_in_impl->transport_in.ops->set_in_flow =
@@ -242,12 +239,6 @@
transport_in->param_container = NULL;
}
- if (transport_in_impl->qname)
- {
- AXIS2_QNAME_FREE(transport_in_impl->qname, env);
- transport_in_impl->qname = NULL;
- }
-
if (transport_in_impl->in_flow)
{
AXIS2_FLOW_FREE(transport_in_impl->in_flow, env);
@@ -290,34 +281,28 @@
return axis2_transport_in_desc_free(transport_in_l, env);
}
-const axis2_qname_t *AXIS2_CALL
-axis2_transport_in_desc_get_qname(
+AXIS2_TRANSPORT_ENUMS AXIS2_CALL
+axis2_transport_in_desc_get_enum(
const axis2_transport_in_desc_t *transport_in,
const axis2_env_t *env)
{
AXIS2_ENV_CHECK(env, NULL);
- return AXIS2_INTF_TO_IMPL(transport_in)->qname;
+ return AXIS2_INTF_TO_IMPL(transport_in)->trans_enum;
}
axis2_status_t AXIS2_CALL
-axis2_transport_in_desc_set_qname(
+axis2_transport_in_desc_set_enum(
axis2_transport_in_desc_t *transport_in,
const axis2_env_t *env,
- const axis2_qname_t *qname)
+ const AXIS2_TRANSPORT_ENUMS trans_enum)
{
axis2_transport_in_desc_impl_t *transport_in_impl = NULL;
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
- AXIS2_PARAM_CHECK(env->error, qname, AXIS2_FAILURE);
transport_in_impl = AXIS2_INTF_TO_IMPL(transport_in);
- if (transport_in_impl->qname)
- {
- AXIS2_QNAME_FREE(transport_in_impl->qname, env);
- transport_in_impl->qname = NULL;
- }
- transport_in_impl->qname = AXIS2_QNAME_CLONE((axis2_qname_t *)qname, env);
+ transport_in_impl->trans_enum = trans_enum;
return AXIS2_SUCCESS;
}
Modified: webservices/axis2/trunk/c/modules/core/description/transport_out_desc.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/description/transport_out_desc.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/transport_out_desc.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/transport_out_desc.c Tue Jan 23 21:44:07 2007
@@ -22,7 +22,7 @@
axis2_transport_out_desc_t transport_out;
axis2_flow_t *out_flow;
axis2_flow_t *fault_out_flow;
- axis2_qname_t *qname;
+ AXIS2_TRANSPORT_ENUMS trans_enum;
axis2_transport_sender_t *sender;
axis2_phase_t *out_phase;
axis2_phase_t *fault_phase;
@@ -36,16 +36,16 @@
axis2_transport_out_desc_t *transport_out,
const axis2_env_t *env);
-const axis2_qname_t *AXIS2_CALL
-axis2_transport_out_desc_get_qname(
+AXIS2_TRANSPORT_ENUMS AXIS2_CALL
+axis2_transport_out_desc_get_enum(
const axis2_transport_out_desc_t *transport_out,
const axis2_env_t *env);
axis2_status_t AXIS2_CALL
-axis2_transport_out_desc_set_qname(
+axis2_transport_out_desc_set_enum(
axis2_transport_out_desc_t *transport_out,
const axis2_env_t *env,
- const axis2_qname_t *qname);
+ const AXIS2_TRANSPORT_ENUMS trans_enum);
axis2_flow_t *AXIS2_CALL
axis2_transport_out_desc_get_out_flow(
@@ -122,14 +122,13 @@
const axis2_char_t *param_name);
AXIS2_EXTERN axis2_transport_out_desc_t *AXIS2_CALL
-axis2_transport_out_desc_create_with_qname(
+axis2_transport_out_desc_create(
const axis2_env_t *env,
- const axis2_qname_t *qname)
+ const AXIS2_TRANSPORT_ENUMS trans_enum)
{
axis2_transport_out_desc_impl_t *transport_out_impl = NULL;
AXIS2_ENV_CHECK(env, NULL);
- AXIS2_PARAM_CHECK(env->error, qname, NULL);
transport_out_impl = (axis2_transport_out_desc_impl_t *) AXIS2_MALLOC(env->
allocator, sizeof(axis2_transport_out_desc_impl_t));
@@ -140,7 +139,7 @@
return NULL;
}
- transport_out_impl->qname = NULL;
+ transport_out_impl->trans_enum = trans_enum;
transport_out_impl->out_phase = NULL;
transport_out_impl->fault_phase = NULL;
transport_out_impl->out_flow = NULL;
@@ -157,8 +156,6 @@
return NULL;
}
- transport_out_impl->qname = AXIS2_QNAME_CLONE((axis2_qname_t *)qname, env);
-
transport_out_impl->transport_out.ops =
AXIS2_MALLOC(env->allocator, sizeof(axis2_transport_out_desc_ops_t));
if (NULL == transport_out_impl->transport_out.ops)
@@ -172,10 +169,10 @@
transport_out_impl->transport_out.ops->free_void_arg =
axis2_transport_out_desc_free_void_arg;
- transport_out_impl->transport_out.ops->get_qname =
- axis2_transport_out_desc_get_qname;
- transport_out_impl->transport_out.ops->set_qname =
- axis2_transport_out_desc_set_qname;
+ transport_out_impl->transport_out.ops->get_enum =
+ axis2_transport_out_desc_get_enum;
+ transport_out_impl->transport_out.ops->set_enum =
+ axis2_transport_out_desc_set_enum;
transport_out_impl->transport_out.ops->get_out_flow =
axis2_transport_out_desc_get_out_flow;
transport_out_impl->transport_out.ops->set_out_flow =
@@ -235,12 +232,6 @@
transport_out_impl->transport_out.param_container = NULL;
}
- if (transport_out_impl->qname)
- {
- AXIS2_QNAME_FREE(transport_out_impl->qname, env);
- transport_out_impl->qname = NULL;
- }
-
if (transport_out_impl->out_flow)
{
AXIS2_FLOW_FREE(transport_out_impl->out_flow, env);
@@ -283,31 +274,24 @@
return axis2_transport_out_desc_free(transport_out_l, env);
}
-const axis2_qname_t *AXIS2_CALL
-axis2_transport_out_desc_get_qname(
+AXIS2_TRANSPORT_ENUMS AXIS2_CALL
+axis2_transport_out_desc_get_enum(
const axis2_transport_out_desc_t *transport_out,
const axis2_env_t *env)
{
AXIS2_ENV_CHECK(env, NULL);
- return AXIS2_INTF_TO_IMPL(transport_out)->qname;
+ return AXIS2_INTF_TO_IMPL(transport_out)->trans_enum;
}
axis2_status_t AXIS2_CALL
-axis2_transport_out_desc_set_qname(
+axis2_transport_out_desc_set_enum(
axis2_transport_out_desc_t *transport_out,
const axis2_env_t *env,
- const axis2_qname_t *qname)
+ const AXIS2_TRANSPORT_ENUMS trans_enum)
{
axis2_transport_out_desc_impl_t *transport_out_impl = AXIS2_INTF_TO_IMPL(transport_out);
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
- AXIS2_PARAM_CHECK(env->error, qname, AXIS2_FAILURE);
-
- if (transport_out_impl->qname)
- {
- AXIS2_QNAME_FREE(transport_out_impl->qname, env);
- transport_out_impl->qname = NULL;
- }
- transport_out_impl->qname = AXIS2_QNAME_CLONE((axis2_qname_t *)qname, env);
+ transport_out_impl->trans_enum = trans_enum;
return AXIS2_SUCCESS;
}
Modified: webservices/axis2/trunk/c/modules/core/engine/addr_disp.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/engine/addr_disp.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/addr_disp.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/addr_disp.c Tue Jan 23 21:44:07 2007
@@ -17,7 +17,7 @@
#include <axis2_disp.h>
#include <axis2_handler_desc.h>
-#include <axis2_qname.h>
+#include <axis2_string.h>
#include <axis2_relates_to.h>
#include <axis2_svc.h>
#include <axis2_const.h>
@@ -25,7 +25,7 @@
#include <axis2_addr.h>
#include <axis2_utils.h>
-#define AXIS2_ADDR_DISP_NAME "addressing_based_dispatcher"
+const axis2_char_t *AXIS2_ADDR_DISP_NAME = "addressing_based_dispatcher";
static axis2_status_t AXIS2_CALL
axis2_addr_disp_invoke(
@@ -50,24 +50,22 @@
{
axis2_disp_t *disp = NULL;
axis2_handler_t *handler = NULL;
- axis2_qname_t *qname = NULL;
+ axis2_string_t *name = NULL;
AXIS2_ENV_CHECK(env, NULL);
- qname = axis2_qname_create(env, AXIS2_ADDR_DISP_NAME,
- AXIS2_DISP_NAMESPACE,
- NULL);
- if (!qname)
+ name = axis2_string_create_const(env, (axis2_char_t**)&AXIS2_ADDR_DISP_NAME);
+ if (!name)
{
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
}
- disp = axis2_disp_create(env, qname);
+ disp = axis2_disp_create(env, name);
if (!disp)
{
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
- AXIS2_QNAME_FREE(qname, env);
+ axis2_string_free(name, env);
return NULL;
}
@@ -75,13 +73,13 @@
if (!handler)
{
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_HANDLER_STATE, AXIS2_FAILURE);
- AXIS2_QNAME_FREE(qname, env);
+ axis2_string_free(name, env);
return NULL;
}
handler->ops->invoke = axis2_addr_disp_invoke;
- AXIS2_QNAME_FREE(qname, env);
+ axis2_string_free(name, env);
return disp;
}
@@ -163,7 +161,7 @@
axis2_svc_t *svc)
{
const axis2_char_t *action = NULL;
- axis2_qname_t *qname = NULL;
+ axis2_qname_t *name = NULL;
axis2_op_t *op = NULL;
AXIS2_ENV_CHECK(env, NULL);
@@ -176,12 +174,12 @@
AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
"Checking for operation using WSA Action : %s", action);
- qname = axis2_qname_create(env, action, NULL, NULL);
- op = AXIS2_SVC_GET_OP_WITH_QNAME(svc, env, qname);
+ name = axis2_qname_create(env, action, NULL, NULL);
+ op = AXIS2_SVC_GET_OP_WITH_QNAME(svc, env, name);
if (op)
AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
"Operation found using WSA Action");
- AXIS2_QNAME_FREE(qname, env);
+ axis2_qname_free(name, env);
}
return op;
Modified: webservices/axis2/trunk/c/modules/core/engine/conf.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/engine/conf.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/conf.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/conf.c Tue Jan 23 21:44:07 2007
@@ -34,8 +34,8 @@
{
axis2_conf_t conf;
axis2_hash_t *svc_grps;
- axis2_hash_t *transports_in;
- axis2_hash_t *transports_out;
+ axis2_transport_in_desc_t *transports_in[AXIS2_TRANSPORT_ENUM_MAX];
+ axis2_transport_out_desc_t *transports_out[AXIS2_TRANSPORT_ENUM_MAX];
/**
* Field modules
*/
@@ -150,32 +150,34 @@
axis2_conf_get_transport_in(
const axis2_conf_t *conf,
const axis2_env_t *env,
- const axis2_qname_t *qname);
+ const AXIS2_TRANSPORT_ENUMS qname);
axis2_status_t AXIS2_CALL
axis2_conf_add_transport_in(
axis2_conf_t *conf,
const axis2_env_t *env,
- axis2_transport_in_desc_t *transport);
+ axis2_transport_in_desc_t *transport,
+ const AXIS2_TRANSPORT_ENUMS trans_enum);
axis2_transport_out_desc_t *AXIS2_CALL
axis2_conf_get_transport_out(
const axis2_conf_t *conf,
const axis2_env_t *env,
- const axis2_qname_t *qname);
+ const AXIS2_TRANSPORT_ENUMS trans_enum);
axis2_status_t AXIS2_CALL
axis2_conf_add_transport_out(
axis2_conf_t *conf,
const axis2_env_t *env,
- axis2_transport_out_desc_t *transport);
+ axis2_transport_out_desc_t *transport,
+ const AXIS2_TRANSPORT_ENUMS trans_enum);
-axis2_hash_t *AXIS2_CALL
+axis2_transport_in_desc_t **AXIS2_CALL
axis2_conf_get_all_in_transports(
const axis2_conf_t *conf,
const axis2_env_t *env);
-axis2_hash_t *AXIS2_CALL
+axis2_transport_out_desc_t **AXIS2_CALL
axis2_conf_get_all_out_transports(
const axis2_conf_t *conf,
const axis2_env_t *env);
@@ -387,11 +389,10 @@
config_impl->dep_engine = NULL;
config_impl->all_modules = NULL;
config_impl->name_to_version_map = NULL;
- config_impl->transports_in = NULL;
- config_impl->transports_out = NULL;
config_impl->handlers = NULL;
config_impl->conf.ops = NULL;
config_impl->enable_mtom = AXIS2_FALSE;
+ int i = 0;
config_impl->conf.param_container = (axis2_param_container_t *)
axis2_param_container_create(env);
@@ -410,20 +411,14 @@
return NULL;
}
- config_impl->transports_in = axis2_hash_make(env);
- if (NULL == config_impl->transports_in)
+ for (i = 0; i < AXIS2_TRANSPORT_ENUM_MAX; i++)
{
- axis2_conf_free(&(config_impl->conf), env);
- AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
- return NULL;
+ config_impl->transports_in[i] = NULL;
}
- config_impl->transports_out = axis2_hash_make(env);
- if (NULL == config_impl->transports_out)
+ for (i = 0; i < AXIS2_TRANSPORT_ENUM_MAX; i++)
{
- axis2_conf_free(&(config_impl->conf), env);
- AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
- return NULL;
+ config_impl->transports_out[i] = NULL;
}
config_impl->engaged_modules = axis2_array_list_create(env, 0);
@@ -653,6 +648,7 @@
{
axis2_conf_impl_t *config_impl = NULL;
axis2_status_t status = AXIS2_SUCCESS;
+ int i = 0;
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
config_impl = AXIS2_INTF_TO_IMPL(conf);
@@ -684,49 +680,22 @@
config_impl->svc_grps = NULL;
}
- if (config_impl->transports_in)
+ for (i = 0; i < AXIS2_TRANSPORT_ENUM_MAX; i++)
{
- axis2_hash_index_t *hi = NULL;
- void *val = NULL;
- for (hi = axis2_hash_first(config_impl->transports_in, env); hi;
- hi = axis2_hash_next(env, hi))
+ if (config_impl->transports_in[i])
{
- axis2_transport_in_desc_t * transport_in = NULL;
-
- axis2_hash_this(hi, NULL, NULL, &val);
- transport_in = (axis2_transport_in_desc_t *) val;
- if (transport_in)
- {
- AXIS2_TRANSPORT_IN_DESC_FREE(transport_in, env);
- transport_in = NULL;
- }
- val = NULL;
+ AXIS2_TRANSPORT_IN_DESC_FREE(config_impl->transports_in[i], env);
+ config_impl->transports_in[i] = NULL;
}
- axis2_hash_free(config_impl->transports_in, env);
- config_impl->transports_in = NULL;
}
-
- if (config_impl->transports_out)
+
+ for (i = 0; i < AXIS2_TRANSPORT_ENUM_MAX; i++)
{
- axis2_hash_index_t *hi = NULL;
- void *val = NULL;
- for (hi = axis2_hash_first(config_impl->transports_out, env); hi;
- hi = axis2_hash_next(env, hi))
+ if (config_impl->transports_out[i])
{
- axis2_transport_out_desc_t * transport_out = NULL;
- axis2_hash_this(hi, NULL, NULL, &val);
- transport_out = (axis2_transport_out_desc_t *) val;
- if (transport_out)
- {
- AXIS2_TRANSPORT_OUT_DESC_FREE(transport_out, env);
- transport_out = NULL;
- }
-
- val = NULL;
-
+ AXIS2_TRANSPORT_OUT_DESC_FREE(config_impl->transports_out[i], env);
+ config_impl->transports_out[i] = NULL;
}
- axis2_hash_free(config_impl->transports_out, env);
- config_impl->transports_out = NULL;
}
if (config_impl->dep_engine)
@@ -1239,45 +1208,31 @@
axis2_conf_get_transport_in(
const axis2_conf_t *conf,
const axis2_env_t *env,
- const axis2_qname_t *qname)
+ const AXIS2_TRANSPORT_ENUMS trans_enum)
{
axis2_conf_impl_t *config_impl = NULL;
AXIS2_ENV_CHECK(env, NULL);
- AXIS2_PARAM_CHECK(env->error, qname, NULL);
config_impl = AXIS2_INTF_TO_IMPL(conf);
- return (axis2_transport_in_desc_t *) axis2_hash_get(config_impl->
- transports_in, AXIS2_QNAME_TO_STRING((axis2_qname_t *)qname, env), AXIS2_HASH_KEY_STRING);
+ return (axis2_transport_in_desc_t *) config_impl->transports_in[trans_enum];
}
axis2_status_t AXIS2_CALL
axis2_conf_add_transport_in(
axis2_conf_t *conf,
const axis2_env_t *env,
- axis2_transport_in_desc_t *transport)
+ axis2_transport_in_desc_t *transport,
+ const AXIS2_TRANSPORT_ENUMS trans_enum)
{
axis2_conf_impl_t *config_impl = NULL;
- const axis2_qname_t *qname = NULL;
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
AXIS2_PARAM_CHECK(env->error, transport, AXIS2_FAILURE);
config_impl = AXIS2_INTF_TO_IMPL(conf);
- if (!config_impl->transports_in)
- {
- config_impl->transports_in = (axis2_hash_t *) axis2_hash_make(env);
- if (!config_impl->transports_in)
- return AXIS2_FAILURE;
- }
- qname = AXIS2_TRANSPORT_IN_DESC_GET_QNAME(transport, env);
- if (!qname)
- return AXIS2_FAILURE;
-
- axis2_hash_set(config_impl->transports_in,
- AXIS2_QNAME_TO_STRING((axis2_qname_t *)qname, env), AXIS2_HASH_KEY_STRING,
- transport);
+ config_impl->transports_in[trans_enum] = transport;
return AXIS2_SUCCESS;
@@ -1287,50 +1242,36 @@
axis2_conf_get_transport_out(
const axis2_conf_t *conf,
const axis2_env_t *env,
- const axis2_qname_t *qname)
+ const AXIS2_TRANSPORT_ENUMS trans_enum)
{
axis2_conf_impl_t *config_impl = NULL;
AXIS2_ENV_CHECK(env, NULL);
- AXIS2_PARAM_CHECK(env->error, qname, NULL);
config_impl = AXIS2_INTF_TO_IMPL(conf);
- return (axis2_transport_out_desc_t *) axis2_hash_get(config_impl->
- transports_out, AXIS2_QNAME_TO_STRING((axis2_qname_t *)qname, env), AXIS2_HASH_KEY_STRING);
+ return config_impl->transports_out[trans_enum];
}
axis2_status_t AXIS2_CALL
axis2_conf_add_transport_out(
axis2_conf_t *conf,
const axis2_env_t *env,
- axis2_transport_out_desc_t *transport)
+ axis2_transport_out_desc_t *transport,
+ const AXIS2_TRANSPORT_ENUMS trans_enum)
{
axis2_conf_impl_t *config_impl = NULL;
- const axis2_qname_t *qname = NULL;
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
AXIS2_PARAM_CHECK(env->error, transport, AXIS2_FAILURE);
config_impl = AXIS2_INTF_TO_IMPL(conf);
- if (!config_impl->transports_out)
- {
- config_impl->transports_out = axis2_hash_make(env);
- if (!config_impl->transports_out)
- return AXIS2_FAILURE;
- }
+ config_impl->transports_out[trans_enum] = transport;
- qname = AXIS2_TRANSPORT_OUT_DESC_GET_QNAME(transport, env);
- if (!qname)
- return AXIS2_FAILURE;
- axis2_hash_set(config_impl->transports_out,
- AXIS2_QNAME_TO_STRING((axis2_qname_t *)qname, env),
- AXIS2_HASH_KEY_STRING, transport);
return AXIS2_SUCCESS;
-
}
-axis2_hash_t *AXIS2_CALL
+axis2_transport_in_desc_t ** AXIS2_CALL
axis2_conf_get_all_in_transports(
const axis2_conf_t *conf,
const axis2_env_t *env)
@@ -1431,7 +1372,7 @@
return AXIS2_INTF_TO_IMPL(conf)->out_fault_phases;
}
-axis2_hash_t *AXIS2_CALL
+axis2_transport_out_desc_t **AXIS2_CALL
axis2_conf_get_all_out_transports(
const axis2_conf_t *conf,
const axis2_env_t *env)
Modified: webservices/axis2/trunk/c/modules/core/engine/ctx_handler.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/engine/ctx_handler.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/ctx_handler.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/ctx_handler.c Tue Jan 23 21:44:07 2007
@@ -17,10 +17,11 @@
#include <axis2_handler_desc.h>
-#include <axis2_qname.h>
+#include <axis2_string.h>
#include <axis2_svc.h>
#include <axis2_conf_ctx.h>
+const axis2_char_t *AXIS2_CTX_HANDLER_NAME = "context_handler";
/**
* By the time the control comes to this handler, the dispatching must have
@@ -38,18 +39,18 @@
axis2_handler_t *AXIS2_CALL
axis2_ctx_handler_create(
const axis2_env_t *env,
- const axis2_qname_t *qname)
+ const axis2_string_t *string)
{
axis2_handler_t *handler = NULL;
axis2_handler_desc_t *handler_desc = NULL;
- axis2_qname_t *handler_qname = NULL;
+ axis2_string_t *handler_string = NULL;
AXIS2_ENV_CHECK(env, NULL);
- if (qname)
+ if (string)
{
- handler_qname = AXIS2_QNAME_CLONE((axis2_qname_t *)qname, env);
- if (!(handler_qname))
+ handler_string = axis2_string_clone((axis2_string_t *)string, env);
+ if (!(handler_string))
{
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
@@ -57,11 +58,9 @@
}
else
{
- /* create default qname */
- handler_qname = axis2_qname_create(env, "context_handler",
- "http://axis.ws.apache.org",
- NULL);
- if (!handler_qname)
+ /* create default string */
+ handler_string = axis2_string_create_const(env, (axis2_char_t**)&AXIS2_CTX_HANDLER_NAME);
+ if (!handler_string)
{
return NULL;
}
@@ -74,8 +73,8 @@
}
/* handler desc of base handler */
- handler_desc = axis2_handler_desc_create_with_qname(env, handler_qname);
- AXIS2_QNAME_FREE(handler_qname, env);
+ handler_desc = axis2_handler_desc_create(env, handler_string);
+ axis2_string_free(handler_string, env);
if (!handler_desc)
{
AXIS2_HANDLER_FREE(handler, env);
Modified: webservices/axis2/trunk/c/modules/core/engine/disp.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/engine/disp.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/disp.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/disp.c Tue Jan 23 21:44:07 2007
@@ -17,12 +17,14 @@
#include <axis2_disp.h>
#include <axis2_handler_desc.h>
-#include <axis2_qname.h>
+#include <axis2_string.h>
#include <axis2_relates_to.h>
#include <axis2_svc.h>
#include <axis2_const.h>
#include <axis2_msg_ctx.h>
+const axis2_char_t *AXIS2_DISP_NAME = "abstract_dispatcher";
+
typedef struct axis2_disp_impl
{
/** phase */
@@ -30,7 +32,7 @@
/** base class, inherits from handler */
axis2_handler_t *base;
/** phase name */
- axis2_qname_t *qname;
+ axis2_string_t *name;
/** derived struct */
void* derived; /* deep copy */
int derived_type;
@@ -45,16 +47,16 @@
const axis2_disp_t *disp,
const axis2_env_t *env);
-axis2_qname_t *AXIS2_CALL
-axis2_disp_get_qname(
+axis2_string_t *AXIS2_CALL
+axis2_disp_get_name(
const axis2_disp_t *disp,
const axis2_env_t *env);
axis2_status_t AXIS2_CALL
-axis2_disp_set_qname(
+axis2_disp_set_name(
struct axis2_disp *disp,
const axis2_env_t *env,
- axis2_qname_t *qname);
+ axis2_string_t *name);
axis2_status_t AXIS2_CALL
@@ -78,7 +80,7 @@
axis2_disp_t *AXIS2_CALL
axis2_disp_create(
const axis2_env_t *env,
- const axis2_qname_t *qname)
+ const axis2_string_t *name)
{
axis2_disp_impl_t *disp_impl = NULL;
axis2_handler_desc_t *handler_desc = NULL;
@@ -92,13 +94,13 @@
return NULL;
}
- disp_impl->qname = NULL;
+ disp_impl->name = NULL;
disp_impl->base = NULL;
- if (qname)
+ if (name)
{
- disp_impl->qname = AXIS2_QNAME_CLONE((axis2_qname_t *)qname, env);
- if (!(disp_impl->qname))
+ disp_impl->name = axis2_string_clone((axis2_string_t *)name, env);
+ if (!(disp_impl->name))
{
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
axis2_disp_free(&(disp_impl->disp), env);
@@ -107,11 +109,9 @@
}
else
{
- /* create default qname */
- disp_impl->qname = axis2_qname_create(env, "abstract_dispatcher",
- "http://axis.ws.apache.org",
- NULL);
- if (!(disp_impl->qname))
+ /* create default name */
+ disp_impl->name = axis2_string_create_const(env, (axis2_char_t**)&AXIS2_DISP_NAME);
+ if (!(disp_impl->name))
{
axis2_disp_free(&(disp_impl->disp), env);
return NULL;
@@ -126,7 +126,7 @@
}
/* handler desc of base handler */
- handler_desc = axis2_handler_desc_create_with_qname(env, disp_impl->qname);
+ handler_desc = axis2_handler_desc_create(env, disp_impl->name);
if (!handler_desc)
{
axis2_disp_free(&(disp_impl->disp), env);
@@ -150,8 +150,8 @@
}
disp_impl->disp.ops->get_base = axis2_disp_get_base;
- disp_impl->disp.ops->get_qname = axis2_disp_get_qname;
- disp_impl->disp.ops->set_qname = axis2_disp_set_qname;
+ disp_impl->disp.ops->get_name = axis2_disp_get_name;
+ disp_impl->disp.ops->set_name = axis2_disp_set_name;
disp_impl->disp.ops->free = axis2_disp_free;
disp_impl->disp.ops->find_svc = axis2_disp_find_svc;
disp_impl->disp.ops->find_op = axis2_disp_find_op;
@@ -168,20 +168,20 @@
return AXIS2_INTF_TO_IMPL(disp)->base;
}
-axis2_qname_t *AXIS2_CALL
-axis2_disp_get_qname(
+axis2_string_t *AXIS2_CALL
+axis2_disp_get_name(
const axis2_disp_t *disp,
const axis2_env_t *env)
{
AXIS2_ENV_CHECK(env, NULL);
- return AXIS2_INTF_TO_IMPL(disp)->qname;
+ return AXIS2_INTF_TO_IMPL(disp)->name;
}
axis2_status_t AXIS2_CALL
-axis2_disp_set_qname(
+axis2_disp_set_name(
struct axis2_disp *disp,
const axis2_env_t *env,
- axis2_qname_t *qname)
+ axis2_string_t *name)
{
axis2_disp_impl_t *disp_impl = NULL;
@@ -189,16 +189,16 @@
disp_impl = AXIS2_INTF_TO_IMPL(disp);
- if (disp_impl->qname)
+ if (disp_impl->name)
{
- AXIS2_QNAME_FREE(disp_impl->qname, env);
- disp_impl->qname = NULL;
+ axis2_string_free(disp_impl->name, env);
+ disp_impl->name = NULL;
}
- if (qname)
+ if (name)
{
- disp_impl->qname = AXIS2_QNAME_CLONE(qname, env);
- if (!(disp_impl->qname))
+ disp_impl->name = axis2_string_clone(name, env);
+ if (!(disp_impl->name))
return AXIS2_FAILURE;
}
@@ -251,10 +251,10 @@
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
disp_impl = AXIS2_INTF_TO_IMPL(disp);
- if (disp_impl->qname)
+ if (disp_impl->name)
{
- AXIS2_QNAME_FREE(disp_impl->qname, env);
- disp_impl->qname = NULL;
+ axis2_string_free(disp_impl->name, env);
+ disp_impl->name = NULL;
}
disp_impl->base = NULL;
Modified: webservices/axis2/trunk/c/modules/core/engine/disp_checker.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/engine/disp_checker.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/disp_checker.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/disp_checker.c Tue Jan 23 21:44:07 2007
@@ -17,7 +17,7 @@
#include <axis2_disp_checker.h>
#include <axis2_handler_desc.h>
-#include <axis2_qname.h>
+#include <axis2_string.h>
#include <axis2_relates_to.h>
#include <axis2_svc.h>
#include <axis2_const.h>
@@ -28,6 +28,8 @@
#include <axiom_soap.h>
#include <axiom.h>
+const axis2_char_t *AXIS2_DISP_CHECKER_NAME = "dispatch_post_conditions_evaluator";
+
typedef struct axis2_disp_checker_impl
{
/** phase */
@@ -35,7 +37,7 @@
/** base class, inherits from handler */
axis2_handler_t *base;
/** phase name */
- axis2_qname_t *qname;
+ axis2_string_t *name;
}
axis2_disp_checker_impl_t;
@@ -53,16 +55,16 @@
const axis2_disp_checker_t *disp_checker,
const axis2_env_t *env);
-axis2_qname_t *AXIS2_CALL
-axis2_disp_checker_get_qname(
+axis2_string_t *AXIS2_CALL
+axis2_disp_checker_get_name(
const axis2_disp_checker_t *disp_checker,
const axis2_env_t *env);
axis2_status_t AXIS2_CALL
-axis2_disp_checker_set_qname(
+axis2_disp_checker_set_name(
axis2_disp_checker_t *disp_checker,
const axis2_env_t *env,
- const axis2_qname_t *qname);
+ const axis2_string_t *name);
axis2_status_t AXIS2_CALL
axis2_disp_checker_free(
@@ -86,14 +88,12 @@
}
disp_checker_impl->disp_checker.ops = NULL;
- disp_checker_impl->qname = NULL;
+ disp_checker_impl->name = NULL;
disp_checker_impl->base = NULL;
- /* create default qname */
- disp_checker_impl->qname = axis2_qname_create(env, "dispatch_post_conditions_evaluator",
- "http://axis.ws.apache.org",
- NULL);
- if (!(disp_checker_impl->qname))
+ /* create default name */
+ disp_checker_impl->name = axis2_string_create_const(env, (axis2_char_t**)&AXIS2_DISP_CHECKER_NAME);
+ if (!(disp_checker_impl->name))
{
axis2_disp_checker_free(&(disp_checker_impl->disp_checker), env);
return NULL;
@@ -107,7 +107,7 @@
}
/* handler desc of base handler */
- handler_desc = axis2_handler_desc_create_with_qname(env, disp_checker_impl->qname);
+ handler_desc = axis2_handler_desc_create(env, disp_checker_impl->name);
if (!handler_desc)
{
axis2_disp_checker_free(&(disp_checker_impl->disp_checker), env);
@@ -130,8 +130,8 @@
}
disp_checker_impl->disp_checker.ops->get_base = axis2_disp_checker_get_base;
- disp_checker_impl->disp_checker.ops->get_qname = axis2_disp_checker_get_qname;
- disp_checker_impl->disp_checker.ops->set_qname = axis2_disp_checker_set_qname;
+ disp_checker_impl->disp_checker.ops->get_name = axis2_disp_checker_get_name;
+ disp_checker_impl->disp_checker.ops->set_name = axis2_disp_checker_set_name;
disp_checker_impl->disp_checker.ops->free = axis2_disp_checker_free;
return &(disp_checker_impl->disp_checker);
@@ -146,20 +146,20 @@
return AXIS2_INTF_TO_IMPL(disp_checker)->base;
}
-axis2_qname_t *AXIS2_CALL
-axis2_disp_checker_get_qname(
+axis2_string_t *AXIS2_CALL
+axis2_disp_checker_get_name(
const axis2_disp_checker_t *disp_checker,
const axis2_env_t *env)
{
AXIS2_ENV_CHECK(env, NULL);
- return AXIS2_INTF_TO_IMPL(disp_checker)->qname;
+ return AXIS2_INTF_TO_IMPL(disp_checker)->name;
}
axis2_status_t AXIS2_CALL
-axis2_disp_checker_set_qname(
+axis2_disp_checker_set_name(
axis2_disp_checker_t *disp_checker,
const axis2_env_t *env,
- const axis2_qname_t *qname)
+ const axis2_string_t *name)
{
axis2_disp_checker_impl_t *disp_checker_impl = NULL;
@@ -167,16 +167,16 @@
disp_checker_impl = AXIS2_INTF_TO_IMPL(disp_checker);
- if (disp_checker_impl->qname)
+ if (disp_checker_impl->name)
{
- AXIS2_QNAME_FREE(disp_checker_impl->qname, env);
- disp_checker_impl->qname = NULL;
+ axis2_string_free(disp_checker_impl->name, env);
+ disp_checker_impl->name = NULL;
}
- if (qname)
+ if (name)
{
- disp_checker_impl->qname = AXIS2_QNAME_CLONE((axis2_qname_t *)qname, env);
- if (!(disp_checker_impl->qname))
+ disp_checker_impl->name = axis2_string_clone((axis2_string_t *)name, env);
+ if (!(disp_checker_impl->name))
return AXIS2_FAILURE;
}
@@ -192,10 +192,10 @@
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
disp_checker_impl = AXIS2_INTF_TO_IMPL(disp_checker);
- if (disp_checker_impl->qname)
+ if (disp_checker_impl->name)
{
- AXIS2_QNAME_FREE(disp_checker_impl->qname, env);
- disp_checker_impl->qname = NULL;
+ axis2_string_free(disp_checker_impl->name, env);
+ disp_checker_impl->name = NULL;
}
if (disp_checker_impl->disp_checker.ops)
Modified: webservices/axis2/trunk/c/modules/core/engine/engine.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/engine/engine.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/engine.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/engine.c Tue Jan 23 21:44:07 2007
@@ -776,8 +776,9 @@
AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
"Invoking phase %s", AXIS2_PHASE_GET_NAME(phase, env));
-
+
status = AXIS2_PHASE_INVOKE(phase, env, msg_ctx);
+
if (status != AXIS2_SUCCESS)
{
return status;
Modified: webservices/axis2/trunk/c/modules/core/engine/handler.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/engine/handler.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/handler.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/handler.c Tue Jan 23 21:44:07 2007
@@ -36,8 +36,8 @@
axis2_handler_t *handler,
const axis2_env_t *env);
-const axis2_qname_t *AXIS2_CALL
-axis2_handler_get_qname(
+const axis2_string_t *AXIS2_CALL
+axis2_handler_get_name(
const axis2_handler_t *handler,
const axis2_env_t *env) ;
@@ -102,8 +102,8 @@
handler_impl->handler.ops->invoke =
axis2_handler_invoke;
- handler_impl->handler.ops->get_qname =
- axis2_handler_get_qname;
+ handler_impl->handler.ops->get_name =
+ axis2_handler_get_name;
handler_impl->handler.ops->get_param =
axis2_handler_get_param;
@@ -134,8 +134,8 @@
return AXIS2_SUCCESS;
}
-const axis2_qname_t *AXIS2_CALL
-axis2_handler_get_qname(
+const axis2_string_t *AXIS2_CALL
+axis2_handler_get_name(
const axis2_handler_t *handler,
const axis2_env_t *env)
{
@@ -144,7 +144,7 @@
if (!(AXIS2_INTF_TO_IMPL(handler)->handler_desc))
return NULL;
- return AXIS2_HANDLER_DESC_GET_QNAME(AXIS2_INTF_TO_IMPL(handler)->handler_desc, env);
+ return AXIS2_HANDLER_DESC_GET_NAME(AXIS2_INTF_TO_IMPL(handler)->handler_desc, env);
}
axis2_status_t AXIS2_CALL
Modified: webservices/axis2/trunk/c/modules/core/engine/phase.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/engine/phase.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/phase.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/phase.c Tue Jan 23 21:44:07 2007
@@ -279,7 +279,7 @@
AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
"axis2_handler_t *%s added to the index %d of the phase %s",
- AXIS2_QNAME_GET_LOCALPART(AXIS2_HANDLER_GET_QNAME(handler, env), env),
+ axis2_string_get_buffer(AXIS2_HANDLER_GET_NAME(handler, env), env),
index,
phase_impl->name);
@@ -299,7 +299,7 @@
phase_impl = AXIS2_INTF_TO_IMPL(phase);
AXIS2_LOG_INFO(env->log, "Handler %s added to phase %s",
- AXIS2_QNAME_GET_LOCALPART(AXIS2_HANDLER_GET_QNAME(handler, env), env),
+ axis2_string_get_buffer(AXIS2_HANDLER_GET_NAME(handler, env), env),
phase_impl->name);
/*return AXIS2_ARRAY_LIST_ADD(phase_impl->handlers, env, handler);*/
@@ -331,8 +331,8 @@
{
AXIS2_LOG_INFO(env->log,
"Invoke the first handler %s within the phase %s",
- AXIS2_QNAME_GET_LOCALPART(
- AXIS2_HANDLER_GET_QNAME(phase_impl->first_handler, env), env),
+ axis2_string_get_buffer(
+ AXIS2_HANDLER_GET_NAME(phase_impl->first_handler, env), env),
phase_impl->name);
status = AXIS2_HANDLER_INVOKE(phase_impl->first_handler, env, msg_ctx);
@@ -357,7 +357,7 @@
{
AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
"Invoke the handler %s within the phase %s",
- AXIS2_QNAME_GET_LOCALPART(AXIS2_HANDLER_GET_QNAME(handler, env), env),
+ AXIS2_HANDLER_GET_NAME(handler, env),
phase_impl->name);
status = AXIS2_HANDLER_INVOKE(handler, env, msg_ctx);
if (status != AXIS2_SUCCESS)
@@ -380,7 +380,7 @@
else
{
AXIS2_LOG_INFO(env->log, "Invoke the last handler %s within the phase %s",
- AXIS2_QNAME_GET_LOCALPART(AXIS2_HANDLER_GET_QNAME(phase_impl->last_handler, env), env),
+ axis2_string_get_buffer(AXIS2_HANDLER_GET_NAME(phase_impl->last_handler, env), env),
phase_impl->name);
status = AXIS2_HANDLER_INVOKE(phase_impl->last_handler, env, msg_ctx);
if (status != AXIS2_SUCCESS)
@@ -633,7 +633,7 @@
if (!handler_desc)
return AXIS2_TRUE;
- first_handler_name = AXIS2_QNAME_GET_LOCALPART(AXIS2_HANDLER_DESC_GET_QNAME(handler_desc, env), env);
+ first_handler_name = axis2_string_get_buffer(AXIS2_HANDLER_DESC_GET_NAME(handler_desc, env), env);
if (!first_handler_name)
return AXIS2_TRUE;
@@ -680,7 +680,7 @@
if (!handler_desc)
return AXIS2_TRUE;
- last_handler_name = AXIS2_QNAME_GET_LOCALPART(AXIS2_HANDLER_DESC_GET_QNAME(handler_desc, env), env);
+ last_handler_name = axis2_string_get_buffer(AXIS2_HANDLER_DESC_GET_NAME(handler_desc, env), env);
if (!last_handler_name)
return AXIS2_TRUE;
@@ -753,7 +753,7 @@
return AXIS2_FAILURE;
}
- handler_name = AXIS2_QNAME_GET_LOCALPART(AXIS2_HANDLER_DESC_GET_QNAME(handler_desc, env), env);
+ handler_name = axis2_string_get_buffer(AXIS2_HANDLER_DESC_GET_NAME(handler_desc, env), env);
if (!handler_name)
{
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_HANDLER_STATE, AXIS2_FAILURE);
@@ -781,7 +781,7 @@
return AXIS2_FAILURE;
}
- handler_name = AXIS2_QNAME_GET_LOCALPART(AXIS2_HANDLER_DESC_GET_QNAME(handler_desc, env), env);
+ handler_name = axis2_string_get_buffer(AXIS2_HANDLER_DESC_GET_NAME(handler_desc, env), env);
if (!handler_name)
{
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_HANDLER_STATE, AXIS2_FAILURE);
@@ -847,7 +847,7 @@
return AXIS2_FAILURE;
}
- handler_name = AXIS2_QNAME_GET_LOCALPART(AXIS2_HANDLER_DESC_GET_QNAME(handler_desc, env), env);
+ handler_name = axis2_string_get_buffer(AXIS2_HANDLER_DESC_GET_NAME(handler_desc, env), env);
if (!handler_name)
{
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_HANDLER_STATE, AXIS2_FAILURE);
@@ -874,7 +874,7 @@
return AXIS2_FAILURE;
}
- handler_name = AXIS2_QNAME_GET_LOCALPART(AXIS2_HANDLER_DESC_GET_QNAME(handler_desc, env), env);
+ handler_name = axis2_string_get_buffer(AXIS2_HANDLER_DESC_GET_NAME(handler_desc, env), env);
if (!handler_name)
{
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_HANDLER_STATE, AXIS2_FAILURE);
@@ -960,7 +960,7 @@
return AXIS2_FAILURE;
}
- before_handler_name = AXIS2_QNAME_GET_LOCALPART(AXIS2_HANDLER_DESC_GET_QNAME(handler_desc, env), env);
+ before_handler_name = axis2_string_get_buffer(AXIS2_HANDLER_DESC_GET_NAME(handler_desc, env), env);
if (!handler_name)
{
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_HANDLER_STATE, AXIS2_FAILURE);
@@ -977,7 +977,7 @@
return AXIS2_FAILURE;
}
- after_handler_name = AXIS2_QNAME_GET_LOCALPART(AXIS2_HANDLER_DESC_GET_QNAME(handler_desc, env), env);
+ after_handler_name = axis2_string_get_buffer(AXIS2_HANDLER_DESC_GET_NAME(handler_desc, env), env);
if (!handler_name)
{
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_HANDLER_STATE, AXIS2_FAILURE);
@@ -1021,7 +1021,7 @@
return AXIS2_FAILURE;
}
- handler_name = AXIS2_QNAME_GET_LOCALPART(AXIS2_HANDLER_DESC_GET_QNAME(handler_desc, env), env);
+ handler_name = axis2_string_get_buffer(AXIS2_HANDLER_DESC_GET_NAME(handler_desc, env), env);
if (!handler_name)
{
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_HANDLER_STATE, AXIS2_FAILURE);
@@ -1212,23 +1212,24 @@
{
int i = 0, size = 0;
axis2_bool_t add_handler = AXIS2_TRUE;
- const axis2_qname_t *handler_qname = NULL;
+ const axis2_string_t *handler_name = NULL;
- handler_qname = AXIS2_HANDLER_GET_QNAME(handler, env);
+ handler_name = AXIS2_HANDLER_GET_NAME(handler, env);
size = AXIS2_ARRAY_LIST_SIZE(list, env);
for (i = 0; i < size; i++)
{
axis2_handler_t *obj = NULL;
- const axis2_qname_t *obj_qname = NULL;
+ const axis2_string_t *obj_name = NULL;
obj = (axis2_handler_t *) AXIS2_ARRAY_LIST_GET(list, env, i);
- obj_qname = AXIS2_HANDLER_GET_QNAME(obj, env);
+ obj_name = AXIS2_HANDLER_GET_NAME(obj, env);
if (obj == handler)
{
add_handler = AXIS2_FALSE;
break;
}
- else if (AXIS2_TRUE == AXIS2_QNAME_EQUALS(handler_qname, env, obj_qname))
+ else if (0 == AXIS2_STRCMP(axis2_string_get_buffer(handler_name, env),
+ axis2_string_get_buffer(obj_name, env)))
{
add_handler = AXIS2_FALSE;
break;
Modified: webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c Tue Jan 23 21:44:07 2007
@@ -17,7 +17,7 @@
#include <axis2_disp.h>
#include <axis2_handler_desc.h>
-#include <axis2_qname.h>
+#include <axis2_string.h>
#include <axis2_relates_to.h>
#include <axis2_svc.h>
#include <axis2_const.h>
@@ -25,7 +25,7 @@
#include <axis2_addr.h>
#include <axis2_utils.h>
-#define AXIS2_REQ_URI_DISP_NAME "request_uri_based_dispatcher"
+const axis2_char_t *AXIS2_REQ_URI_DISP_NAME = "request_uri_based_dispatcher";
axis2_status_t AXIS2_CALL
axis2_req_uri_disp_invoke(
@@ -51,15 +51,13 @@
{
axis2_disp_t *disp = NULL;
axis2_handler_t *handler = NULL;
- axis2_qname_t *qname = NULL;
+ axis2_string_t *name = NULL;
AXIS2_ENV_CHECK(env, NULL);
- qname = axis2_qname_create(env, AXIS2_REQ_URI_DISP_NAME,
- AXIS2_DISP_NAMESPACE,
- NULL);
+ name = axis2_string_create_const(env, (axis2_char_t **)&AXIS2_REQ_URI_DISP_NAME);
- disp = axis2_disp_create(env, qname);
+ disp = axis2_disp_create(env, name);
if (!disp)
{
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
@@ -76,7 +74,7 @@
handler->ops->invoke = axis2_req_uri_disp_invoke;
- AXIS2_QNAME_FREE(qname, env);
+ axis2_string_free(name, env);
return disp;
}
@@ -170,7 +168,7 @@
"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);
+ axis2_qname_free(op_qname, env);
if (op)
AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
"Operation found using target endpoint uri fragment");
Modified: webservices/axis2/trunk/c/modules/core/engine/soap_action_disp.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/engine/soap_action_disp.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/soap_action_disp.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/soap_action_disp.c Tue Jan 23 21:44:07 2007
@@ -18,7 +18,7 @@
#include <axis2_disp.h>
#include <axis2_handler_desc.h>
-#include <axis2_qname.h>
+#include <axis2_string.h>
#include <axis2_relates_to.h>
#include <axis2_svc.h>
#include <axis2_const.h>
@@ -26,7 +26,7 @@
#include <axis2_addr.h>
#include <axis2_utils.h>
-#define AXIS2_SOAP_ACTION_DISP_NAME "soap_action_based_dispatcher"
+const axis2_char_t *AXIS2_SOAP_ACTION_DISP_NAME = "soap_action_based_dispatcher";
axis2_status_t AXIS2_CALL
axiom_soap_action_disp_invoke(
@@ -51,15 +51,13 @@
{
axis2_disp_t *disp = NULL;
axis2_handler_t *handler = NULL;
- axis2_qname_t *qname = NULL;
+ axis2_string_t *name = NULL;
AXIS2_ENV_CHECK(env, NULL);
- qname = axis2_qname_create(env, AXIS2_SOAP_ACTION_DISP_NAME,
- AXIS2_DISP_NAMESPACE,
- NULL);
+ name = axis2_string_create_const(env, (axis2_char_t**)&AXIS2_SOAP_ACTION_DISP_NAME);
- disp = axis2_disp_create(env, qname);
+ disp = axis2_disp_create(env, name);
if (!disp)
{
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
@@ -75,7 +73,7 @@
handler->ops->invoke = axiom_soap_action_disp_invoke;
- AXIS2_QNAME_FREE(qname, env);
+ axis2_string_free(name, env);
return disp;
}
Modified: webservices/axis2/trunk/c/modules/core/engine/soap_body_disp.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/engine/soap_body_disp.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/soap_body_disp.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/soap_body_disp.c Tue Jan 23 21:44:07 2007
@@ -18,7 +18,7 @@
#include <axis2_disp.h>
#include <axis2_handler_desc.h>
-#include <axis2_qname.h>
+#include <axis2_string.h>
#include <axis2_svc.h>
#include <axis2_const.h>
#include <axis2_conf_ctx.h>
@@ -26,7 +26,7 @@
#include <axiom_soap_envelope.h>
#include <axiom_soap_body.h>
-#define AXIS2_SOAP_MESSAGE_BODY_DISP_NAME "soap_message_body_based_dispatcher"
+const axis2_char_t *AXIS2_SOAP_MESSAGE_BODY_DISP_NAME = "soap_message_body_based_dispatcher";
axis2_status_t AXIS2_CALL
axiom_soap_body_disp_invoke(
@@ -53,15 +53,13 @@
{
axis2_disp_t *disp = NULL;
axis2_handler_t *handler = NULL;
- axis2_qname_t *qname = NULL;
+ axis2_string_t *name = NULL;
AXIS2_ENV_CHECK(env, NULL);
- qname = axis2_qname_create(env, AXIS2_SOAP_MESSAGE_BODY_DISP_NAME,
- AXIS2_DISP_NAMESPACE,
- NULL);
+ name = axis2_string_create_const(env, (axis2_char_t**)&AXIS2_SOAP_MESSAGE_BODY_DISP_NAME);
- disp = axis2_disp_create(env, qname);
+ disp = axis2_disp_create(env, name);
if (!disp)
{
AXIS2_ERROR_SET(env->error,
@@ -79,7 +77,7 @@
handler->ops->invoke = axiom_soap_body_disp_invoke;
- AXIS2_QNAME_FREE(qname, env);
+ axis2_string_free(name, env);
return disp;
}
Modified: webservices/axis2/trunk/c/modules/core/phaseresolver/phase_holder.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/phaseresolver/phase_holder.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/phaseresolver/phase_holder.c (original)
+++ webservices/axis2/trunk/c/modules/core/phaseresolver/phase_holder.c Tue Jan 23 21:44:07 2007
@@ -197,7 +197,7 @@
phase = axis2_phase_holder_get_phase(phase_holder, env, phase_name);
status = AXIS2_PHASE_ADD_HANDLER_DESC(phase, env, handler);
AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "Add handler %s to phase %s",
- AXIS2_QNAME_TO_STRING((axis2_qname_t *)AXIS2_HANDLER_DESC_GET_QNAME(handler, env), env), phase_name);
+ AXIS2_HANDLER_DESC_GET_NAME(handler, env), phase_name);
}
else
{
Modified: webservices/axis2/trunk/c/modules/core/phaseresolver/phase_resolver.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/phaseresolver/phase_resolver.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/phaseresolver/phase_resolver.c (original)
+++ webservices/axis2/trunk/c/modules/core/phaseresolver/phase_resolver.c Tue Jan 23 21:44:07 2007
@@ -673,12 +673,9 @@
const axis2_env_t *env)
{
axis2_phase_resolver_impl_t *resolver_impl = NULL;
- axis2_hash_t *transports_in = NULL;
- axis2_hash_t *transports_out = NULL;
- axis2_hash_index_t *index_i = 0;
- axis2_transport_in_desc_t *transport_in = NULL;
- axis2_transport_out_desc_t *transport_out = NULL;
- void *v = NULL;
+ axis2_transport_in_desc_t **transports_in = NULL;
+ axis2_transport_out_desc_t **transports_out = NULL;
+ int index_i = 0;
axis2_status_t status = AXIS2_FAILURE;
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
@@ -702,34 +699,32 @@
return AXIS2_SUCCESS;
}
- for (index_i = axis2_hash_first(transports_in, env); index_i; index_i =
- axis2_hash_next(env, index_i))
+ for (index_i = 0; index_i < AXIS2_TRANSPORT_ENUM_MAX; index_i++)
{
-
- axis2_hash_this(index_i, NULL, NULL, &v);
- transport_in = (axis2_transport_in_desc_t *) v;
- status = axis2_phase_resolver_build_in_transport_chains(phase_resolver,
- env, transport_in);
- if (AXIS2_SUCCESS != status)
+ if (transports_in[index_i])
{
- return status;
+ status = axis2_phase_resolver_build_in_transport_chains(phase_resolver,
+ env, transports_in[index_i]);
+ if (AXIS2_SUCCESS != status)
+ {
+ return status;
+ }
}
}
- for (index_i = axis2_hash_first(transports_out, env); index_i; index_i =
- axis2_hash_next(env, index_i))
+ for (index_i = 0; index_i < AXIS2_TRANSPORT_ENUM_MAX; index_i++)
{
-
- axis2_hash_this(index_i, NULL, NULL, &v);
- transport_out = (axis2_transport_out_desc_t *) v;
- status = axis2_phase_resolver_build_out_transport_chains(phase_resolver,
- env, transport_out);
- if (AXIS2_SUCCESS != status)
+ if (transports_out[index_i])
{
- return status;
+ status = axis2_phase_resolver_build_out_transport_chains(phase_resolver,
+ env, transports_out[index_i]);
+ if (AXIS2_SUCCESS != status)
+ {
+ return status;
+ }
}
-
}
+
/* If transport in or transport out maps are not null but still they don't
* have chains configured then we return success, because there are no
* chain to process
Modified: webservices/axis2/trunk/c/modules/core/transport/http/http_simple_request.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/http_simple_request.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/http_simple_request.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/http_simple_request.c Tue Jan 23 21:44:07 2007
@@ -112,7 +112,8 @@
axis2_http_simple_request_set_body_string(
axis2_http_simple_request_t *simple_request,
const axis2_env_t *env,
- axis2_char_t *str);
+ void *str,
+ unsigned int str_len);
axis2_status_t AXIS2_CALL
axis2_http_simple_request_free(
@@ -573,7 +574,8 @@
axis2_http_simple_request_set_body_string(
axis2_http_simple_request_t *simple_request,
const axis2_env_t *env,
- axis2_char_t *str)
+ void *str,
+ unsigned int str_len)
{
axis2_stream_t *body_stream = NULL;
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
@@ -590,6 +592,6 @@
AXIS2_INTF_TO_IMPL(simple_request)->stream = body_stream;
AXIS2_INTF_TO_IMPL(simple_request)->owns_stream = AXIS2_TRUE;
}
- AXIS2_STREAM_WRITE(body_stream, env, str, AXIS2_STRLEN(str));
+ AXIS2_STREAM_WRITE(body_stream, env, str, str_len);
return AXIS2_SUCCESS;
}
Modified: webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- 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 Tue Jan 23 21:44:07 2007
@@ -43,6 +43,7 @@
#include <axis2_msg.h>
#define AXIOM_MIME_BOUNDARY_BYTE 45
+const axis2_char_t * AXIS2_TRANS_UTIL_DEFAULT_CHAR_ENCODING = AXIS2_HTTP_HEADER_DEFAULT_CHAR_ENCODING;
/***************************** Function headers *******************************/
@@ -907,7 +908,7 @@
tmp_content_type = (axis2_char_t *)content_type;
if (!tmp_content_type)
{
- return axis2_string_create_const(env, AXIS2_HTTP_HEADER_DEFAULT_CHAR_ENCODING);
+ return axis2_string_create_const(env, (axis2_char_t**)&AXIS2_TRANS_UTIL_DEFAULT_CHAR_ENCODING);
}
tmp = strstr(tmp_content_type, AXIS2_HTTP_CHAR_SET_ENCODING);
@@ -953,7 +954,7 @@
}
else
{
- str = axis2_string_create_const(env, AXIS2_HTTP_HEADER_DEFAULT_CHAR_ENCODING);
+ str = axis2_string_create_const(env, (axis2_char_t**)&AXIS2_TRANS_UTIL_DEFAULT_CHAR_ENCODING);
}
return str;
}
Modified: webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c Tue Jan 23 21:44:07 2007
@@ -174,7 +174,6 @@
axis2_hash_t *headers = NULL;
axis2_property_t *property = NULL;
axis2_char_t *url_external_form = NULL;
- axis2_qname_t *tmp_qname = NULL;
axis2_char_t *svc_grp_uuid = NULL;
axis2_char_t *path = NULL;
@@ -234,14 +233,12 @@
}
request_body = AXIS2_HTTP_SIMPLE_REQUEST_GET_BODY(simple_request, env);
- tmp_qname = axis2_qname_create(env, AXIS2_TRANSPORT_HTTP, NULL, NULL);
out_desc = AXIS2_CONF_GET_TRANSPORT_OUT(AXIS2_CONF_CTX_GET_CONF
(http_worker_impl->conf_ctx, env), env,
- tmp_qname);
+ AXIS2_TRANSPORT_ENUM_HTTP);
in_desc = AXIS2_CONF_GET_TRANSPORT_IN(AXIS2_CONF_CTX_GET_CONF
(http_worker_impl->conf_ctx, env), env,
- tmp_qname);
- AXIS2_QNAME_FREE(tmp_qname, env);
+ AXIS2_TRANSPORT_ENUM_HTTP);
msg_ctx = axis2_msg_ctx_create(env, conf_ctx, in_desc, out_desc);
AXIS2_MSG_CTX_SET_SERVER_SIDE(msg_ctx, env, AXIS2_TRUE);
@@ -565,15 +562,12 @@
axis2_http_simple_response_t *simple_response)
{
axis2_conf_t *config = NULL;
- axis2_hash_t *tranport_outs = NULL;
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
AXIS2_PARAM_CHECK(env->error, conf_ctx, AXIS2_FAILURE);
AXIS2_PARAM_CHECK(env->error, simple_response, AXIS2_FAILURE);
config = AXIS2_CONF_CTX_GET_CONF(conf_ctx, env);
- tranport_outs = AXIS2_CONF_GET_ALL_OUT_TRANSPORTS(config, env);
-
/*
TODO implement the method
Modified: webservices/axis2/trunk/c/modules/core/transport/http/sender/http_transport_sender.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/sender/http_transport_sender.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- 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 Tue Jan 23 21:44:07 2007
@@ -383,7 +383,7 @@
}
AXIOM_NODE_SERIALIZE(data_out, env, om_output);
buffer = (axis2_char_t*)AXIOM_XML_WRITER_GET_XML(xml_writer, env);
- buffer_size = AXIS2_STRLEN(buffer);
+ buffer_size = AXIOM_XML_WRITER_GET_XML_SIZE(xml_writer, env);
}
else
{
@@ -406,11 +406,11 @@
else
{
buffer = (axis2_char_t *)AXIOM_XML_WRITER_GET_XML(xml_writer, env);
- buffer_size = AXIS2_STRLEN(buffer);
+ buffer_size = AXIOM_XML_WRITER_GET_XML_SIZE(xml_writer, env);
}
}
AXIS2_STREAM_WRITE(out_stream, env, buffer, buffer_size);
- AXIS2_FREE(env->allocator, buffer);
+ /*AXIS2_FREE(env->allocator, buffer);*/
op_ctx = AXIS2_MSG_CTX_GET_OP_CTX(msg_ctx, env);
if (op_ctx)
Modified: webservices/axis2/trunk/c/modules/core/transport/http/sender/rest_sender.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/sender/rest_sender.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/sender/rest_sender.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/sender/rest_sender.c Tue Jan 23 21:44:07 2007
@@ -217,6 +217,7 @@
axis2_rest_sender_impl_t *sender_impl = NULL;
axiom_xml_writer_t *xml_writer = NULL;
axis2_char_t *buffer = NULL;
+ unsigned int buffer_size = 0;
const axis2_char_t *char_set_enc = NULL;
int status_code = -1;
axis2_http_header_t *http_header = NULL;
@@ -302,6 +303,7 @@
*/
AXIOM_NODE_SERIALIZE(out, env, sender_impl->om_output);
buffer = AXIOM_XML_WRITER_GET_XML(xml_writer, env);
+ buffer_size = AXIOM_XML_WRITER_GET_XML_SIZE(xml_writer, env);
if (NULL == buffer)
{
@@ -337,7 +339,7 @@
if (AXIS2_FALSE == sender_impl->chunked)
{
axis2_char_t tmp_buf[10];
- sprintf(tmp_buf, "%d", (int)strlen(buffer));
+ sprintf(tmp_buf, "%d", buffer_size);
http_header = axis2_http_header_create(env,
AXIS2_HTTP_HEADER_CONTENT_LENGTH, tmp_buf);
AXIS2_HTTP_SIMPLE_REQUEST_ADD_HEADER(request, env, http_header);
@@ -371,7 +373,7 @@
http_header = axis2_http_header_create(env,
AXIS2_HTTP_HEADER_CONTENT_TYPE, content_type);
AXIS2_HTTP_SIMPLE_REQUEST_ADD_HEADER(request, env, http_header);
- AXIS2_HTTP_SIMPLE_REQUEST_SET_BODY_STRING(request, env, buffer);
+ AXIS2_HTTP_SIMPLE_REQUEST_SET_BODY_STRING(request, env, buffer, buffer_size);
}
if (0 == AXIS2_STRCMP(sender_impl->http_version,
@@ -419,8 +421,6 @@
axis2_rest_sender_configure_server_cert (sender, env, msg_ctx);
status_code = AXIS2_HTTP_CLIENT_SEND(sender_impl->client, env, request);
- AXIS2_FREE(env->allocator, buffer);
- buffer = NULL;
AXIS2_HTTP_SIMPLE_REQUEST_FREE(request, env);
request = NULL;
Modified: webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- 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 Tue Jan 23 21:44:07 2007
@@ -207,6 +207,7 @@
axis2_soap_over_http_sender_impl_t *sender_impl = NULL;
axiom_xml_writer_t *xml_writer = NULL;
axis2_char_t *buffer = NULL;
+ unsigned int buffer_size = 0;
const axis2_char_t *char_set_enc = NULL;
axis2_string_t *char_set_enc_str = NULL;
int status_code = -1;
@@ -348,20 +349,16 @@
AXIS2_HTTP_SIMPLE_REQUEST_ADD_HEADER(request, env, http_header);
}
+ buffer_size = AXIOM_XML_WRITER_GET_XML_SIZE(xml_writer, env);
if (AXIS2_FALSE == sender_impl->chunked)
{
axis2_char_t tmp_buf[10];
- int size = 0;
- if (buffer)
+ if (!buffer)
{
- size = strlen(buffer);
- }
- else
- {
- size = output_stream_size;
+ buffer_size = output_stream_size;
}
- sprintf(tmp_buf, "%d", size);
+ sprintf(tmp_buf, "%d", buffer_size);
http_header = axis2_http_header_create(env,
AXIS2_HTTP_HEADER_CONTENT_LENGTH, tmp_buf);
AXIS2_HTTP_SIMPLE_REQUEST_ADD_HEADER(request, env, http_header);
@@ -461,7 +458,7 @@
}
else
{
- AXIS2_HTTP_SIMPLE_REQUEST_SET_BODY_STRING(request, env, buffer);
+ AXIS2_HTTP_SIMPLE_REQUEST_SET_BODY_STRING(request, env, buffer, buffer_size);
}
axis2_soap_over_http_sender_configure_server_cert(sender, env, msg_ctx);
@@ -473,8 +470,8 @@
status_code = AXIS2_HTTP_CLIENT_SEND(sender_impl->client, env, request);
- AXIS2_FREE(env->allocator, buffer);
- buffer = NULL;
+ /*AXIS2_FREE(env->allocator, buffer);
+ buffer = NULL;*/
AXIS2_HTTP_SIMPLE_REQUEST_FREE(request, env);
request = NULL;
@@ -781,7 +778,6 @@
axis2_conf_t *conf = NULL;
axis2_transport_out_desc_t *trans_desc = NULL;
axis2_param_t *proxy_param = NULL;
- axis2_qname_t *transport_qname = NULL;
axis2_hash_t *transport_attrs = NULL;
axis2_soap_over_http_sender_impl_t *sender_impl = NULL;
@@ -799,17 +795,13 @@
{
return AXIS2_FAILURE;
}
- transport_qname = axis2_qname_create(env, "http", NULL, NULL);
- if (transport_qname == NULL)
- {
- return AXIS2_FAILURE;
- }
- trans_desc = AXIS2_CONF_GET_TRANSPORT_OUT(conf, env, transport_qname);
- AXIS2_QNAME_FREE(transport_qname, env);
+
+ trans_desc = AXIS2_CONF_GET_TRANSPORT_OUT(conf, env, AXIS2_TRANSPORT_ENUM_HTTP);
if (NULL == trans_desc)
{
return AXIS2_FAILURE;
}
+
proxy_param = AXIS2_PARAM_CONTAINER_GET_PARAM(trans_desc->param_container,
env, AXIS2_HTTP_PROXY);
if (proxy_param)
Modified: webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_worker.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_worker.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_worker.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_worker.c Tue Jan 23 21:44:07 2007
@@ -158,9 +158,8 @@
int send_status = -1;
axis2_char_t *content_type = NULL;
axis2_property_t *property = NULL;
- axis2_url_t *url = NULL;
+ /*axis2_url_t *url = NULL;*/
axis2_http_out_transport_info_t *apache2_out_transport_info = NULL;
- axis2_qname_t *transport_qname = NULL;
axis2_char_t *ctx_uuid = NULL;
AXIS2_ENV_CHECK(env, AXIS2_CRITICAL_FAILURE);
@@ -168,9 +167,9 @@
apache2_worker_impl = AXIS2_INTF_TO_IMPL(apache2_worker);
conf_ctx = apache2_worker_impl->conf_ctx;
- url = axis2_url_create(env, "http",
+ /*url = axis2_url_create(env, "http",
(axis2_char_t *)ap_get_server_name(request),
- ap_get_server_port(request), request->unparsed_uri);
+ ap_get_server_port(request), request->unparsed_uri);*/
if (NULL == conf_ctx)
{
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NULL_CONFIGURATION_CONTEXT,
@@ -179,7 +178,8 @@
}
content_length = request->remaining;
http_version = request->protocol;
- req_url = AXIS2_URL_TO_EXTERNAL_FORM(url, env);
+ /*req_url = AXIS2_URL_TO_EXTERNAL_FORM(url, env);*/
+ req_url = request->unparsed_uri;
content_type = (axis2_char_t *)apr_table_get(request->headers_in,
AXIS2_HTTP_HEADER_CONTENT_TYPE);
@@ -201,15 +201,12 @@
encoding_header_value = (axis2_char_t*)request->content_encoding;
- transport_qname = axis2_qname_create(env, AXIS2_TRANSPORT_HTTP, NULL,
- NULL);
out_desc = AXIS2_CONF_GET_TRANSPORT_OUT(AXIS2_CONF_CTX_GET_CONF
(apache2_worker_impl->conf_ctx, env), env,
- transport_qname);
+ AXIS2_TRANSPORT_ENUM_HTTP);
in_desc = AXIS2_CONF_GET_TRANSPORT_IN(AXIS2_CONF_CTX_GET_CONF
(apache2_worker_impl->conf_ctx, env), env,
- transport_qname);
- AXIS2_QNAME_FREE(transport_qname, env);
+ AXIS2_TRANSPORT_ENUM_HTTP);
msg_ctx = axis2_msg_ctx_create(env, conf_ctx, in_desc, out_desc);
AXIS2_MSG_CTX_SET_SERVER_SIDE(msg_ctx, env, AXIS2_TRUE);
@@ -333,7 +330,8 @@
ap_rwrite(body_string, body_string_len, request);
body_string = NULL;
}
- if (url)
+
+ /*if (url)
{
AXIS2_URL_FREE(url, env);
url = NULL;
@@ -342,7 +340,8 @@
{
AXIS2_FREE(env->allocator, req_url);
req_url = NULL;
- }
+ }*/
+
if (request_body)
{
AXIS2_STREAM_FREE(request_body, env);
Modified: webservices/axis2/trunk/c/modules/mod_addr/addr_in_handler.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/mod_addr/addr_in_handler.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/mod_addr/addr_in_handler.c (original)
+++ webservices/axis2/trunk/c/modules/mod_addr/addr_in_handler.c Tue Jan 23 21:44:07 2007
@@ -92,7 +92,7 @@
AXIS2_EXTERN axis2_handler_t* AXIS2_CALL
axis2_addr_in_handler_create(const axis2_env_t *env,
- axis2_qname_t *qname)
+ axis2_string_t *name)
{
axis2_handler_t *handler = NULL;
Modified: webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c (original)
+++ webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c Tue Jan 23 21:44:07 2007
@@ -63,14 +63,14 @@
AXIS2_EXTERN axis2_handler_t *AXIS2_CALL
-axis2_addr_out_handler_create(const axis2_env_t *env, axis2_qname_t * qname)
+axis2_addr_out_handler_create(const axis2_env_t *env, axis2_string_t * name)
{
axis2_handler_t *handler = NULL;
- axis2_qname_t *handler_qname = NULL;
+ /*axis2_qname_t *handler_qname = NULL;*/
AXIS2_ENV_CHECK(env, NULL);
- if (qname)
+ /*if (qname)
{
handler_qname = AXIS2_QNAME_CLONE(qname, env);
if (!(handler_qname))
@@ -82,7 +82,7 @@
}
else
{
- /* create default qname */
+ create default qname
handler_qname = axis2_qname_create(env, "addr_out_handler",
"http://axis.ws.apache.org",
NULL);
@@ -90,7 +90,7 @@
{
return NULL;
}
- }
+ }*/
handler = axis2_handler_create(env);
if (!handler)
@@ -102,7 +102,7 @@
if (handler->ops)
handler->ops->invoke = axis2_addr_out_handler_invoke;
- AXIS2_QNAME_FREE(handler_qname, env);
+ /*AXIS2_QNAME_FREE(handler_qname, env);*/
return handler;
}
Modified: webservices/axis2/trunk/c/modules/mod_log/log_in_handler.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/mod_log/log_in_handler.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/mod_log/log_in_handler.c (original)
+++ webservices/axis2/trunk/c/modules/mod_log/log_in_handler.c Tue Jan 23 21:44:07 2007
@@ -38,7 +38,7 @@
AXIS2_EXTERN axis2_handler_t* AXIS2_CALL
axis2_log_in_handler_create(const axis2_env_t *env,
- axis2_qname_t *qname)
+ axis2_string_t *name)
{
axis2_handler_t *handler = NULL;
Modified: webservices/axis2/trunk/c/modules/mod_log/log_out_handler.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/mod_log/log_out_handler.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/mod_log/log_out_handler.c (original)
+++ webservices/axis2/trunk/c/modules/mod_log/log_out_handler.c Tue Jan 23 21:44:07 2007
@@ -38,7 +38,7 @@
AXIS2_EXTERN axis2_handler_t* AXIS2_CALL
axis2_log_out_handler_create(const axis2_env_t *env,
- axis2_qname_t *qname)
+ axis2_string_t *name)
{
axis2_handler_t *handler = NULL;
Modified: webservices/axis2/trunk/c/modules/mod_log/mod_log.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/mod_log/mod_log.h?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/modules/mod_log/mod_log.h (original)
+++ webservices/axis2/trunk/c/modules/mod_log/mod_log.h Tue Jan 23 21:44:07 2007
@@ -32,11 +32,11 @@
AXIS2_EXTERN axis2_handler_t* AXIS2_CALL
axis2_log_in_handler_create(const axis2_env_t *env,
- axis2_qname_t *qname);
+ axis2_string_t *name);
AXIS2_EXTERN axis2_handler_t* AXIS2_CALL
axis2_log_out_handler_create(const axis2_env_t *env,
- axis2_qname_t *qname);
+ axis2_string_t *name);
/** @} */
Modified: webservices/axis2/trunk/c/samples/client/math/math_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/math/math_client.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/samples/client/math/math_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/math/math_client.c Tue Jan 23 21:44:07 2007
@@ -168,11 +168,6 @@
AXIOM_NODE_SERIALIZE(math_om_node, env, om_output);
buffer = (axis2_char_t*)AXIOM_XML_WRITER_GET_XML(xml_writer, env);
AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "\nSending OM node in XML : %s \n", buffer);
- if (buffer)
- {
- AXIS2_FREE(env->allocator, buffer);
- buffer = NULL;
- }
if (om_output)
{
AXIOM_OUTPUT_FREE(om_output, env);
Modified: webservices/axis2/trunk/c/util/include/axis2_string.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/include/axis2_string.h?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/util/include/axis2_string.h (original)
+++ webservices/axis2/trunk/c/util/include/axis2_string.h Tue Jan 23 21:44:07 2007
@@ -56,7 +56,7 @@
*/
AXIS2_EXTERN axis2_string_t* AXIS2_CALL
axis2_string_create_const(const axis2_env_t *env,
- const axis2_char_t *str);
+ axis2_char_t **str);
/**
* Frees string struct.
Modified: webservices/axis2/trunk/c/util/src/string.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/string.c?view=diff&rev=499268&r1=499267&r2=499268
==============================================================================
--- webservices/axis2/trunk/c/util/src/string.c (original)
+++ webservices/axis2/trunk/c/util/src/string.c Tue Jan 23 21:44:07 2007
@@ -81,7 +81,7 @@
AXIS2_EXTERN axis2_string_t* AXIS2_CALL
axis2_string_create_const(const axis2_env_t *env,
- const axis2_char_t *str)
+ axis2_char_t **str)
{
axis2_string_t *string = NULL;
AXIS2_ENV_CHECK(env, NULL);
@@ -102,8 +102,8 @@
return NULL;
}
/* set properties */
- string->buffer = (axis2_char_t *)str;
- string->length = axis2_strlen(str);
+ string->buffer = *str;
+ string->length = axis2_strlen(*str);
string->ref_count = 1;
string->owns_buffer = AXIS2_FALSE;
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org