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 2005/12/14 05:44:41 UTC
svn commit: r356730 - in /webservices/axis2/trunk/c: include/axis2_msg_ctx.h
modules/core/context/src/msg_ctx.c modules/core/engine/src/engine.c
Author: samisa
Date: Tue Dec 13 20:44:31 2005
New Revision: 356730
URL: http://svn.apache.org/viewcvs?rev=356730&view=rev
Log:
Removed session context as that is not being used.
Modified:
webservices/axis2/trunk/c/include/axis2_msg_ctx.h
webservices/axis2/trunk/c/modules/core/context/src/msg_ctx.c
webservices/axis2/trunk/c/modules/core/engine/src/engine.c
Modified: webservices/axis2/trunk/c/include/axis2_msg_ctx.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_msg_ctx.h?rev=356730&r1=356729&r2=356730&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_msg_ctx.h (original)
+++ webservices/axis2/trunk/c/include/axis2_msg_ctx.h Tue Dec 13 20:44:31 2005
@@ -69,7 +69,6 @@
struct axis2_svc_grp_ctx;
struct axis2_svc_ctx;
struct axis2_op_ctx;
-struct axis2_session_ctx;
struct axis2_conf;
struct axis2_soap_envelope;
@@ -167,12 +166,6 @@
/**
* @return
*/
- struct axis2_session_ctx* (AXIS2_CALL *get_session_ctx)(struct axis2_msg_ctx *msg_ctx,
- axis2_env_t **env);
-
- /**
- * @return
- */
axis2_endpoint_ref_t* (AXIS2_CALL *get_to)(struct axis2_msg_ctx *msg_ctx,
axis2_env_t **env);
@@ -584,8 +577,7 @@
axis2_msg_ctx_create (axis2_env_t **env,
struct axis2_conf_ctx *conf_ctx,
struct axis2_transport_in_desc *transport_in_desc,
- struct axis2_transport_out_desc *transport_out_desc,
- struct axis2_session_ctx *session_ctx);
+ struct axis2_transport_out_desc *transport_out_des);
/************************** Start of function macros **************************/
@@ -606,7 +598,6 @@
#define AXIS2_MSG_CTX_GET_REPLY_TO(msg_ctx, env) ((msg_ctx)->ops->get_reply_to(msg_ctx, env))
#define AXIS2_MSG_CTX_GET_RESPONSE_WRITTEN(msg_ctx, env) ((msg_ctx)->ops->get_response_written(msg_ctx, env))
#define AXIS2_MSG_CTX_GET_SERVER_SIDE(msg_ctx, env) ((msg_ctx)->ops->get_server_side(msg_ctx, env))
-#define AXIS2_MSG_CTX_GET_SESSION_CTX(msg_ctx, env) ((msg_ctx)->ops->get_session_ctx(msg_ctx, env))
#define AXIS2_MSG_CTX_GET_TO(msg_ctx, env) ((msg_ctx)->ops->get_to(msg_ctx, env))
#define AXIS2_MSG_CTX_SET_FAULT_TO(msg_ctx, env, reference) ((msg_ctx)->ops->set_fault_to(msg_ctx, env, reference))
#define AXIS2_MSG_CTX_SET_FROM(msg_ctx, env, reference) ((msg_ctx)->ops->set_from(msg_ctx, env, reference))
Modified: webservices/axis2/trunk/c/modules/core/context/src/msg_ctx.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/context/src/msg_ctx.c?rev=356730&r1=356729&r2=356730&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/src/msg_ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/src/msg_ctx.c Tue Dec 13 20:44:31 2005
@@ -51,8 +51,6 @@
struct axis2_svc_ctx *svc_ctx;
struct axis2_svc_grp_ctx *svc_grp_ctx;
struct axis2_conf_ctx *conf_ctx;
- /** session context */
- struct axis2_session_ctx *session_ctx;
/** op */
axis2_op_t *op;
@@ -162,9 +160,6 @@
axis2_bool_t AXIS2_CALL
axis2_msg_ctx_get_server_side(struct axis2_msg_ctx *msg_ctx,
axis2_env_t **env);
-struct axis2_session_ctx* AXIS2_CALL
-axis2_msg_ctx_get_session_ctx(struct axis2_msg_ctx *msg_ctx,
- axis2_env_t **env);
axis2_endpoint_ref_t *AXIS2_CALL
axis2_msg_ctx_get_to(struct axis2_msg_ctx *msg_ctx,
axis2_env_t **env);
@@ -402,8 +397,7 @@
axis2_msg_ctx_create (axis2_env_t **env,
struct axis2_conf_ctx *conf_ctx,
struct axis2_transport_in_desc *transport_in_desc,
- struct axis2_transport_out_desc *transport_out_desc,
- struct axis2_session_ctx *session_ctx)
+ struct axis2_transport_out_desc *transport_out_desc)
{
axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
@@ -424,7 +418,6 @@
msg_ctx_impl->svc_ctx = NULL;
msg_ctx_impl->svc_grp_ctx = NULL;
msg_ctx_impl->conf_ctx = NULL;
- msg_ctx_impl->session_ctx = NULL;
msg_ctx_impl->op = NULL;
msg_ctx_impl->svc = NULL;
msg_ctx_impl->svc_grp = NULL;
@@ -472,20 +465,6 @@
if (msg_ctx_impl->transport_out_desc)
msg_ctx_impl->transport_out_desc_qname = AXIS2_TRANSPORT_OUT_DESC_GET_QNAME(transport_out_desc, env);
- if (session_ctx)
- {
- msg_ctx_impl->session_ctx = session_ctx;
- }
- else
- {
- /*msg_ctx_impl->session_ctx = axis2_session_ctx_create(env);
- if (!(msg_ctx_impl->session_ctx))
- {
- axis2_msg_ctx_free(&(msg_ctx_impl->msg_ctx), env);
- return NULL;
- }*/
- }
-
msg_ctx_impl->msg_info_headers = axis2_msg_info_headers_create(env, NULL, NULL);
if (!(msg_ctx_impl->msg_info_headers))
{
@@ -517,7 +496,6 @@
msg_ctx_impl->msg_ctx.ops->get_reply_to = axis2_msg_ctx_get_reply_to;
msg_ctx_impl->msg_ctx.ops->get_response_written = axis2_msg_ctx_get_response_written;
msg_ctx_impl->msg_ctx.ops->get_server_side = axis2_msg_ctx_get_server_side;
- msg_ctx_impl->msg_ctx.ops->get_session_ctx = axis2_msg_ctx_get_session_ctx;
msg_ctx_impl->msg_ctx.ops->get_to = axis2_msg_ctx_get_to;
msg_ctx_impl->msg_ctx.ops->set_fault_to = axis2_msg_ctx_set_fault_to;
msg_ctx_impl->msg_ctx.ops->set_from = axis2_msg_ctx_set_from;
@@ -851,13 +829,6 @@
{
AXIS2_FUNC_PARAM_CHECK(msg_ctx, env, AXIS2_FAILURE);
return AXIS2_INTF_TO_IMPL(msg_ctx)->server_side;
-}
-
-struct axis2_session_ctx * AXIS2_CALL axis2_msg_ctx_get_session_ctx(struct axis2_msg_ctx *msg_ctx,
- axis2_env_t **env)
-{
- AXIS2_FUNC_PARAM_CHECK(msg_ctx, env, NULL);
- return AXIS2_INTF_TO_IMPL(msg_ctx)->session_ctx;
}
axis2_endpoint_ref_t *AXIS2_CALL axis2_msg_ctx_get_to(struct axis2_msg_ctx *msg_ctx,
Modified: webservices/axis2/trunk/c/modules/core/engine/src/engine.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/engine/src/engine.c?rev=356730&r1=356729&r2=356730&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/src/engine.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/src/engine.c Tue Dec 13 20:44:31 2005
@@ -435,8 +435,7 @@
fault_ctx = axis2_msg_ctx_create(env, engine_impl->conf_ctx,
AXIS2_MSG_CTX_GET_TRANSPORT_IN_DESC(processing_context, env),
- AXIS2_MSG_CTX_GET_TRANSPORT_OUT_DESC(processing_context, env),
- AXIS2_MSG_CTX_GET_SESSION_CTX(processing_context, env));
+ AXIS2_MSG_CTX_GET_TRANSPORT_OUT_DESC(processing_context, env));
AXIS2_MSG_CTX_SET_PROCESS_FAULT(fault_ctx, env, AXIS2_TRUE);