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/09/28 11:53:04 UTC

svn commit: r580276 [4/26] - in /webservices/axis2/trunk/c/src: core/addr/ core/clientapi/ core/context/ core/deployment/ core/description/ core/engine/ core/phaseresolver/ core/receivers/ core/transport/ core/transport/http/common/ core/transport/http...

Modified: webservices/axis2/trunk/c/src/core/context/msg_ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/context/msg_ctx.c?rev=580276&r1=580275&r2=580276&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/context/msg_ctx.c (original)
+++ webservices/axis2/trunk/c/src/core/context/msg_ctx.c Fri Sep 28 02:52:58 2007
@@ -1,3 +1,4 @@
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -30,12 +31,16 @@
 
 struct axis2_msg_ctx
 {
+
     /** base context struct */
     axis2_ctx_t *base;
+
     /** parent of message context is an op context instance */
     struct axis2_op_ctx *parent;
+
     /** process fault enabled? */
     axis2_bool_t process_fault;
+
     /**
      * Addressing Information for Axis 2
      * Following Properties will be kept inside this, these fields will be initially filled by
@@ -52,8 +57,10 @@
 
     /** op */
     axis2_op_t *op;
+
     /** service */
     axis2_svc_t *svc;
+
     /** service group */
     axis2_svc_grp_t *svc_grp;
 
@@ -62,61 +69,88 @@
 
     /** SOAP envelope */
     axiom_soap_envelope_t *soap_envelope;
+
     /** Response SOAP envelope */
     axiom_soap_envelope_t *response_soap_envelope;
+
     /** SOAP Fault envelope */
     axiom_soap_envelope_t *fault_soap_envelope;
+
     /** in fault flow? */
     axis2_bool_t in_fault_flow;
+
     /** is this server side? */
     axis2_bool_t server_side;
+
     /** message ID */
     axis2_char_t *message_id;
+
     /** new thread required? */
     axis2_bool_t new_thread_required;
+
     /** paused */
     axis2_bool_t paused;
     axis2_bool_t keep_alive;
+
     /** output written? */
     axis2_bool_t output_written;
+
     /** service context ID */
     axis2_char_t *svc_ctx_id;
+
     /** paused phase name */
     axis2_char_t *paused_phase_name;
+
     /** paused handler name */
     axutil_string_t *paused_handler_name;
+
     /** SOAP action */
     axutil_string_t *soap_action;
+
     /** are we doing MTOM now? */
     axis2_bool_t doing_mtom;
+
     /** are we doing REST now? */
     axis2_bool_t doing_rest;
+
     /** Rest through HTTP POST? */
     axis2_bool_t do_rest_through_post;
+
     /** use SOAP 1.1? */
     axis2_bool_t is_soap_11;
+
     /** service group context id */
     axutil_string_t *svc_grp_ctx_id;
+
     /** qname of transport in */
     AXIS2_TRANSPORT_ENUMS transport_in_desc_enum;
+
     /** qname of transport out */
     AXIS2_TRANSPORT_ENUMS transport_out_desc_enum;
+
     /** service group id */
     axis2_char_t *svc_grp_id;
+
     /** service description qname */
     axutil_qname_t *svc_qname;
+
     /** op qname */
     axutil_qname_t *op_qname;
     /* To keep track of the direction */
     int flow;
+
     /** The chain of Handlers/Phases for processing this message */
     axutil_array_list_t *execution_chain;
+
     /** Index into the execution chain of the currently executing handler */
     int current_handler_index;
+
     /** Index of the paused  handler */
     int paused_handler_index;
+
     /** Index of the paused  phase */
     int paused_phase_index;
+
     /** Index into the current Phase of the currently executing handler (if any)*/
     int current_phase_index;
 
@@ -127,9 +161,11 @@
      * @param env pointer to environment struct
      * @return pointer to service to be invoked
      */
-    struct axis2_svc *(AXIS2_CALL *
-            find_svc)(axis2_msg_ctx_t *msg_ctx,
-                const axutil_env_t *env);
+    struct axis2_svc *(
+    AXIS2_CALL * find_svc) (
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env);
+
     /**
      * Finds the operation to be invoked in the given service. This function 
      * is used by dispatchers to locate the operation to be invoked.
@@ -138,10 +174,11 @@
      * @param svc pointer to service to whom the operation belongs 
      * @return pointer to the operation to be invoked
      */
-    struct axis2_op *(AXIS2_CALL *
-            find_op)( axis2_msg_ctx_t *msg_ctx,
-                const axutil_env_t *env,
-                struct axis2_svc *svc);
+    struct axis2_op *(
+    AXIS2_CALL * find_op) (
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env,
+    struct axis2_svc * svc);
 
     axutil_string_t *charset_encoding;
     axutil_stream_t *transport_out_stream;
@@ -153,7 +190,7 @@
 
 AXIS2_EXTERN axis2_msg_ctx_t *AXIS2_CALL
 axis2_msg_ctx_create(
-    const axutil_env_t *env,
+    const axutil_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)
@@ -252,27 +289,26 @@
 
 /******************************************************************************/
 struct axis2_ctx *AXIS2_CALL
-            axis2_msg_ctx_get_base(
-                const axis2_msg_ctx_t *msg_ctx,
-                const axutil_env_t *env)
+axis2_msg_ctx_get_base(
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->base;
 }
 
-
 struct axis2_op_ctx *AXIS2_CALL
-            axis2_msg_ctx_get_parent(
-                const axis2_msg_ctx_t *msg_ctx,
-                const axutil_env_t *env)
+axis2_msg_ctx_get_parent(
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->parent;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_parent(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    struct axis2_op_ctx *parent)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    struct axis2_op_ctx * parent)
 {
     if (parent)
     {
@@ -284,17 +320,17 @@
 
 void AXIS2_CALL
 axis2_msg_ctx_free(
-    axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     AXIS2_ENV_CHECK(env, void);
 
     if (msg_ctx->paused || msg_ctx->keep_alive)
         return;
-    
+
     if (msg_ctx->base)
     {
-         axis2_ctx_free(msg_ctx->base, env);
+        axis2_ctx_free(msg_ctx->base, env);
     }
 
     if (msg_ctx->msg_info_headers && msg_ctx->msg_info_headers_deep_copy)
@@ -336,27 +372,28 @@
     {
         axutil_string_free(msg_ctx->charset_encoding, env);
     }
-    
+
     if (msg_ctx->transport_out_stream)
     {
-       axutil_stream_free(msg_ctx->transport_out_stream, env); 
+        axutil_stream_free(msg_ctx->transport_out_stream, env);
     }
-    
+
     if (msg_ctx->http_out_transport_info)
     {
-        AXIS2_HTTP_OUT_TRANSPORT_INFO_FREE(msg_ctx->http_out_transport_info, env);
+        AXIS2_HTTP_OUT_TRANSPORT_INFO_FREE(msg_ctx->http_out_transport_info,
+                                           env);
     }
-        
+
     if (msg_ctx->transport_headers)
     {
         axutil_hash_free(msg_ctx->transport_headers, env);
     }
-        
+
     if (msg_ctx->transfer_encoding)
     {
         AXIS2_FREE(env->allocator, msg_ctx->transfer_encoding);
     }
-    
+
     AXIS2_FREE(env->allocator, msg_ctx);
 
     return;
@@ -364,36 +401,41 @@
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_init(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    struct axis2_conf *conf)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    struct axis2_conf * conf)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     AXIS2_PARAM_CHECK(env->error, conf, AXIS2_FAILURE);
 
-    msg_ctx->transport_in_desc =  axis2_conf_get_transport_in(conf, env,
-        msg_ctx->transport_in_desc_enum);
-
-    msg_ctx->transport_out_desc =  axis2_conf_get_transport_out(conf,
-        env, msg_ctx->transport_out_desc_enum);
+    msg_ctx->transport_in_desc = axis2_conf_get_transport_in(conf, env,
+                                                             msg_ctx->
+                                                             transport_in_desc_enum);
+
+    msg_ctx->transport_out_desc = axis2_conf_get_transport_out(conf,
+                                                               env,
+                                                               msg_ctx->
+                                                               transport_out_desc_enum);
 
     if (msg_ctx->svc_grp_id)
     {
         msg_ctx->svc_grp = axis2_conf_get_svc_grp(conf, env,
-                msg_ctx->svc_grp_id);
+                                                  msg_ctx->svc_grp_id);
     }
 
     if (msg_ctx->svc_qname)
     {
         msg_ctx->svc = axis2_conf_get_svc(conf, env,
-                axutil_qname_get_localpart(msg_ctx->svc_qname, env));
+                                          axutil_qname_get_localpart(msg_ctx->
+                                                                     svc_qname,
+                                                                     env));
     }
 
     if (msg_ctx->op_qname)
     {
         if (msg_ctx->svc)
             msg_ctx->op = axis2_svc_get_op_with_qname(msg_ctx->svc,
-                    env, msg_ctx->op_qname);
+                                                      env, msg_ctx->op_qname);
     }
 
     return AXIS2_SUCCESS;
@@ -401,24 +443,24 @@
 
 axis2_endpoint_ref_t *AXIS2_CALL
 axis2_msg_ctx_get_fault_to(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     AXIS2_ENV_CHECK(env, NULL);
 
     if (msg_ctx->msg_info_headers)
     {
-        return axis2_msg_info_headers_get_fault_to(msg_ctx->msg_info_headers, env);
+        return axis2_msg_info_headers_get_fault_to(msg_ctx->msg_info_headers,
+                                                   env);
     }
 
     return NULL;
 }
 
-
 axis2_endpoint_ref_t *AXIS2_CALL
 axis2_msg_ctx_get_from(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     AXIS2_ENV_CHECK(env, NULL);
 
@@ -432,47 +474,47 @@
 
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_get_in_fault_flow(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->in_fault_flow;
 }
 
 axiom_soap_envelope_t *AXIS2_CALL
 axis2_msg_ctx_get_soap_envelope(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->soap_envelope;
 }
 
 axiom_soap_envelope_t *AXIS2_CALL
 axis2_msg_ctx_get_response_soap_envelope(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->response_soap_envelope;
 }
 
 axiom_soap_envelope_t *AXIS2_CALL
 axis2_msg_ctx_get_fault_soap_envelope(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->fault_soap_envelope;
 }
 
 const axis2_char_t *AXIS2_CALL
 axis2_msg_ctx_get_msg_id(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     AXIS2_ENV_CHECK(env, NULL);
 
     if (msg_ctx->msg_info_headers)
     {
-        return axis2_msg_info_headers_get_message_id(
-                    msg_ctx->msg_info_headers, env);
+        return axis2_msg_info_headers_get_message_id(msg_ctx->msg_info_headers,
+                                                     env);
     }
 
     return NULL;
@@ -480,9 +522,9 @@
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_msg_id(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env,
-    axis2_char_t *msg_id)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env,
+    axis2_char_t * msg_id)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
@@ -497,22 +539,23 @@
 
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_get_process_fault(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->process_fault;
 }
 
 axis2_relates_to_t *AXIS2_CALL
 axis2_msg_ctx_get_relates_to(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     AXIS2_ENV_CHECK(env, NULL);
 
     if (msg_ctx->msg_info_headers)
     {
-        return axis2_msg_info_headers_get_relates_to(msg_ctx->msg_info_headers, env);
+        return axis2_msg_info_headers_get_relates_to(msg_ctx->msg_info_headers,
+                                                     env);
     }
 
     return NULL;
@@ -520,14 +563,15 @@
 
 axis2_endpoint_ref_t *AXIS2_CALL
 axis2_msg_ctx_get_reply_to(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     AXIS2_ENV_CHECK(env, NULL);
 
     if (msg_ctx->msg_info_headers)
     {
-        return axis2_msg_info_headers_get_reply_to(msg_ctx->msg_info_headers, env);
+        return axis2_msg_info_headers_get_reply_to(msg_ctx->msg_info_headers,
+                                                   env);
     }
 
     return NULL;
@@ -535,16 +579,16 @@
 
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_get_server_side(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->server_side;
 }
 
 axis2_endpoint_ref_t *AXIS2_CALL
 axis2_msg_ctx_get_to(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     AXIS2_ENV_CHECK(env, NULL);
 
@@ -556,19 +600,18 @@
     return NULL;
 }
 
-
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_fault_to(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    axis2_endpoint_ref_t *reference)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    axis2_endpoint_ref_t * reference)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
     if (msg_ctx->msg_info_headers)
     {
         return axis2_msg_info_headers_set_to(msg_ctx->msg_info_headers,
-                env, reference);
+                                             env, reference);
     }
 
     return AXIS2_SUCCESS;
@@ -576,37 +619,36 @@
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_from(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    axis2_endpoint_ref_t *reference)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    axis2_endpoint_ref_t * reference)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
     if (msg_ctx->msg_info_headers)
     {
         return axis2_msg_info_headers_set_from(msg_ctx->msg_info_headers,
-                env, reference);
+                                               env, reference);
     }
 
     return AXIS2_SUCCESS;
 }
 
-
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_in_fault_flow(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
     axis2_bool_t in_fault_flow)
 {
     msg_ctx->in_fault_flow = in_fault_flow;
-    return  AXIS2_SUCCESS;
+    return AXIS2_SUCCESS;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_soap_envelope(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    axiom_soap_envelope_t *soap_envelope)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    axiom_soap_envelope_t * soap_envelope)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
@@ -614,7 +656,8 @@
     {
         int soap_v = AXIOM_SOAP12;
         soap_v = axiom_soap_envelope_get_soap_version(soap_envelope, env);
-        msg_ctx->is_soap_11 = (soap_v == AXIOM_SOAP12) ? AXIS2_FALSE : AXIS2_TRUE;
+        msg_ctx->is_soap_11 =
+            (soap_v == AXIOM_SOAP12) ? AXIS2_FALSE : AXIS2_TRUE;
         msg_ctx->soap_envelope = soap_envelope;
     }
     else
@@ -625,12 +668,11 @@
     return AXIS2_SUCCESS;
 }
 
-
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_response_soap_envelope(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    axiom_soap_envelope_t *soap_envelope)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    axiom_soap_envelope_t * soap_envelope)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
@@ -649,72 +691,70 @@
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_fault_soap_envelope(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    axiom_soap_envelope_t *soap_envelope)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    axiom_soap_envelope_t * soap_envelope)
 {
-    msg_ctx->fault_soap_envelope  = soap_envelope ;
+    msg_ctx->fault_soap_envelope = soap_envelope;
     return AXIS2_SUCCESS;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_message_id(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    const axis2_char_t *message_id)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    const axis2_char_t * message_id)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
     if (msg_ctx->msg_info_headers)
     {
-        return axis2_msg_info_headers_set_message_id(
-                    msg_ctx->msg_info_headers, env, message_id);
+        return axis2_msg_info_headers_set_message_id(msg_ctx->msg_info_headers,
+                                                     env, message_id);
     }
 
     return AXIS2_SUCCESS;
 }
 
-
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_process_fault(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
     axis2_bool_t process_fault)
 {
-    msg_ctx->process_fault  = process_fault;
-    return  AXIS2_SUCCESS;
+    msg_ctx->process_fault = process_fault;
+    return AXIS2_SUCCESS;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_relates_to(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    axis2_relates_to_t *reference)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    axis2_relates_to_t * reference)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
     if (msg_ctx->msg_info_headers)
     {
-        return axis2_msg_info_headers_set_relates_to(
-                    msg_ctx->msg_info_headers, env, reference);
+        return axis2_msg_info_headers_set_relates_to(msg_ctx->msg_info_headers,
+                                                     env, reference);
     }
 
     return AXIS2_SUCCESS;
 }
 
-
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_reply_to(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    axis2_endpoint_ref_t *reference)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    axis2_endpoint_ref_t * reference)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
     if (msg_ctx->msg_info_headers)
     {
-        return axis2_msg_info_headers_set_reply_to(
-                    msg_ctx->msg_info_headers, env, reference);
+        return axis2_msg_info_headers_set_reply_to(msg_ctx->msg_info_headers,
+                                                   env, reference);
     }
 
     return AXIS2_SUCCESS;
@@ -722,26 +762,26 @@
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_server_side(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
     axis2_bool_t server_side)
 {
     msg_ctx->server_side = server_side;
-    return  AXIS2_SUCCESS;
+    return AXIS2_SUCCESS;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_to(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    axis2_endpoint_ref_t *reference)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    axis2_endpoint_ref_t * reference)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
     if (msg_ctx->msg_info_headers)
     {
         return axis2_msg_info_headers_set_to(msg_ctx->msg_info_headers,
-                env, reference);
+                                             env, reference);
     }
 
     return AXIS2_SUCCESS;
@@ -749,16 +789,16 @@
 
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_get_new_thread_required(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->new_thread_required;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_new_thread_required(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
     axis2_bool_t new_thread_required)
 {
     msg_ctx->new_thread_required = new_thread_required;
@@ -767,16 +807,16 @@
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_wsa_action(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    const axis2_char_t *action_uri)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    const axis2_char_t * action_uri)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
     if (msg_ctx->msg_info_headers)
     {
         return axis2_msg_info_headers_set_action(msg_ctx->msg_info_headers,
-                env, action_uri);
+                                                 env, action_uri);
     }
 
     return AXIS2_SUCCESS;
@@ -784,15 +824,15 @@
 
 const axis2_char_t *AXIS2_CALL
 axis2_msg_ctx_get_wsa_action(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     AXIS2_ENV_CHECK(env, NULL);
 
     if (msg_ctx->msg_info_headers)
     {
         return axis2_msg_info_headers_get_action(msg_ctx->msg_info_headers,
-                env);
+                                                 env);
     }
 
     return NULL;
@@ -800,16 +840,16 @@
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_wsa_message_id(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    const axis2_char_t *message_id)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    const axis2_char_t * message_id)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
     if (msg_ctx->msg_info_headers)
     {
-        return axis2_msg_info_headers_set_message_id(
-                    msg_ctx->msg_info_headers, env, message_id);
+        return axis2_msg_info_headers_set_message_id(msg_ctx->msg_info_headers,
+                                                     env, message_id);
     }
 
     return AXIS2_SUCCESS;
@@ -817,15 +857,15 @@
 
 const axis2_char_t *AXIS2_CALL
 axis2_msg_ctx_get_wsa_message_id(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     AXIS2_ENV_CHECK(env, NULL);
 
     if (msg_ctx->msg_info_headers)
     {
-        return axis2_msg_info_headers_get_message_id(
-                    msg_ctx->msg_info_headers, env);
+        return axis2_msg_info_headers_get_message_id(msg_ctx->msg_info_headers,
+                                                     env);
     }
 
     return NULL;
@@ -834,24 +874,24 @@
 
 axis2_msg_info_headers_t *AXIS2_CALL
 axis2_msg_ctx_get_msg_info_headers(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->msg_info_headers;
 }
 
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_get_paused(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->paused;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_paused(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
     axis2_bool_t paused)
 {
     msg_ctx->paused = paused;
@@ -861,8 +901,8 @@
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_keep_alive(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
     axis2_bool_t keep_alive)
 {
     msg_ctx->keep_alive = keep_alive;
@@ -871,33 +911,33 @@
 
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_is_keep_alive(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->keep_alive;
 }
 
 struct axis2_transport_in_desc *AXIS2_CALL
-            axis2_msg_ctx_get_transport_in_desc(
-                const axis2_msg_ctx_t *msg_ctx,
-                const axutil_env_t *env)
+axis2_msg_ctx_get_transport_in_desc(
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->transport_in_desc;
 }
 
 struct axis2_transport_out_desc *AXIS2_CALL
-            axis2_msg_ctx_get_transport_out_desc(
-                const axis2_msg_ctx_t *msg_ctx,
-                const axutil_env_t *env)
+axis2_msg_ctx_get_transport_out_desc(
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->transport_out_desc;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_transport_in_desc(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    struct axis2_transport_in_desc *transport_in_desc)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    struct axis2_transport_in_desc * transport_in_desc)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
@@ -913,9 +953,9 @@
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_transport_out_desc(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    struct axis2_transport_out_desc *transport_out_desc)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    struct axis2_transport_out_desc * transport_out_desc)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
@@ -930,18 +970,18 @@
 }
 
 struct axis2_op_ctx *AXIS2_CALL
-            axis2_msg_ctx_get_op_ctx(
-                const axis2_msg_ctx_t *msg_ctx,
-                const axutil_env_t *env)
+axis2_msg_ctx_get_op_ctx(
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->op_ctx;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_op_ctx(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    struct axis2_op_ctx *op_ctx)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    struct axis2_op_ctx * op_ctx)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
@@ -951,30 +991,29 @@
 
         if (msg_ctx->svc_ctx)
         {
-            if (!( axis2_op_ctx_get_parent(msg_ctx->op_ctx, env)))
+            if (!(axis2_op_ctx_get_parent(msg_ctx->op_ctx, env)))
             {
-                 axis2_op_ctx_set_parent(msg_ctx->op_ctx, env,
-                        msg_ctx->svc_ctx);
+                axis2_op_ctx_set_parent(msg_ctx->op_ctx, env, msg_ctx->svc_ctx);
             }
         }
         axis2_msg_ctx_set_parent(msg_ctx, env, op_ctx);
-        axis2_msg_ctx_set_op(msg_ctx, env,  axis2_op_ctx_get_op(op_ctx, env));
+        axis2_msg_ctx_set_op(msg_ctx, env, axis2_op_ctx_get_op(op_ctx, env));
     }
     return AXIS2_SUCCESS;
 }
 
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_get_output_written(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->output_written;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_output_written(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
     axis2_bool_t output_written)
 {
     msg_ctx->output_written = output_written;
@@ -983,17 +1022,17 @@
 
 const axis2_char_t *AXIS2_CALL
 axis2_msg_ctx_get_svc_ctx_id(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->svc_ctx_id;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_svc_ctx_id(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    const axis2_char_t *svc_ctx_id)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    const axis2_char_t * svc_ctx_id)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
@@ -1016,26 +1055,26 @@
 }
 
 struct axis2_conf_ctx *AXIS2_CALL
-            axis2_msg_ctx_get_conf_ctx(
-                const axis2_msg_ctx_t *msg_ctx,
-                const axutil_env_t *env)
+axis2_msg_ctx_get_conf_ctx(
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->conf_ctx;
 }
 
 struct axis2_svc_ctx *AXIS2_CALL
-            axis2_msg_ctx_get_svc_ctx(
-                const axis2_msg_ctx_t *msg_ctx,
-                const axutil_env_t *env)
+axis2_msg_ctx_get_svc_ctx(
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->svc_ctx;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_conf_ctx(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    struct axis2_conf_ctx *conf_ctx)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    struct axis2_conf_ctx * conf_ctx)
 {
     if (conf_ctx)
     {
@@ -1047,9 +1086,9 @@
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_svc_ctx(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    struct axis2_svc_ctx *svc_ctx)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    struct axis2_svc_ctx * svc_ctx)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
@@ -1059,10 +1098,11 @@
 
         if (msg_ctx->op_ctx)
         {
-            if (! axis2_op_ctx_get_parent(msg_ctx->op_ctx, env))
-                 axis2_op_ctx_set_parent(msg_ctx->op_ctx, env, svc_ctx);
+            if (!axis2_op_ctx_get_parent(msg_ctx->op_ctx, env))
+                axis2_op_ctx_set_parent(msg_ctx->op_ctx, env, svc_ctx);
         }
-        axis2_msg_ctx_set_svc(msg_ctx, env,  axis2_svc_ctx_get_svc(svc_ctx, env));
+        axis2_msg_ctx_set_svc(msg_ctx, env,
+                              axis2_svc_ctx_get_svc(svc_ctx, env));
     }
 
     return AXIS2_SUCCESS;
@@ -1070,16 +1110,15 @@
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_msg_info_headers(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    axis2_msg_info_headers_t *msg_info_headers)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    axis2_msg_info_headers_t * msg_info_headers)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
     if (msg_info_headers)
     {
-        if (msg_ctx->msg_info_headers && 
-            msg_ctx->msg_info_headers_deep_copy)
+        if (msg_ctx->msg_info_headers && msg_ctx->msg_info_headers_deep_copy)
         {
             axis2_msg_info_headers_free(msg_ctx->msg_info_headers, env);
             msg_ctx->msg_info_headers = NULL;
@@ -1091,12 +1130,11 @@
     return AXIS2_SUCCESS;
 }
 
-
 axutil_param_t *AXIS2_CALL
 axis2_msg_ctx_get_parameter(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env,
-    const axis2_char_t *key)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env,
+    const axis2_char_t * key)
 {
     axutil_param_t *param = NULL;
 
@@ -1122,7 +1160,7 @@
 
     if (msg_ctx->svc_grp)
     {
-        param =  axis2_svc_grp_get_param(msg_ctx->svc_grp, env, key);
+        param = axis2_svc_grp_get_param(msg_ctx->svc_grp, env, key);
         if (param)
         {
             return param;
@@ -1131,50 +1169,49 @@
 
     if (msg_ctx->conf_ctx)
     {
-        axis2_conf_t *conf =  axis2_conf_ctx_get_conf(msg_ctx->conf_ctx, env);
-        param =  axis2_conf_get_param(conf, env, key);
+        axis2_conf_t *conf = axis2_conf_ctx_get_conf(msg_ctx->conf_ctx, env);
+        param = axis2_conf_get_param(conf, env, key);
     }
 
     return param;
 }
 
-AXIS2_EXTERN void * AXIS2_CALL
+AXIS2_EXTERN void *AXIS2_CALL
 axis2_msg_ctx_get_property_value(
-    axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env,
-    const axis2_char_t *property_str)
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env,
+    const axis2_char_t * property_str)
 {
     axutil_property_t *property;
     void *property_value = NULL;
 
     property = axis2_msg_ctx_get_property(msg_ctx, env, property_str);
-    
+
     if (!property)
     {
-        AXIS2_LOG_WARNING(env->log, 
-                        AXIS2_LOG_SI, 
-                        "%s not set in message context", property_str);
+        AXIS2_LOG_WARNING(env->log,
+                          AXIS2_LOG_SI,
+                          "%s not set in message context", property_str);
         return NULL;
     }
-    
+
     property_value = axutil_property_get_value(property, env);
     if (!property_value)
     {
-        AXIS2_LOG_WARNING(env->log, AXIS2_LOG_SI, 
-                        "%s properties not set in message context", 
-                        property_str);
+        AXIS2_LOG_WARNING(env->log, AXIS2_LOG_SI,
+                          "%s properties not set in message context",
+                          property_str);
         return NULL;
     }
 
     return property_value;
 }
 
-
 axutil_property_t *AXIS2_CALL
 axis2_msg_ctx_get_property(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env,
-    const axis2_char_t *key)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env,
+    const axis2_char_t * key)
 {
     void *obj = NULL;
     axis2_ctx_t *ctx = NULL;
@@ -1182,7 +1219,7 @@
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
     /* search in message context */
-    obj =  axis2_ctx_get_property(msg_ctx->base, env, key);
+    obj = axis2_ctx_get_property(msg_ctx->base, env, key);
     if (obj)
     {
         return obj;
@@ -1193,7 +1230,7 @@
         ctx = axis2_op_ctx_get_base(msg_ctx->op_ctx, env);
         if (ctx)
         {
-            obj =  axis2_ctx_get_property(ctx, env, key);
+            obj = axis2_ctx_get_property(ctx, env, key);
             if (obj)
             {
                 return obj;
@@ -1206,7 +1243,7 @@
         ctx = axis2_svc_ctx_get_base(msg_ctx->svc_ctx, env);
         if (ctx)
         {
-            obj =  axis2_ctx_get_property(ctx, env, key);
+            obj = axis2_ctx_get_property(ctx, env, key);
             if (obj)
             {
                 return obj;
@@ -1216,10 +1253,10 @@
 
     if (msg_ctx->svc_grp_ctx)
     {
-        ctx =  axis2_svc_grp_ctx_get_base(msg_ctx->svc_grp_ctx, env);
+        ctx = axis2_svc_grp_ctx_get_base(msg_ctx->svc_grp_ctx, env);
         if (ctx)
         {
-            obj =  axis2_ctx_get_property(ctx, env, key);
+            obj = axis2_ctx_get_property(ctx, env, key);
             if (obj)
             {
                 return obj;
@@ -1229,10 +1266,10 @@
 
     if (msg_ctx->conf_ctx)
     {
-        ctx =  axis2_conf_ctx_get_base(msg_ctx->conf_ctx, env);
+        ctx = axis2_conf_ctx_get_base(msg_ctx->conf_ctx, env);
         if (ctx)
         {
-            obj =  axis2_ctx_get_property(ctx, env, key);
+            obj = axis2_ctx_get_property(ctx, env, key);
             if (obj)
             {
                 return obj;
@@ -1245,56 +1282,55 @@
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_property(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    const axis2_char_t *key,
-    axutil_property_t *value)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    const axis2_char_t * key,
+    axutil_property_t * value)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     return axis2_ctx_set_property(msg_ctx->base, env, key, value);
 }
 
-
 const axutil_string_t *AXIS2_CALL
 axis2_msg_ctx_get_paused_handler_name(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->paused_handler_name;
 }
 
 const axis2_char_t *AXIS2_CALL
 axis2_msg_ctx_get_paused_phase_name(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->paused_phase_name;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_paused_phase_name(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    const axis2_char_t *paused_phase_name)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    const axis2_char_t * paused_phase_name)
 {
     /* a shallow copy is sufficient as phase lives beyond message */
-    msg_ctx->paused_phase_name = (axis2_char_t *)paused_phase_name; 
+    msg_ctx->paused_phase_name = (axis2_char_t *) paused_phase_name;
     return AXIS2_SUCCESS;
 }
 
 axutil_string_t *AXIS2_CALL
-  axis2_msg_ctx_get_soap_action(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+axis2_msg_ctx_get_soap_action(
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->soap_action;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_soap_action(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    axutil_string_t *soap_action)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    axutil_string_t * soap_action)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
@@ -1317,15 +1353,15 @@
 
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_get_doing_mtom(
-    axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
     if (!(msg_ctx->doing_mtom) && msg_ctx->conf_ctx)
     {
-        axis2_conf_t *conf =  axis2_conf_ctx_get_conf(msg_ctx->conf_ctx, env);
-        msg_ctx->doing_mtom  = axis2_conf_get_enable_mtom(conf, env);
+        axis2_conf_t *conf = axis2_conf_ctx_get_conf(msg_ctx->conf_ctx, env);
+        msg_ctx->doing_mtom = axis2_conf_get_enable_mtom(conf, env);
     }
 
     return msg_ctx->doing_mtom;
@@ -1333,8 +1369,8 @@
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_doing_mtom(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
     axis2_bool_t doing_mtom)
 {
     msg_ctx->doing_mtom = doing_mtom;
@@ -1343,16 +1379,16 @@
 
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_get_doing_rest(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->doing_rest;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_doing_rest(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
     axis2_bool_t doing_rest)
 {
     msg_ctx->doing_rest = doing_rest;
@@ -1361,8 +1397,8 @@
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_do_rest_through_post(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
     axis2_bool_t do_rest_through_post)
 {
     msg_ctx->do_rest_through_post = do_rest_through_post;
@@ -1371,24 +1407,24 @@
 
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_get_do_rest_through_post(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->do_rest_through_post;
 }
 
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_get_is_soap_11(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->is_soap_11;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_is_soap_11(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
     axis2_bool_t is_soap11)
 {
     msg_ctx->is_soap_11 = is_soap11;
@@ -1396,18 +1432,18 @@
 }
 
 struct axis2_svc_grp_ctx *AXIS2_CALL
-            axis2_msg_ctx_get_svc_grp_ctx(
-                const axis2_msg_ctx_t *msg_ctx,
-                const axutil_env_t *env)
+axis2_msg_ctx_get_svc_grp_ctx(
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->svc_grp_ctx;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_svc_grp_ctx(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    struct axis2_svc_grp_ctx *svc_grp_ctx)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    struct axis2_svc_grp_ctx * svc_grp_ctx)
 {
 
     if (svc_grp_ctx)
@@ -1420,24 +1456,24 @@
 
 axis2_op_t *AXIS2_CALL
 axis2_msg_ctx_get_op(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->op;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_op(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    axis2_op_t *op)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    axis2_op_t * op)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
     if (op)
     {
         msg_ctx->op = op;
-        msg_ctx->op_qname = (axutil_qname_t *)axis2_op_get_qname(op, env);
+        msg_ctx->op_qname = (axutil_qname_t *) axis2_op_get_qname(op, env);
     }
 
     return AXIS2_SUCCESS;
@@ -1445,17 +1481,17 @@
 
 axis2_svc_t *AXIS2_CALL
 axis2_msg_ctx_get_svc(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->svc;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_svc(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    axis2_svc_t *svc)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    axis2_svc_t * svc)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
@@ -1463,7 +1499,7 @@
     {
         axis2_svc_grp_t *svc_grp = NULL;
         msg_ctx->svc = svc;
-        msg_ctx->svc_qname = (axutil_qname_t *)axis2_svc_get_qname(svc, env);
+        msg_ctx->svc_qname = (axutil_qname_t *) axis2_svc_get_qname(svc, env);
 
         svc_grp = axis2_svc_get_parent(svc, env);
         if (svc_grp)
@@ -1478,18 +1514,18 @@
 }
 
 axis2_svc_grp_t *AXIS2_CALL
- axis2_msg_ctx_get_svc_grp(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+axis2_msg_ctx_get_svc_grp(
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->svc_grp;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_svc_grp(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    axis2_svc_grp_t *svc_grp)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    axis2_svc_grp_t * svc_grp)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
@@ -1505,17 +1541,17 @@
 
 const axutil_string_t *AXIS2_CALL
 axis2_msg_ctx_get_svc_grp_ctx_id(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->svc_grp_ctx_id;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_svc_grp_ctx_id(
-    struct axis2_msg_ctx *msg_ctx,
-    const axutil_env_t *env,
-    axutil_string_t *svc_grp_ctx_id)
+    struct axis2_msg_ctx * msg_ctx,
+    const axutil_env_t * env,
+    axutil_string_t * svc_grp_ctx_id)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
@@ -1534,16 +1570,16 @@
 
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_is_paused(
-    axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->paused;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_find_svc(
-    axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env, 
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env,
     void *func)
 {
     msg_ctx->find_svc = func;
@@ -1552,8 +1588,8 @@
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_find_op(
-    axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env,
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env,
     void *func)
 {
     msg_ctx->find_op = func;
@@ -1562,66 +1598,62 @@
 
 axis2_options_t *AXIS2_CALL
 axis2_msg_ctx_get_options(
-    axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     axis2_options_t *options = NULL;
     axutil_hash_t *properties = NULL;
     AXIS2_ENV_CHECK(env, NULL);
 
     options = axis2_options_create(env);
-    axis2_options_set_msg_info_headers(options, env, 
-        msg_ctx->msg_info_headers);
-    properties =  axis2_ctx_get_property_map(msg_ctx->base, env);
+    axis2_options_set_msg_info_headers(options, env, msg_ctx->msg_info_headers);
+    properties = axis2_ctx_get_property_map(msg_ctx->base, env);
     axis2_options_set_properties(options, env, properties);
     return options;
 }
 
-
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_options(
-    axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env,
-    axis2_options_t *options)
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env,
+    axis2_options_t * options)
 {
     axutil_property_t *rest_val = NULL;
-	axis2_char_t *value;
-	axutil_string_t *soap_action = NULL;;
+    axis2_char_t *value;
+    axutil_string_t *soap_action = NULL;;
 
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     AXIS2_PARAM_CHECK(env->error, options, AXIS2_FAILURE);
 
     if (msg_ctx->msg_info_headers && msg_ctx->msg_info_headers_deep_copy)
     {
-        axis2_msg_info_headers_free(
-            msg_ctx->msg_info_headers, env);
+        axis2_msg_info_headers_free(msg_ctx->msg_info_headers, env);
     }
     msg_ctx->msg_info_headers =
-
         axis2_options_get_msg_info_headers(options, env);
     msg_ctx->msg_info_headers_deep_copy = AXIS2_FALSE;
-    
+
     msg_ctx->doing_mtom = axis2_options_get_enable_mtom(options, env);
 
     axis2_ctx_set_property_map(msg_ctx->base, env,
-         axis2_options_get_properties(options, env));
-    rest_val = (axutil_property_t *)  axis2_msg_ctx_get_property(msg_ctx, env,
-            AXIS2_ENABLE_REST);
+                               axis2_options_get_properties(options, env));
+    rest_val = (axutil_property_t *) axis2_msg_ctx_get_property(msg_ctx, env,
+                                                                AXIS2_ENABLE_REST);
     if (rest_val)
     {
-		value = (axis2_char_t *)axutil_property_get_value(rest_val, env);
-		if (value)
-		{
-			if (axutil_strcmp(value, AXIS2_VALUE_TRUE) == 0)
-				 axis2_msg_ctx_set_doing_rest(msg_ctx, env, AXIS2_TRUE);
-		}
+        value = (axis2_char_t *) axutil_property_get_value(rest_val, env);
+        if (value)
+        {
+            if (axutil_strcmp(value, AXIS2_VALUE_TRUE) == 0)
+                axis2_msg_ctx_set_doing_rest(msg_ctx, env, AXIS2_TRUE);
+        }
     }
 
     if (msg_ctx->soap_action)
     {
         axutil_string_free(msg_ctx->soap_action, env);
     }
-    
+
     soap_action = axis2_options_get_soap_action(options, env);
     if (soap_action)
     {
@@ -1631,11 +1663,10 @@
     return AXIS2_SUCCESS;
 }
 
-
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_flow(
-    axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env,
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env,
     int flow)
 {
     msg_ctx->flow = flow;
@@ -1644,18 +1675,17 @@
 
 int AXIS2_CALL
 axis2_msg_ctx_get_flow(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->flow;
 }
 
-
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_execution_chain(
-    axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env,
-    axutil_array_list_t *execution_chain)
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env,
+    axutil_array_list_t * execution_chain)
 {
     msg_ctx->execution_chain = execution_chain;
     msg_ctx->current_handler_index = -1;
@@ -1666,16 +1696,16 @@
 
 axutil_array_list_t *AXIS2_CALL
 axis2_msg_ctx_get_execution_chain(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->execution_chain;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_current_handler_index(
-    axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env,
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env,
     const int index)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
@@ -1683,12 +1713,12 @@
     if (msg_ctx->execution_chain)
     {
         axis2_handler_t *handler = (axis2_handler_t *)
-                axutil_array_list_get(msg_ctx->execution_chain,
-                        env, index);
+            axutil_array_list_get(msg_ctx->execution_chain,
+                                  env, index);
         if (handler)
         {
             msg_ctx->paused_handler_name =
-                (axutil_string_t *)axis2_handler_get_name(handler, env);
+                (axutil_string_t *) axis2_handler_get_name(handler, env);
         }
     }
     return AXIS2_SUCCESS;
@@ -1696,24 +1726,24 @@
 
 int AXIS2_CALL
 axis2_msg_ctx_get_current_handler_index(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->current_handler_index;
 }
 
 int AXIS2_CALL
-axis2_msg_ctx_get_paused_handler_index(const axis2_msg_ctx_t *msg_ctx,
-        const axutil_env_t *env)
+axis2_msg_ctx_get_paused_handler_index(
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->paused_handler_index;
 }
 
-
 axis2_status_t AXIS2_CALL
 axis2_msg_ctx_set_current_phase_index(
-    axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env,
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env,
     const int index)
 {
     msg_ctx->current_phase_index = index;
@@ -1723,40 +1753,42 @@
 
 int AXIS2_CALL
 axis2_msg_ctx_get_current_phase_index(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->current_phase_index;
 }
 
 int AXIS2_CALL
 axis2_msg_ctx_get_paused_phase_index(
-    const axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+    const axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->paused_phase_index;
 }
 
-AXIS2_EXTERN axis2_svc_t * AXIS2_CALL
-axis2_msg_ctx_find_svc(axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+AXIS2_EXTERN axis2_svc_t *AXIS2_CALL
+axis2_msg_ctx_find_svc(
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     return msg_ctx->find_svc(msg_ctx, env);
 }
 
-AXIS2_EXTERN axis2_op_t * AXIS2_CALL
-axis2_msg_ctx_find_op(axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env,
-    axis2_svc_t *svc)
+AXIS2_EXTERN axis2_op_t *AXIS2_CALL
+axis2_msg_ctx_find_op(
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env,
+    axis2_svc_t * svc)
 {
     return msg_ctx->find_op(msg_ctx, env, svc);
 }
 
-
-AXIS2_EXTERN axutil_string_t* AXIS2_CALL
-axis2_msg_ctx_get_charset_encoding(axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
-{    
+AXIS2_EXTERN axutil_string_t *AXIS2_CALL
+axis2_msg_ctx_get_charset_encoding(
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
+{
     if (msg_ctx)
         return msg_ctx->charset_encoding;
     else
@@ -1764,10 +1796,11 @@
 }
 
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
-axis2_msg_ctx_set_charset_encoding(axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env,
-    axutil_string_t *str)
-{    
+axis2_msg_ctx_set_charset_encoding(
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env,
+    axutil_string_t * str)
+{
     if (msg_ctx)
     {
         if (msg_ctx->charset_encoding)
@@ -1784,13 +1817,14 @@
     {
         return AXIS2_FAILURE;
     }
-    
+
     return AXIS2_SUCCESS;
 }
 
 AXIS2_EXTERN axutil_stream_t *AXIS2_CALL
-axis2_msg_ctx_get_transport_out_stream(axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+axis2_msg_ctx_get_transport_out_stream(
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     if (msg_ctx)
     {
@@ -1803,30 +1837,32 @@
 }
 
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
-axis2_msg_ctx_set_transport_out_stream(axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env,
-    axutil_stream_t *stream)
+axis2_msg_ctx_set_transport_out_stream(
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env,
+    axutil_stream_t * stream)
 {
     if (msg_ctx)
     {
         if (msg_ctx->transport_out_stream)
         {
-           axutil_stream_free(msg_ctx->transport_out_stream, env); 
+            axutil_stream_free(msg_ctx->transport_out_stream, env);
         }
-        
+
         msg_ctx->transport_out_stream = stream;
     }
     else
     {
         return AXIS2_FAILURE;
     }
-    
+
     return AXIS2_SUCCESS;
 }
 
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
-axis2_msg_ctx_reset_transport_out_stream(axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+axis2_msg_ctx_reset_transport_out_stream(
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     if (msg_ctx)
     {
@@ -1836,13 +1872,14 @@
     {
         return AXIS2_FAILURE;
     }
-    
+
     return AXIS2_SUCCESS;
 }
 
 AXIS2_EXTERN axis2_http_out_transport_info_t *AXIS2_CALL
-axis2_msg_ctx_get_http_out_transport_info(axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+axis2_msg_ctx_get_http_out_transport_info(
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     if (msg_ctx)
     {
@@ -1855,30 +1892,33 @@
 }
 
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
-axis2_msg_ctx_set_http_out_transport_info(axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env,
-    axis2_http_out_transport_info_t *http_out_transport_info)
+axis2_msg_ctx_set_http_out_transport_info(
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env,
+    axis2_http_out_transport_info_t * http_out_transport_info)
 {
     if (msg_ctx)
     {
         if (msg_ctx->http_out_transport_info)
         {
-           AXIS2_HTTP_OUT_TRANSPORT_INFO_FREE(msg_ctx->http_out_transport_info, env); 
+            AXIS2_HTTP_OUT_TRANSPORT_INFO_FREE(msg_ctx->http_out_transport_info,
+                                               env);
         }
-        
+
         msg_ctx->http_out_transport_info = http_out_transport_info;
     }
     else
     {
         return AXIS2_FAILURE;
     }
-    
+
     return AXIS2_SUCCESS;
-}      
+}
 
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
-axis2_msg_ctx_reset_http_out_transport_info(axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+axis2_msg_ctx_reset_http_out_transport_info(
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     if (msg_ctx)
     {
@@ -1891,10 +1931,11 @@
 
     return AXIS2_SUCCESS;
 }
-   
+
 AXIS2_EXTERN axutil_hash_t *AXIS2_CALL
-axis2_msg_ctx_get_transport_headers(axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
+axis2_msg_ctx_get_transport_headers(
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
 {
     if (msg_ctx)
     {
@@ -1906,33 +1947,34 @@
     }
 }
 
-
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
-axis2_msg_ctx_set_transport_headers(axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env,
-    axutil_hash_t *transport_headers)
+axis2_msg_ctx_set_transport_headers(
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env,
+    axutil_hash_t * transport_headers)
 {
     if (msg_ctx)
     {
         if (msg_ctx->transport_headers)
         {
-            axutil_hash_free(msg_ctx->transport_headers, env); 
+            axutil_hash_free(msg_ctx->transport_headers, env);
         }
-        
+
         msg_ctx->transport_headers = transport_headers;
     }
     else
     {
         return AXIS2_FAILURE;
     }
-    
+
     return AXIS2_SUCCESS;
 }
 
-AXIS2_EXTERN axis2_char_t* AXIS2_CALL
-axis2_msg_ctx_get_transfer_encoding(axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
-{    
+AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+axis2_msg_ctx_get_transfer_encoding(
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
+{
     if (msg_ctx)
         return msg_ctx->transfer_encoding;
     else
@@ -1940,10 +1982,11 @@
 }
 
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
-axis2_msg_ctx_set_transfer_encoding(axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env,
-    axis2_char_t *str)
-{    
+axis2_msg_ctx_set_transfer_encoding(
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env,
+    axis2_char_t * str)
+{
     if (msg_ctx)
     {
         if (msg_ctx->transfer_encoding)
@@ -1960,14 +2003,15 @@
     {
         return AXIS2_FAILURE;
     }
-    
+
     return AXIS2_SUCCESS;
 }
 
-AXIS2_EXTERN axis2_char_t* AXIS2_CALL
-axis2_msg_ctx_get_transport_url(axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env)
-{    
+AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+axis2_msg_ctx_get_transport_url(
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env)
+{
     if (msg_ctx)
         return msg_ctx->transport_url;
     else
@@ -1975,10 +2019,11 @@
 }
 
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
-axis2_msg_ctx_set_transport_url(axis2_msg_ctx_t *msg_ctx,
-    const axutil_env_t *env,
-    axis2_char_t *str)
-{    
+axis2_msg_ctx_set_transport_url(
+    axis2_msg_ctx_t * msg_ctx,
+    const axutil_env_t * env,
+    axis2_char_t * str)
+{
     if (msg_ctx)
     {
         /* this is a shallow copy, no need to free */
@@ -1988,9 +2033,6 @@
     {
         return AXIS2_FAILURE;
     }
-    
+
     return AXIS2_SUCCESS;
 }
-
-
-

Modified: webservices/axis2/trunk/c/src/core/context/op_ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/context/op_ctx.c?rev=580276&r1=580275&r2=580276&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/context/op_ctx.c (original)
+++ webservices/axis2/trunk/c/src/core/context/op_ctx.c Fri Sep 28 02:52:58 2007
@@ -1,3 +1,4 @@
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -23,27 +24,36 @@
 
 struct axis2_op_ctx
 {
+
     /** base context struct */
     axis2_ctx_t *base;
+
     /** parent of operation context is a service context instance */
     struct axis2_svc_ctx *parent;
+
     /** message context map */
     axis2_msg_ctx_t *msg_ctx_array[AXIS2_WSDL_MESSAGE_LABEL_MAX];
+
     /**
      * the operation of which this is a running instance. The MEP of this
      * operation must be one of the 8 predefined ones in WSDL 2.0.
      */
     axis2_op_t *op;
+
     /** operation Message Exchange Pattern (MEP) */
     int op_mep;
+
     /** is complete? */
     axis2_bool_t is_complete;
+
     /** the global message_id -> op_ctx map which is stored in
      * the axis2_conf_ctx. We are caching it here for faster access.
      */
     axutil_hash_t *op_ctx_map;
+
     /** op qname */
     axutil_qname_t *op_qname;
+
     /** service qname */
     axutil_qname_t *svc_qname;
     /* mutex to synchronize the read/write operations */
@@ -53,8 +63,9 @@
 };
 
 AXIS2_EXTERN axis2_op_ctx_t *AXIS2_CALL
-axis2_op_ctx_create(const axutil_env_t *env,
-    axis2_op_t *op,
+axis2_op_ctx_create(
+    const axutil_env_t * env,
+    axis2_op_t * op,
     struct axis2_svc_ctx *svc_ctx)
 {
     axis2_op_ctx_t *op_ctx = NULL;
@@ -80,7 +91,7 @@
     op_ctx->svc_qname = NULL;
     op_ctx->response_written = AXIS2_FALSE;
     op_ctx->mutex = axutil_thread_mutex_create(env->allocator,
-            AXIS2_THREAD_MUTEX_DEFAULT);
+                                               AXIS2_THREAD_MUTEX_DEFAULT);
 
     if (!op_ctx->mutex)
     {
@@ -107,7 +118,8 @@
 
     if (op_ctx->op)
     {
-        op_ctx->op_qname = (axutil_qname_t *)axis2_op_get_qname(op_ctx->op, env);
+        op_ctx->op_qname =
+            (axutil_qname_t *) axis2_op_get_qname(op_ctx->op, env);
         op_ctx->op_mep = axis2_op_get_axis_specific_mep_const(op_ctx->op, env);
     }
 
@@ -118,31 +130,30 @@
 
 AXIS2_EXTERN axis2_ctx_t *AXIS2_CALL
 axis2_op_ctx_get_base(
-    const axis2_op_ctx_t *op_ctx,
-    const axutil_env_t *env)
+    const axis2_op_ctx_t * op_ctx,
+    const axutil_env_t * env)
 {
     return op_ctx->base;
 }
 
-
 AXIS2_EXTERN void AXIS2_CALL
 axis2_op_ctx_free(
     struct axis2_op_ctx *op_ctx,
-    const axutil_env_t *env)
+    const axutil_env_t * env)
 {
     int i = 0;
     AXIS2_ENV_CHECK(env, void);
 
     if (op_ctx->base)
     {
-         axis2_ctx_free(op_ctx->base, env);
+        axis2_ctx_free(op_ctx->base, env);
     }
 
-    for (i = 0; i < AXIS2_WSDL_MESSAGE_LABEL_MAX; i ++)
+    for (i = 0; i < AXIS2_WSDL_MESSAGE_LABEL_MAX; i++)
     {
-        if(op_ctx->msg_ctx_array[i])
+        if (op_ctx->msg_ctx_array[i])
         {
-             axis2_msg_ctx_free(op_ctx->msg_ctx_array[i], env);
+            axis2_msg_ctx_free(op_ctx->msg_ctx_array[i], env);
             op_ctx->msg_ctx_array[i] = NULL;
         }
     }
@@ -160,7 +171,7 @@
 AXIS2_EXTERN void AXIS2_CALL
 axis2_op_ctx_destroy_mutex(
     struct axis2_op_ctx *op_ctx,
-    const axutil_env_t *env)
+    const axutil_env_t * env)
 {
 
     if (op_ctx->mutex)
@@ -173,7 +184,7 @@
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
 axis2_op_ctx_init(
     struct axis2_op_ctx *op_ctx,
-    const axutil_env_t *env,
+    const axutil_env_t * env,
     struct axis2_conf *conf)
 {
     int i = 0;
@@ -199,11 +210,11 @@
         }
     }
 
-    for (i = 0; i < AXIS2_WSDL_MESSAGE_LABEL_MAX; i ++)
+    for (i = 0; i < AXIS2_WSDL_MESSAGE_LABEL_MAX; i++)
     {
-        if(op_ctx->msg_ctx_array[i])
+        if (op_ctx->msg_ctx_array[i])
         {
-             axis2_msg_ctx_init(op_ctx->msg_ctx_array[i], env, conf);
+            axis2_msg_ctx_init(op_ctx->msg_ctx_array[i], env, conf);
         }
     }
 
@@ -212,25 +223,25 @@
 
 AXIS2_EXTERN axis2_op_t *AXIS2_CALL
 axis2_op_ctx_get_op(
-    const axis2_op_ctx_t *op_ctx,
-    const axutil_env_t *env)
+    const axis2_op_ctx_t * op_ctx,
+    const axutil_env_t * env)
 {
     return op_ctx->op;
 }
 
 AXIS2_EXTERN struct axis2_svc_ctx *AXIS2_CALL
-            axis2_op_ctx_get_parent(
-                const axis2_op_ctx_t *op_ctx,
-                const axutil_env_t *env)
+axis2_op_ctx_get_parent(
+    const axis2_op_ctx_t * op_ctx,
+    const axutil_env_t * env)
 {
     return op_ctx->parent;
 }
 
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
 axis2_op_ctx_add_msg_ctx(
-    struct axis2_op_ctx *op_ctx,
-    const axutil_env_t *env,
-    axis2_msg_ctx_t *msg_ctx)
+    struct axis2_op_ctx * op_ctx,
+    const axutil_env_t * env,
+    axis2_msg_ctx_t * msg_ctx)
 {
     axis2_msg_ctx_t *out_msg_ctx = NULL;
     axis2_msg_ctx_t *in_msg_ctx = NULL;
@@ -249,7 +260,7 @@
 
     if (!out_msg_ctx)
     {
-        op_ctx->msg_ctx_array[AXIS2_WSDL_MESSAGE_LABEL_OUT] =  msg_ctx;
+        op_ctx->msg_ctx_array[AXIS2_WSDL_MESSAGE_LABEL_OUT] = msg_ctx;
     }
     else
     {
@@ -262,8 +273,8 @@
 
 AXIS2_EXTERN axis2_msg_ctx_t *AXIS2_CALL
 axis2_op_ctx_get_msg_ctx(
-    const axis2_op_ctx_t *op_ctx,
-    const axutil_env_t *env,
+    const axis2_op_ctx_t * op_ctx,
+    const axutil_env_t * env,
     const axis2_wsdl_msg_labels_t message_id)
 {
     axutil_thread_mutex_lock(op_ctx->mutex);
@@ -280,16 +291,16 @@
 
 AXIS2_EXTERN axis2_bool_t AXIS2_CALL
 axis2_op_ctx_get_is_complete(
-    const axis2_op_ctx_t *op_ctx,
-    const axutil_env_t *env)
+    const axis2_op_ctx_t * op_ctx,
+    const axutil_env_t * env)
 {
     return op_ctx->is_complete;
 }
 
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
 axis2_op_ctx_set_complete(
-    struct axis2_op_ctx *op_ctx,
-    const axutil_env_t *env,
+    struct axis2_op_ctx * op_ctx,
+    const axutil_env_t * env,
     axis2_bool_t is_complete)
 {
     op_ctx->is_complete = is_complete;
@@ -298,16 +309,16 @@
 
 AXIS2_EXTERN axis2_bool_t AXIS2_CALL
 axis2_op_ctx_is_in_use(
-    const axis2_op_ctx_t *op_ctx,
-    const axutil_env_t *env)
+    const axis2_op_ctx_t * op_ctx,
+    const axutil_env_t * env)
 {
     return op_ctx->is_in_use;
 }
 
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
 axis2_op_ctx_set_in_use(
-    struct axis2_op_ctx *op_ctx,
-    const axutil_env_t *env,
+    struct axis2_op_ctx * op_ctx,
+    const axutil_env_t * env,
     axis2_bool_t is_in_use)
 {
     op_ctx->is_in_use = is_in_use;
@@ -316,18 +327,18 @@
 
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
 axis2_op_ctx_cleanup(
-    struct axis2_op_ctx *op_ctx,
-    const axutil_env_t *env)
+    struct axis2_op_ctx * op_ctx,
+    const axutil_env_t * env)
 {
     int i = 0;
 
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
-    for (i = 0; i < AXIS2_WSDL_MESSAGE_LABEL_MAX; i ++)
+    for (i = 0; i < AXIS2_WSDL_MESSAGE_LABEL_MAX; i++)
     {
-        if(op_ctx->msg_ctx_array[i])
+        if (op_ctx->msg_ctx_array[i])
         {
-             axis2_msg_ctx_free(op_ctx->msg_ctx_array[i], env);
+            axis2_msg_ctx_free(op_ctx->msg_ctx_array[i], env);
             op_ctx->msg_ctx_array[i] = NULL;
         }
     }
@@ -337,9 +348,9 @@
 
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
 axis2_op_ctx_set_parent(
-    struct axis2_op_ctx *op_ctx,
-    const axutil_env_t *env,
-    struct axis2_svc_ctx *svc_ctx)
+    struct axis2_op_ctx * op_ctx,
+    const axutil_env_t * env,
+    struct axis2_svc_ctx * svc_ctx)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
@@ -348,17 +359,18 @@
         op_ctx->parent = svc_ctx;
     }
 
-    if (op_ctx->parent) /* that is if there is a service context associated */
+    if (op_ctx->parent)         /* that is if there is a service context associated */
     {
         axis2_conf_ctx_t *conf_ctx = NULL;
-        conf_ctx =  axis2_svc_ctx_get_conf_ctx(op_ctx->parent, env);
+        conf_ctx = axis2_svc_ctx_get_conf_ctx(op_ctx->parent, env);
         if (conf_ctx)
         {
-            op_ctx->op_ctx_map =
-                 axis2_conf_ctx_get_op_ctx_map(conf_ctx, env);
+            op_ctx->op_ctx_map = axis2_conf_ctx_get_op_ctx_map(conf_ctx, env);
         }
         op_ctx->svc_qname =
-            (axutil_qname_t *)axis2_svc_get_qname( axis2_svc_ctx_get_svc(op_ctx->parent, env), env);
+            (axutil_qname_t *)
+            axis2_svc_get_qname(axis2_svc_ctx_get_svc(op_ctx->parent, env),
+                                env);
     }
 
     return AXIS2_SUCCESS;
@@ -366,15 +378,16 @@
 
 AXIS2_EXTERN axis2_msg_ctx_t **AXIS2_CALL
 axis2_op_ctx_get_msg_ctx_map(
-    const axis2_op_ctx_t *op_ctx,
-    const axutil_env_t *env)
+    const axis2_op_ctx_t * op_ctx,
+    const axutil_env_t * env)
 {
-    return (axis2_msg_ctx_t **)(op_ctx->msg_ctx_array);
+    return (axis2_msg_ctx_t **) (op_ctx->msg_ctx_array);
 }
 
 AXIS2_EXTERN axis2_bool_t AXIS2_CALL
-axis2_op_ctx_get_response_written(const axis2_op_ctx_t *op_ctx,
-    const axutil_env_t *env)
+axis2_op_ctx_get_response_written(
+    const axis2_op_ctx_t * op_ctx,
+    const axutil_env_t * env)
 {
     if (op_ctx)
         return op_ctx->response_written;
@@ -384,8 +397,9 @@
 }
 
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
-axis2_op_ctx_set_response_written(axis2_op_ctx_t *op_ctx,
-    const axutil_env_t *env,
+axis2_op_ctx_set_response_written(
+    axis2_op_ctx_t * op_ctx,
+    const axutil_env_t * env,
     const axis2_bool_t written)
 {
     if (op_ctx)
@@ -396,7 +410,6 @@
     {
         return AXIS2_FAILURE;
     }
- 
+
     return AXIS2_SUCCESS;
 }
-

Modified: webservices/axis2/trunk/c/src/core/context/svc_ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/context/svc_ctx.c?rev=580276&r1=580275&r2=580276&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/context/svc_ctx.c (original)
+++ webservices/axis2/trunk/c/src/core/context/svc_ctx.c Fri Sep 28 02:52:58 2007
@@ -1,3 +1,4 @@
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -22,22 +23,27 @@
 
 struct axis2_svc_ctx
 {
+
     /** base context struct */
     axis2_ctx_t *base;
+
     /** parent of op context is a service context instance */
     struct axis2_svc_grp_ctx *parent;
+
     /** service associated with this service context */
     axis2_svc_t *svc;
+
     /** id of the service associated with this context */
     axis2_char_t *svc_id;
+
     /** service qname */
     axutil_qname_t *svc_qname;
 };
 
 AXIS2_EXTERN axis2_svc_ctx_t *AXIS2_CALL
 axis2_svc_ctx_create(
-    const axutil_env_t *env,
-    axis2_svc_t *svc,
+    const axutil_env_t * env,
+    axis2_svc_t * svc,
     struct axis2_svc_grp_ctx *svc_grp_ctx)
 {
     axis2_svc_ctx_t *svc_ctx = NULL;
@@ -67,10 +73,11 @@
     if (svc)
     {
         svc_ctx->svc = svc;
-        svc_ctx->svc_qname = (axutil_qname_t *)axis2_svc_get_qname(svc, env);
+        svc_ctx->svc_qname = (axutil_qname_t *) axis2_svc_get_qname(svc, env);
         if (svc_ctx->svc_qname)
         {
-            svc_ctx->svc_id = axutil_qname_get_localpart(svc_ctx->svc_qname, env);
+            svc_ctx->svc_id =
+                axutil_qname_get_localpart(svc_ctx->svc_qname, env);
         }
     }
 
@@ -84,26 +91,25 @@
 
 axis2_ctx_t *AXIS2_CALL
 axis2_svc_ctx_get_base(
-    const axis2_svc_ctx_t *svc_ctx,
-    const axutil_env_t *env)
+    const axis2_svc_ctx_t * svc_ctx,
+    const axutil_env_t * env)
 {
     return svc_ctx->base;
 }
 
-
 struct axis2_svc_grp_ctx *AXIS2_CALL
-            axis2_svc_ctx_get_parent(
-                const axis2_svc_ctx_t *svc_ctx,
-                const axutil_env_t *env)
+axis2_svc_ctx_get_parent(
+    const axis2_svc_ctx_t * svc_ctx,
+    const axutil_env_t * env)
 {
     return svc_ctx->parent;
 }
 
 axis2_status_t AXIS2_CALL
-            axis2_svc_ctx_set_parent(
-                axis2_svc_ctx_t *svc_ctx,
-                const axutil_env_t *env,
-                axis2_svc_grp_ctx_t *parent)
+axis2_svc_ctx_set_parent(
+    axis2_svc_ctx_t * svc_ctx,
+    const axutil_env_t * env,
+    axis2_svc_grp_ctx_t * parent)
 {
     svc_ctx->parent = parent;
     return AXIS2_SUCCESS;
@@ -112,13 +118,13 @@
 void AXIS2_CALL
 axis2_svc_ctx_free(
     struct axis2_svc_ctx *svc_ctx,
-    const axutil_env_t *env)
+    const axutil_env_t * env)
 {
     AXIS2_ENV_CHECK(env, void);
 
     if (svc_ctx->base)
     {
-         axis2_ctx_free(svc_ctx->base, env);
+        axis2_ctx_free(svc_ctx->base, env);
     }
 
     AXIS2_FREE(env->allocator, svc_ctx);
@@ -127,15 +133,16 @@
 
 axis2_status_t AXIS2_CALL
 axis2_svc_ctx_init(
-    struct axis2_svc_ctx *svc_ctx,
-    const axutil_env_t *env,
-    axis2_conf_t *conf)
+    struct axis2_svc_ctx * svc_ctx,
+    const axutil_env_t * env,
+    axis2_conf_t * conf)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
     if (svc_ctx->svc_qname)
     {
-        axis2_char_t *svc_name = axutil_qname_get_localpart(svc_ctx->svc_qname, env);
+        axis2_char_t *svc_name =
+            axutil_qname_get_localpart(svc_ctx->svc_qname, env);
         svc_ctx->svc = axis2_conf_get_svc(conf, env, svc_name);
     }
 
@@ -144,54 +151,52 @@
 
 const axis2_char_t *AXIS2_CALL
 axis2_svc_ctx_get_svc_id(
-    const axis2_svc_ctx_t *svc_ctx,
-    const axutil_env_t *env)
+    const axis2_svc_ctx_t * svc_ctx,
+    const axutil_env_t * env)
 {
     return svc_ctx->svc_id;
 }
 
-
 axis2_svc_t *AXIS2_CALL
 axis2_svc_ctx_get_svc(
-    const axis2_svc_ctx_t *svc_ctx,
-    const axutil_env_t *env)
+    const axis2_svc_ctx_t * svc_ctx,
+    const axutil_env_t * env)
 {
     return svc_ctx->svc;
 }
 
 axis2_status_t AXIS2_CALL
 axis2_svc_ctx_set_svc(
-    axis2_svc_ctx_t *svc_ctx,
-    const axutil_env_t *env,
-    axis2_svc_t *svc)
+    axis2_svc_ctx_t * svc_ctx,
+    const axutil_env_t * env,
+    axis2_svc_t * svc)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     AXIS2_PARAM_CHECK(env->error, svc, AXIS2_FAILURE);
 
     svc_ctx->svc = svc;
-    svc_ctx->svc_qname = (axutil_qname_t *)axis2_svc_get_qname(svc, env);
+    svc_ctx->svc_qname = (axutil_qname_t *) axis2_svc_get_qname(svc, env);
     if (svc_ctx->svc_qname)
     {
-        svc_ctx->svc_id = axutil_qname_get_localpart(svc_ctx->
-                svc_qname, env);
+        svc_ctx->svc_id = axutil_qname_get_localpart(svc_ctx->svc_qname, env);
     }
     return AXIS2_SUCCESS;
 }
 
 struct axis2_conf_ctx *AXIS2_CALL
-            axis2_svc_ctx_get_conf_ctx(
-                const axis2_svc_ctx_t *svc_ctx,
-                const axutil_env_t *env)
+axis2_svc_ctx_get_conf_ctx(
+    const axis2_svc_ctx_t * svc_ctx,
+    const axutil_env_t * env)
 {
     AXIS2_ENV_CHECK(env, NULL);
-    return  axis2_svc_grp_ctx_get_parent(svc_ctx->parent, env);
+    return axis2_svc_grp_ctx_get_parent(svc_ctx->parent, env);
 }
 
 axis2_op_ctx_t *AXIS2_CALL
 axis2_svc_ctx_create_op_ctx(
-    struct axis2_svc_ctx *svc_ctx,
-    const axutil_env_t *env,
-    const axutil_qname_t *qname)
+    struct axis2_svc_ctx * svc_ctx,
+    const axutil_env_t * env,
+    const axutil_qname_t * qname)
 {
     axis2_op_t *op = NULL;
 

Modified: webservices/axis2/trunk/c/src/core/context/svc_grp_ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/context/svc_grp_ctx.c?rev=580276&r1=580275&r2=580276&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/context/svc_grp_ctx.c (original)
+++ webservices/axis2/trunk/c/src/core/context/svc_grp_ctx.c Fri Sep 28 02:52:58 2007
@@ -1,3 +1,4 @@
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -22,24 +23,30 @@
 
 struct axis2_svc_grp_ctx
 {
+
     /** base context struct */
     axis2_ctx_t *base;
+
     /** parent of service group context is a configuration context instance */
     struct axis2_conf_ctx *parent;
+
     /** service group context ID */
     axis2_char_t *id;
+
     /** map of service contexts belonging to this service context group */
     axutil_hash_t *svc_ctx_map;
+
     /** service group associated with this service group context */
     axis2_svc_grp_t *svc_grp;
+
     /** name of the service group associated with this context */
     axis2_char_t *svc_grp_name;
 };
 
 AXIS2_EXTERN axis2_svc_grp_ctx_t *AXIS2_CALL
 axis2_svc_grp_ctx_create(
-    const axutil_env_t *env,
-    axis2_svc_grp_t *svc_grp,
+    const axutil_env_t * env,
+    axis2_svc_grp_t * svc_grp,
     struct axis2_conf_ctx *conf_ctx)
 {
     axis2_svc_grp_ctx_t *svc_grp_ctx = NULL;
@@ -60,7 +67,6 @@
     svc_grp_ctx->svc_grp = NULL;
     svc_grp_ctx->svc_grp_name = NULL;
 
-
     svc_grp_ctx->base = axis2_ctx_create(env);
     if (!(svc_grp_ctx->base))
     {
@@ -71,7 +77,8 @@
     if (svc_grp)
     {
         svc_grp_ctx->svc_grp = svc_grp;
-        svc_grp_ctx->svc_grp_name = (axis2_char_t *) axis2_svc_grp_get_name(svc_grp_ctx->svc_grp, env);
+        svc_grp_ctx->svc_grp_name =
+            (axis2_char_t *) axis2_svc_grp_get_name(svc_grp_ctx->svc_grp, env);
     }
 
     if (conf_ctx)
@@ -93,16 +100,16 @@
 
 AXIS2_EXTERN axis2_ctx_t *AXIS2_CALL
 axis2_svc_grp_ctx_get_base(
-    const axis2_svc_grp_ctx_t *svc_grp_ctx,
-    const axutil_env_t *env)
+    const axis2_svc_grp_ctx_t * svc_grp_ctx,
+    const axutil_env_t * env)
 {
     return svc_grp_ctx->base;
 }
 
 AXIS2_EXTERN struct axis2_conf_ctx *AXIS2_CALL
-            axis2_svc_grp_ctx_get_parent(
-                const axis2_svc_grp_ctx_t *svc_grp_ctx,
-                const axutil_env_t *env)
+axis2_svc_grp_ctx_get_parent(
+    const axis2_svc_grp_ctx_t * svc_grp_ctx,
+    const axutil_env_t * env)
 {
     return svc_grp_ctx->parent;
 }
@@ -110,7 +117,7 @@
 AXIS2_EXTERN void AXIS2_CALL
 axis2_svc_grp_ctx_free(
     struct axis2_svc_grp_ctx *svc_grp_ctx,
-    const axutil_env_t *env)
+    const axutil_env_t * env)
 {
     AXIS2_ENV_CHECK(env, void);
 
@@ -121,7 +128,7 @@
 
     if (svc_grp_ctx->base)
     {
-         axis2_ctx_free(svc_grp_ctx->base, env);
+        axis2_ctx_free(svc_grp_ctx->base, env);
     }
 
     if (svc_grp_ctx->svc_ctx_map)
@@ -129,14 +136,14 @@
         axutil_hash_index_t *hi = NULL;
         void *val = NULL;
         for (hi = axutil_hash_first(svc_grp_ctx->svc_ctx_map, env);
-                hi; hi = axutil_hash_next(env, hi))
+             hi; hi = axutil_hash_next(env, hi))
         {
             axutil_hash_this(hi, NULL, NULL, &val);
             if (val)
             {
                 axis2_svc_ctx_t *svc_ctx = NULL;
-                svc_ctx = (axis2_svc_ctx_t *)val;
-                 axis2_svc_ctx_free(svc_ctx, env);
+                svc_ctx = (axis2_svc_ctx_t *) val;
+                axis2_svc_ctx_free(svc_ctx, env);
             }
         }
 
@@ -151,9 +158,9 @@
 
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
 axis2_svc_grp_ctx_init(
-    struct axis2_svc_grp_ctx *svc_grp_ctx,
-    const axutil_env_t *env,
-    axis2_conf_t *conf)
+    struct axis2_svc_grp_ctx * svc_grp_ctx,
+    const axutil_env_t * env,
+    axis2_conf_t * conf)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
@@ -168,17 +175,17 @@
 
 AXIS2_EXTERN const axis2_char_t *AXIS2_CALL
 axis2_svc_grp_ctx_get_id(
-    const axis2_svc_grp_ctx_t *svc_grp_ctx,
-    const axutil_env_t *env)
+    const axis2_svc_grp_ctx_t * svc_grp_ctx,
+    const axutil_env_t * env)
 {
     return svc_grp_ctx->id;
 }
 
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
 axis2_svc_grp_ctx_set_id(
-    struct axis2_svc_grp_ctx *svc_grp_ctx,
-    const axutil_env_t *env,
-    const axis2_char_t *id)
+    struct axis2_svc_grp_ctx * svc_grp_ctx,
+    const axutil_env_t * env,
+    const axis2_char_t * id)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
@@ -198,17 +205,18 @@
 
 AXIS2_EXTERN axis2_svc_ctx_t *AXIS2_CALL
 axis2_svc_grp_ctx_get_svc_ctx(
-    const axis2_svc_grp_ctx_t *svc_grp_ctx,
-    const axutil_env_t *env,
-    const axis2_char_t *svc_name)
+    const axis2_svc_grp_ctx_t * svc_grp_ctx,
+    const axutil_env_t * env,
+    const axis2_char_t * svc_name)
 {
-    return (axis2_svc_ctx_t *) axutil_hash_get(svc_grp_ctx->svc_ctx_map, svc_name, AXIS2_HASH_KEY_STRING);
+    return (axis2_svc_ctx_t *) axutil_hash_get(svc_grp_ctx->svc_ctx_map,
+                                               svc_name, AXIS2_HASH_KEY_STRING);
 }
 
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
 axis2_svc_grp_ctx_fill_svc_ctx_map(
-    struct axis2_svc_grp_ctx *svc_grp_ctx,
-    const axutil_env_t *env)
+    struct axis2_svc_grp_ctx * svc_grp_ctx,
+    const axutil_env_t * env)
 {
     axutil_hash_index_t *hi = NULL;
     void *next_svc = NULL;
@@ -217,11 +225,12 @@
 
     if (svc_grp_ctx->svc_grp)
     {
-        axutil_hash_t *service_map =  axis2_svc_grp_get_all_svcs(svc_grp_ctx->svc_grp, env);
+        axutil_hash_t *service_map =
+            axis2_svc_grp_get_all_svcs(svc_grp_ctx->svc_grp, env);
         if (service_map)
         {
             for (hi = axutil_hash_first(service_map, env);
-                    hi; hi = axutil_hash_next(env, hi))
+                 hi; hi = axutil_hash_next(env, hi))
             {
                 axutil_hash_this(hi, NULL, NULL, &next_svc);
                 if (next_svc)
@@ -229,11 +238,14 @@
                     axis2_svc_t *svc = NULL;
                     axis2_svc_ctx_t *svc_ctx = NULL;
                     axis2_char_t *svc_name = NULL;
-                    svc = (axis2_svc_t*) next_svc;
+                    svc = (axis2_svc_t *) next_svc;
                     svc_ctx = axis2_svc_ctx_create(env, svc, svc_grp_ctx);
-                    svc_name = axutil_qname_get_localpart(axis2_svc_get_qname(svc, env), env);
+                    svc_name =
+                        axutil_qname_get_localpart(axis2_svc_get_qname
+                                                   (svc, env), env);
                     if (svc_name)
-                        axutil_hash_set(svc_grp_ctx->svc_ctx_map, svc_name, AXIS2_HASH_KEY_STRING, svc_ctx);
+                        axutil_hash_set(svc_grp_ctx->svc_ctx_map, svc_name,
+                                        AXIS2_HASH_KEY_STRING, svc_ctx);
                 }
             }
         }
@@ -243,16 +255,16 @@
 
 AXIS2_EXTERN axis2_svc_grp_t *AXIS2_CALL
 axis2_svc_grp_ctx_get_svc_grp(
-    const axis2_svc_grp_ctx_t *svc_grp_ctx,
-    const axutil_env_t *env)
+    const axis2_svc_grp_ctx_t * svc_grp_ctx,
+    const axutil_env_t * env)
 {
     return svc_grp_ctx->svc_grp;
 }
 
 AXIS2_EXTERN axutil_hash_t *AXIS2_CALL
 axis2_svc_grp_ctx_get_svc_ctx_map(
-    const axis2_svc_grp_ctx_t *svc_grp_ctx,
-    const axutil_env_t *env)
+    const axis2_svc_grp_ctx_t * svc_grp_ctx,
+    const axutil_env_t * env)
 {
     return svc_grp_ctx->svc_ctx_map;
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org