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 2007/03/23 13:06:46 UTC
svn commit: r521689 - in /webservices/axis2/trunk/c: include/
modules/core/clientapi/ modules/core/context/
modules/core/transport/http/sender/
modules/core/transport/http/sender/libcurl/
modules/core/transport/http/util/ modules/mod_addr/ samples/serv...
Author: samisa
Date: Fri Mar 23 05:06:44 2007
New Revision: 521689
URL: http://svn.apache.org/viewvc?view=rev&rev=521689
Log:
Removed persistant parameter form ctx parameter storage logic
AXIS2C-207
Modified:
webservices/axis2/trunk/c/include/axis2_ctx.h
webservices/axis2/trunk/c/include/axis2_msg_ctx.h
webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c
webservices/axis2/trunk/c/modules/core/clientapi/op_client.c
webservices/axis2/trunk/c/modules/core/context/ctx.c
webservices/axis2/trunk/c/modules/core/context/msg_ctx.c
webservices/axis2/trunk/c/modules/core/transport/http/sender/http_sender.c
webservices/axis2/trunk/c/modules/core/transport/http/sender/http_transport_sender.c
webservices/axis2/trunk/c/modules/core/transport/http/sender/libcurl/axis2_libcurl.c
webservices/axis2/trunk/c/modules/core/transport/http/util/http_transport_utils.c
webservices/axis2/trunk/c/modules/mod_addr/addr_in_handler.c
webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c
webservices/axis2/trunk/c/samples/server/sg_math/add.c
Modified: webservices/axis2/trunk/c/include/axis2_ctx.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_ctx.h?view=diff&rev=521689&r1=521688&r2=521689
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_ctx.h (original)
+++ webservices/axis2/trunk/c/include/axis2_ctx.h Fri Mar 23 05:06:44 2007
@@ -72,8 +72,7 @@
axis2_ctx_set_property(struct axis2_ctx *ctx,
const axis2_env_t *env,
const axis2_char_t *key,
- axis2_property_t *value,
- const axis2_bool_t persistent);
+ axis2_property_t *value);
/**
* Gets the property with the given key.
@@ -88,8 +87,7 @@
AXIS2_EXTERN axis2_property_t *AXIS2_CALL
axis2_ctx_get_property(const axis2_ctx_t *ctx,
const axis2_env_t *env,
- const axis2_char_t *key,
- const axis2_bool_t persistent);
+ const axis2_char_t *key);
/**
* Gets the non-persistent map of properties.
Modified: webservices/axis2/trunk/c/include/axis2_msg_ctx.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_msg_ctx.h?view=diff&rev=521689&r1=521688&r2=521689
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_msg_ctx.h (original)
+++ webservices/axis2/trunk/c/include/axis2_msg_ctx.h Fri Mar 23 05:06:44 2007
@@ -855,8 +855,7 @@
AXIS2_EXTERN axis2_property_t *AXIS2_CALL
axis2_msg_ctx_get_property(const axis2_msg_ctx_t *msg_ctx,
const axis2_env_t *env,
- const axis2_char_t *key,
- const axis2_bool_t persistent);
+ const axis2_char_t *key);
/**
* Sets property with given key.
@@ -873,8 +872,7 @@
axis2_msg_ctx_set_property(axis2_msg_ctx_t *msg_ctx,
const axis2_env_t *env,
const axis2_char_t *key,
- axis2_property_t *value,
- const axis2_bool_t persistent);
+ axis2_property_t *value);
/**
* Gets the QName of the handler at which invocation was paused.
* @param msg_ctx message context
Modified: webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c?view=diff&rev=521689&r1=521688&r2=521689
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c Fri Mar 23 05:06:44 2007
@@ -504,8 +504,7 @@
engine = axis2_engine_create(env, conf_ctx);
if (!engine)
return NULL;
- property = axis2_msg_ctx_get_property(msg_ctx, env, AXIS2_TIMEOUT_IN_SECONDS,
- AXIS2_FALSE);
+ property = axis2_msg_ctx_get_property(msg_ctx, env, AXIS2_TIMEOUT_IN_SECONDS);
if(property)
{
axis2_char_t *value = axis2_property_get_value(property, env);
@@ -545,11 +544,10 @@
if (!response)
return NULL;
- property = axis2_msg_ctx_get_property(msg_ctx, env,AXIS2_TRANSPORT_IN, AXIS2_FALSE);
+ property = axis2_msg_ctx_get_property(msg_ctx, env,AXIS2_TRANSPORT_IN);
if (property)
{
- axis2_msg_ctx_set_property(response, env, AXIS2_TRANSPORT_IN, property,
- AXIS2_FALSE);
+ axis2_msg_ctx_set_property(response, env, AXIS2_TRANSPORT_IN, property);
property = NULL;
}
@@ -602,7 +600,7 @@
* way single channel
*/
property = axis2_msg_ctx_get_property(msg_ctx, env,
- AXIS2_HANDLER_ALREADY_VISITED, AXIS2_FALSE);
+ AXIS2_HANDLER_ALREADY_VISITED);
if(property)
{
axis2_char_t *value = axis2_property_get_value(property, env);
@@ -637,8 +635,7 @@
/* property is NULL, and we set null for AXIS2_TRANSPORT_IN in msg_ctx to
avoid double free of this property */
- axis2_msg_ctx_set_property(msg_ctx, env, AXIS2_TRANSPORT_IN, property,
- AXIS2_FALSE);
+ axis2_msg_ctx_set_property(msg_ctx, env, AXIS2_TRANSPORT_IN, property);
if (engine)
{
@@ -670,11 +667,10 @@
if (!response)
return NULL;
- property = axis2_msg_ctx_get_property(msg_ctx, env, AXIS2_TRANSPORT_IN, AXIS2_FALSE);
+ property = axis2_msg_ctx_get_property(msg_ctx, env, AXIS2_TRANSPORT_IN);
if (property)
{
- axis2_msg_ctx_set_property(response, env, AXIS2_TRANSPORT_IN, property,
- AXIS2_FALSE);
+ axis2_msg_ctx_set_property(response, env, AXIS2_TRANSPORT_IN, property);
property = NULL;
}
@@ -724,8 +720,7 @@
/* property is NULL, and we set null for AXIS2_TRANSPORT_IN in msg_ctx to
avoid double free of this property */
- axis2_msg_ctx_set_property(msg_ctx, env, AXIS2_TRANSPORT_IN, property,
- AXIS2_FALSE);
+ axis2_msg_ctx_set_property(msg_ctx, env, AXIS2_TRANSPORT_IN, property);
if (engine)
{
Modified: webservices/axis2/trunk/c/modules/core/clientapi/op_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/clientapi/op_client.c?view=diff&rev=521689&r1=521688&r2=521689
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/op_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/op_client.c Fri Mar 23 05:06:44 2007
@@ -192,7 +192,7 @@
if(! axis2_msg_ctx_get_doing_rest(out_msg_ctx, env))
{
dump_property = axis2_msg_ctx_get_property(out_msg_ctx, env,
- AXIS2_DUMP_INPUT_MSG_TRUE, AXIS2_FALSE);
+ AXIS2_DUMP_INPUT_MSG_TRUE);
if(dump_property)
{
dump_value = (axis2_char_t *) axis2_property_get_value (
Modified: webservices/axis2/trunk/c/modules/core/context/ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/context/ctx.c?view=diff&rev=521689&r1=521688&r2=521689
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/ctx.c Fri Mar 23 05:06:44 2007
@@ -68,71 +68,47 @@
axis2_ctx_set_property(struct axis2_ctx *ctx,
const axis2_env_t *env,
const axis2_char_t *key,
- axis2_property_t *value,
- const axis2_bool_t persistent)
+ axis2_property_t *value)
{
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
- if (persistent)
+ if (value)
{
- if (ctx->persistent_map)
- {
- axis2_hash_set(ctx->persistent_map, key,
- AXIS2_HASH_KEY_STRING, value);
- }
- }
- else
- {
- if (value)
- {
- /* handle the case where we are setting a new value with the
- same key, we would have to free the existing value */
- axis2_property_t *temp_value = axis2_hash_get(ctx->non_persistent_map,
- key,
- AXIS2_HASH_KEY_STRING);
- if (temp_value)
+ /* handle the case where we are setting a new value with the
+ same key, we would have to free the existing value */
+ axis2_property_t *temp_value = axis2_hash_get(ctx->non_persistent_map,
+ key,
+ AXIS2_HASH_KEY_STRING);
+ if (temp_value)
+ {
+ void *temp_value_value = axis2_property_get_value (temp_value, env);
+ void *value_value = axis2_property_get_value (value, env);
+ if (temp_value_value != value_value)
{
- void *temp_value_value = axis2_property_get_value (temp_value, env);
- void *value_value = axis2_property_get_value (value, env);
- if (temp_value_value != value_value)
- {
- axis2_property_free(temp_value, env);
- }
+ axis2_property_free(temp_value, env);
}
- }
- if (ctx->non_persistent_map)
- {
- axis2_hash_set(ctx->non_persistent_map, key,
- AXIS2_HASH_KEY_STRING, value);
- }
+ }
+ }
+ if (ctx->non_persistent_map)
+ {
+ axis2_hash_set(ctx->non_persistent_map, key,
+ AXIS2_HASH_KEY_STRING, value);
}
+
return AXIS2_SUCCESS;
}
AXIS2_EXTERN axis2_property_t *AXIS2_CALL
axis2_ctx_get_property(const axis2_ctx_t *ctx,
const axis2_env_t *env,
- const axis2_char_t *key,
- const axis2_bool_t persistent)
+ const axis2_char_t *key)
{
axis2_property_t *ret = NULL;
- if (persistent)
- {
- if (ctx->persistent_map)
- {
- ret = axis2_hash_get(ctx->persistent_map, key,
- AXIS2_HASH_KEY_STRING);
- }
- }
-
- if (!ret)
+ if (ctx->non_persistent_map)
{
- if (ctx->non_persistent_map)
- {
- ret = axis2_hash_get(ctx->non_persistent_map, key,
- AXIS2_HASH_KEY_STRING);
- }
+ ret = axis2_hash_get(ctx->non_persistent_map, key,
+ AXIS2_HASH_KEY_STRING);
}
/** it is the responsibility of the caller to look-up parent if key is not found here
Note that in C implementation it is the responsibility of the deriving struct to
Modified: webservices/axis2/trunk/c/modules/core/context/msg_ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/context/msg_ctx.c?view=diff&rev=521689&r1=521688&r2=521689
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/msg_ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/msg_ctx.c Fri Mar 23 05:06:44 2007
@@ -1143,8 +1143,7 @@
axis2_msg_ctx_get_property(
const axis2_msg_ctx_t *msg_ctx,
const axis2_env_t *env,
- const axis2_char_t *key,
- const axis2_bool_t persistent)
+ const axis2_char_t *key)
{
void *obj = NULL;
axis2_ctx_t *ctx = NULL;
@@ -1152,7 +1151,7 @@
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
/* search in message context */
- obj = axis2_ctx_get_property(msg_ctx->base, env, key, persistent);
+ obj = axis2_ctx_get_property(msg_ctx->base, env, key);
if (obj)
{
return obj;
@@ -1163,7 +1162,7 @@
ctx = axis2_op_ctx_get_base(msg_ctx->op_ctx, env);
if (ctx)
{
- obj = axis2_ctx_get_property(ctx, env, key, persistent);
+ obj = axis2_ctx_get_property(ctx, env, key);
if (obj)
{
return obj;
@@ -1176,7 +1175,7 @@
ctx = axis2_svc_ctx_get_base(msg_ctx->svc_ctx, env);
if (ctx)
{
- obj = axis2_ctx_get_property(ctx, env, key, persistent);
+ obj = axis2_ctx_get_property(ctx, env, key);
if (obj)
{
return obj;
@@ -1189,7 +1188,7 @@
ctx = axis2_svc_grp_ctx_get_base(msg_ctx->svc_grp_ctx, env);
if (ctx)
{
- obj = axis2_ctx_get_property(ctx, env, key, persistent);
+ obj = axis2_ctx_get_property(ctx, env, key);
if (obj)
{
return obj;
@@ -1202,7 +1201,7 @@
ctx = axis2_conf_ctx_get_base(msg_ctx->conf_ctx, env);
if (ctx)
{
- obj = axis2_ctx_get_property(ctx, env, key, persistent);
+ obj = axis2_ctx_get_property(ctx, env, key);
if (obj)
{
return obj;
@@ -1218,12 +1217,11 @@
struct axis2_msg_ctx *msg_ctx,
const axis2_env_t *env,
const axis2_char_t *key,
- axis2_property_t *value,
- axis2_bool_t persistent)
+ axis2_property_t *value)
{
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
- return axis2_ctx_set_property(msg_ctx->base, env, key, value, persistent);
+ return axis2_ctx_set_property(msg_ctx->base, env, key, value);
}
const axis2_string_t *AXIS2_CALL
@@ -1576,7 +1574,7 @@
axis2_ctx_set_non_persistent_map(msg_ctx->base, env,
axis2_options_get_properties(options, env));
rest_val = (axis2_property_t *) axis2_msg_ctx_get_property(msg_ctx, env,
- AXIS2_ENABLE_REST, AXIS2_FALSE);
+ AXIS2_ENABLE_REST);
if (rest_val)
{
value = (axis2_char_t *)axis2_property_get_value(rest_val, env);
Modified: webservices/axis2/trunk/c/modules/core/transport/http/sender/http_sender.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/sender/http_sender.c?view=diff&rev=521689&r1=521688&r2=521689
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/sender/http_sender.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/sender/http_sender.c Fri Mar 23 05:06:44 2007
@@ -306,7 +306,7 @@
data_out = AXIOM_NODE_GET_FIRST_ELEMENT(body_node, env);
method = (axis2_property_t *) axis2_msg_ctx_get_property(msg_ctx, env,
- AXIS2_HTTP_METHOD, AXIS2_FALSE);
+ AXIS2_HTTP_METHOD);
if (method)
method_value = (axis2_char_t *) axis2_property_get_value (method, env);
@@ -351,7 +351,7 @@
axis2_http_client_free_void_arg);
axis2_property_set_value(property, env, sender_impl->client);
axis2_msg_ctx_set_property(msg_ctx, env, AXIS2_HTTP_CLIENT,
- property, AXIS2_FALSE);*/
+ property);*/
doing_mtom = axis2_msg_ctx_get_doing_mtom(msg_ctx, env);
@@ -376,7 +376,7 @@
if (is_soap)
{
dump_property = axis2_msg_ctx_get_property(msg_ctx, env,
- AXIS2_DUMP_INPUT_MSG_TRUE, AXIS2_FALSE);
+ AXIS2_DUMP_INPUT_MSG_TRUE);
if(dump_property)
{
axis2_char_t *dump_true = axis2_property_get_value(dump_property, env);
@@ -533,8 +533,7 @@
{
content_type_property = (axis2_property_t *) axis2_msg_ctx_get_property(
msg_ctx, env,
- AXIS2_USER_DEFINED_HTTP_HEADER_CONTENT_TYPE,
- AXIS2_FALSE);
+ AXIS2_USER_DEFINED_HTTP_HEADER_CONTENT_TYPE);
if (content_type_property)
{
@@ -594,9 +593,6 @@
AXIS2_HTTP_CLIENT_SET_TIMEOUT(sender_impl->client, env,
sender_impl->so_timeout);
- /* TODO: Load from property
- * ssl_pp_property = axis2_msg_ctx_get_property(AXIS2_SSL_PASSPHRASE);*/
-
ssl_pp_param = axis2_msg_ctx_get_parameter(msg_ctx, env, AXIS2_SSL_PASSPHRASE);
if (ssl_pp_param)
@@ -746,8 +742,7 @@
/* axis2_property_set_value(property, env, transfer_encoding); */
/* axis2_msg_ctx_set_property(msg_ctx, env, */
/* AXIS2_HTTP_HEADER_TRANSFER_ENCODING, */
-/* property, */
-/* AXIS2_FALSE); */
+/* property); */
/* response_chunked = AXIS2_TRUE; */
transfer_encoding =
axis2_strdup(AXIS2_HTTP_HEADER_TRANSFER_ENCODING_CHUNKED,
@@ -784,7 +779,7 @@
axis2_property_set_value(property, env, axis2_strdup(content_type,
env));
axis2_ctx_set_property(axis_ctx, env, MTOM_RECIVED_CONTENT_TYPE,
- property, AXIS2_FALSE);
+ property);
}
}
if (charset)
@@ -797,7 +792,7 @@
axis2_property_set_scope(property, env, AXIS2_SCOPE_REQUEST);
axis2_property_set_value(property, env, charset);
axis2_ctx_set_property(axis_ctx, env, AXIS2_CHARACTER_SET_ENCODING,
- property, AXIS2_FALSE);
+ property);
}
}
if (AXIS2_FALSE == response_chunked)
@@ -814,8 +809,7 @@
axis2_property_set_scope(property, env, AXIS2_SCOPE_REQUEST);
axis2_property_set_value(property, env, content_length);
axis2_msg_ctx_set_property(msg_ctx, env,
- AXIS2_HTTP_HEADER_CONTENT_LENGTH, property,
- AXIS2_FALSE);
+ AXIS2_HTTP_HEADER_CONTENT_LENGTH, property);
}
return AXIS2_SUCCESS;
}
@@ -849,10 +843,8 @@
axis2_property_set_scope(property, env, AXIS2_SCOPE_REQUEST);
axis2_property_set_free_func(property, env, axis2_stream_free_void_arg);
axis2_property_set_value(property, env, in_stream);
- /*axis2_ctx_set_property(axis_ctx, env, AXIS2_TRANSPORT_IN, property,
- AXIS2_FALSE);*/
- axis2_msg_ctx_set_property(msg_ctx, env, AXIS2_TRANSPORT_IN, property,
- AXIS2_FALSE);
+ /*axis2_ctx_set_property(axis_ctx, env, AXIS2_TRANSPORT_IN, property);*/
+ axis2_msg_ctx_set_property(msg_ctx, env, AXIS2_TRANSPORT_IN, property);
return AXIS2_SUCCESS;
}
@@ -1019,7 +1011,7 @@
sender_impl = AXIS2_INTF_TO_IMPL(sender);
server_cert_property = axis2_msg_ctx_get_property(msg_ctx, env,
- AXIS2_SSL_SERVER_CERT, AXIS2_FALSE);
+ AXIS2_SSL_SERVER_CERT);
if(server_cert_property)
{
server_cert = (axis2_char_t *) axis2_property_get_value(
@@ -1062,7 +1054,7 @@
sender_impl = AXIS2_INTF_TO_IMPL(sender);
key_file_property = axis2_msg_ctx_get_property(msg_ctx, env,
- AXIS2_SSL_KEY_FILE, AXIS2_FALSE);
+ AXIS2_SSL_KEY_FILE);
if(key_file_property)
{
key_file = (axis2_char_t *) axis2_property_get_value(
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=521689&r1=521688&r2=521689
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/sender/http_transport_sender.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/sender/http_transport_sender.c Fri Mar 23 05:06:44 2007
@@ -178,7 +178,7 @@
AXIS2_PARAM_CHECK(env->error, msg_ctx, AXIS2_FAILURE);
/*property = axis2_msg_ctx_get_property(msg_ctx, env,
- AXIS2_CHARACTER_SET_ENCODING, AXIS2_FALSE);
+ AXIS2_CHARACTER_SET_ENCODING);
if (property)
{
char_set_enc = axis2_property_get_value(property, env);
@@ -199,7 +199,7 @@
if (ctx)
{
property = axis2_ctx_get_property(ctx, env,
- AXIS2_CHARACTER_SET_ENCODING, AXIS2_FALSE);
+ AXIS2_CHARACTER_SET_ENCODING);
if (property)
{
char_set_enc = axis2_property_get_value(property, env);
Modified: webservices/axis2/trunk/c/modules/core/transport/http/sender/libcurl/axis2_libcurl.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/sender/libcurl/axis2_libcurl.c?view=diff&rev=521689&r1=521688&r2=521689
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/sender/libcurl/axis2_libcurl.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/sender/libcurl/axis2_libcurl.c Fri Mar 23 05:06:44 2007
@@ -118,7 +118,7 @@
data_out = AXIOM_NODE_GET_FIRST_ELEMENT(body_node, env);
method = (axis2_property_t *) axis2_msg_ctx_get_property(msg_ctx, env,
- AXIS2_HTTP_METHOD, AXIS2_FALSE);
+ AXIS2_HTTP_METHOD);
if (method)
method_value = (axis2_char_t *) axis2_property_get_value (method, env);
@@ -232,8 +232,7 @@
AXIOM_NODE_SERIALIZE(data_out, env, om_output);
content_type_property = (axis2_property_t *) axis2_msg_ctx_get_property(
msg_ctx, env,
- AXIS2_USER_DEFINED_HTTP_HEADER_CONTENT_TYPE,
- AXIS2_FALSE);
+ AXIS2_USER_DEFINED_HTTP_HEADER_CONTENT_TYPE);
if (content_type_property)
{
@@ -301,8 +300,7 @@
axis2_property_set_scope(trans_in_property, env, AXIS2_SCOPE_REQUEST);
axis2_property_set_free_func(trans_in_property, env, axis2_stream_free_void_arg);
axis2_property_set_value(trans_in_property, env, in_stream);
- axis2_msg_ctx_set_property(msg_ctx, env, AXIS2_TRANSPORT_IN, trans_in_property,
- AXIS2_FALSE);
+ axis2_msg_ctx_set_property(msg_ctx, env, AXIS2_TRANSPORT_IN, trans_in_property);
return AXIS2_SUCCESS;
}
Modified: webservices/axis2/trunk/c/modules/core/transport/http/util/http_transport_utils.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/util/http_transport_utils.c?view=diff&rev=521689&r1=521688&r2=521689
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/util/http_transport_utils.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/util/http_transport_utils.c Fri Mar 23 05:06:44 2007
@@ -604,7 +604,7 @@
value = axis2_param_get_value(param, env);
property = axis2_msg_ctx_get_property(msg_ctx, env,
- AXIS2_ENABLE_MTOM, AXIS2_FALSE);
+ AXIS2_ENABLE_MTOM);
if (property)
value = (axis2_char_t *)axis2_property_get_value(property, env);
@@ -1035,7 +1035,7 @@
property = axis2_msg_ctx_get_property(msg_ctx, env,
- AXIS2_TRANSPORT_IN, AXIS2_FALSE);
+ AXIS2_TRANSPORT_IN);
if (property)
{
in_stream = axis2_property_get_value(property, env);
@@ -1056,7 +1056,7 @@
callback_ctx->chunked_stream = NULL;
property = axis2_msg_ctx_get_property(msg_ctx, env,
- AXIS2_HTTP_HEADER_CONTENT_LENGTH, AXIS2_FALSE);
+ AXIS2_HTTP_HEADER_CONTENT_LENGTH);
if (property)
{
content_length = axis2_property_get_value(property, env);
@@ -1096,14 +1096,14 @@
if (ctx)
{
property = axis2_ctx_get_property(ctx, env,
- AXIS2_CHARACTER_SET_ENCODING, AXIS2_FALSE);
+ AXIS2_CHARACTER_SET_ENCODING);
if (property)
{
char_set_enc = axis2_property_get_value(property, env);
property = NULL;
}
property = axis2_ctx_get_property(ctx, env,
- MTOM_RECIVED_CONTENT_TYPE, AXIS2_FALSE);
+ MTOM_RECIVED_CONTENT_TYPE);
if (property)
{
content_type = axis2_property_get_value(property, 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=521689&r1=521688&r2=521689
==============================================================================
--- webservices/axis2/trunk/c/modules/mod_addr/addr_in_handler.c (original)
+++ webservices/axis2/trunk/c/modules/mod_addr/addr_in_handler.c Fri Mar 23 05:06:44 2007
@@ -179,7 +179,7 @@
property = axis2_property_create(env);
axis2_property_set_scope(property, env, AXIS2_SCOPE_REQUEST);
axis2_property_set_value(property, env, addr_ns_str);
- axis2_ctx_set_property(ctx, env, AXIS2_WSA_VERSION, property, AXIS2_FALSE);
+ axis2_ctx_set_property(ctx, env, AXIS2_WSA_VERSION, property);
}
/* extract service group context, if available */
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=521689&r1=521688&r2=521689
==============================================================================
--- webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c (original)
+++ webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c Fri Mar 23 05:06:44 2007
@@ -136,7 +136,7 @@
ctx = axis2_msg_ctx_get_base(msg_ctx, env);
property =
- axis2_ctx_get_property(ctx, env, AXIS2_WSA_VERSION, AXIS2_FALSE);
+ axis2_ctx_get_property(ctx, env, AXIS2_WSA_VERSION);
if (property)
{
addressing_version_from_msg_ctx = axis2_property_get_value(property,
@@ -178,8 +178,7 @@
in_ctx = axis2_msg_ctx_get_base(in_msg_ctx, env);
property =
- axis2_ctx_get_property(in_ctx, env, AXIS2_WSA_VERSION,
- AXIS2_FALSE);
+ axis2_ctx_get_property(in_ctx, env, AXIS2_WSA_VERSION);
if (property)
{
addr_ns = axis2_property_get_value(property, env);
Modified: webservices/axis2/trunk/c/samples/server/sg_math/add.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/sg_math/add.c?view=diff&rev=521689&r1=521688&r2=521689
==============================================================================
--- webservices/axis2/trunk/c/samples/server/sg_math/add.c (original)
+++ webservices/axis2/trunk/c/samples/server/sg_math/add.c Fri Mar 23 05:06:44 2007
@@ -134,7 +134,7 @@
{
axis2_property_t* prop = NULL;
/* get value */
- prop = axis2_ctx_get_property(ctx, env, "ADD_RESULT", AXIS2_FALSE);
+ prop = axis2_ctx_get_property(ctx, env, "ADD_RESULT");
if (prop)
{
axis2_char_t *val = (axis2_char_t*)axis2_property_get_value(prop, env);
@@ -145,7 +145,7 @@
if (prop)
{
axis2_property_set_value(prop, env, axis2_strdup(result_str, env));
- axis2_ctx_set_property(ctx, env, "ADD_RESULT", prop, AXIS2_FALSE);
+ axis2_ctx_set_property(ctx, env, "ADD_RESULT", prop);
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org