axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r396118 - in /webservices/axis2/trunk/c: include/axis2_msg_ctx.h modules/core/context/msg_ctx.c modules/core/util/core_utils.c
Date Sat, 22 Apr 2006 12:44:52 GMT
Author: samisa
Date: Sat Apr 22 05:44:50 2006
New Revision: 396118

URL: http://svn.apache.org/viewcvs?rev=396118&view=rev
Log:
Fix to get the SOAP version correct in the application specific SOAP faults

Modified:
    webservices/axis2/trunk/c/include/axis2_msg_ctx.h
    webservices/axis2/trunk/c/modules/core/context/msg_ctx.c
    webservices/axis2/trunk/c/modules/core/util/core_utils.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=396118&r1=396117&r2=396118&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_msg_ctx.h (original)
+++ webservices/axis2/trunk/c/include/axis2_msg_ctx.h Sat Apr 22 05:44:50 2006
@@ -596,6 +596,11 @@
 	get_is_soap_11)(struct axis2_msg_ctx *msg_ctx, 
                     axis2_env_t **env);
     
+    axis2_status_t (AXIS2_CALL *
+    set_is_soap_11)(struct axis2_msg_ctx *msg_ctx, 
+                                axis2_env_t **env,
+                                axis2_bool_t is_soap11);
+
     struct axis2_svc_grp_ctx* (AXIS2_CALL *
 	get_svc_grp_ctx)(struct axis2_msg_ctx *msg_ctx, 
                      axis2_env_t **env);
@@ -898,6 +903,9 @@
 		
 #define AXIS2_MSG_CTX_GET_IS_SOAP_11(msg_ctx, env) \
 		((msg_ctx)->ops->get_is_soap_11(msg_ctx, env))
+		
+#define AXIS2_MSG_CTX_SET_IS_SOAP_11(msg_ctx, env, is_soap11) \
+		((msg_ctx)->ops->set_is_soap_11(msg_ctx, env, is_soap11))
 		
 #define AXIS2_MSG_CTX_GET_SVC_GRP_CTX(msg_ctx, env) \
 		((msg_ctx)->ops->get_svc_grp_ctx(msg_ctx, env))

Modified: webservices/axis2/trunk/c/modules/core/context/msg_ctx.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/context/msg_ctx.c?rev=396118&r1=396117&r2=396118&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/msg_ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/msg_ctx.c Sat Apr 22 05:44:50 2006
@@ -362,6 +362,10 @@
 axis2_bool_t AXIS2_CALL
 axis2_msg_ctx_get_is_soap_11(struct axis2_msg_ctx *msg_ctx, 
                                 axis2_env_t **env);
+axis2_status_t AXIS2_CALL
+axis2_msg_ctx_set_is_soap_11(struct axis2_msg_ctx *msg_ctx, 
+                                axis2_env_t **env,
+                                axis2_bool_t is_soap11);
 struct axis2_svc_grp_ctx* AXIS2_CALL
 axis2_msg_ctx_get_svc_grp_ctx(struct axis2_msg_ctx *msg_ctx, 
                                 axis2_env_t **env);    
@@ -568,6 +572,7 @@
     msg_ctx_impl->msg_ctx.ops->set_do_rest_through_post = axis2_msg_ctx_set_do_rest_through_post;
     msg_ctx_impl->msg_ctx.ops->get_do_rest_through_post = axis2_msg_ctx_get_do_rest_through_post;
     msg_ctx_impl->msg_ctx.ops->get_is_soap_11 = axis2_msg_ctx_get_is_soap_11;
+    msg_ctx_impl->msg_ctx.ops->set_is_soap_11 = axis2_msg_ctx_set_is_soap_11;
     msg_ctx_impl->msg_ctx.ops->get_svc_grp_ctx = axis2_msg_ctx_get_svc_grp_ctx;
     msg_ctx_impl->msg_ctx.ops->set_svc_grp_ctx = axis2_msg_ctx_set_svc_grp_ctx;
     msg_ctx_impl->msg_ctx.ops->get_op = axis2_msg_ctx_get_op;
@@ -1784,6 +1789,16 @@
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     return AXIS2_INTF_TO_IMPL(msg_ctx)->is_soap_11;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_msg_ctx_set_is_soap_11(struct axis2_msg_ctx *msg_ctx, 
+                                axis2_env_t **env,
+                                axis2_bool_t is_soap11)
+{
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_INTF_TO_IMPL(msg_ctx)->is_soap_11 = is_soap11;
+    return AXIS2_SUCCESS;
 }
 
 struct axis2_svc_grp_ctx *AXIS2_CALL axis2_msg_ctx_get_svc_grp_ctx(struct axis2_msg_ctx *msg_ctx,


Modified: webservices/axis2/trunk/c/modules/core/util/core_utils.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/util/core_utils.c?rev=396118&r1=396117&r2=396118&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/util/core_utils.c (original)
+++ webservices/axis2/trunk/c/modules/core/util/core_utils.c Sat Apr 22 05:44:50 2006
@@ -156,8 +156,11 @@
     server_side = AXIS2_MSG_CTX_GET_SERVER_SIDE(in_msg_ctx, env);
     AXIS2_MSG_CTX_SET_SERVER_SIDE(new_msg_ctx, env, server_side);
     
-    svc_grp_ctx = AXIS2_MSG_CTX_GET_SVC_GRP_CTX(new_msg_ctx, env);
+    svc_grp_ctx = AXIS2_MSG_CTX_GET_SVC_GRP_CTX(in_msg_ctx, env);
     AXIS2_MSG_CTX_SET_SVC_GRP_CTX(new_msg_ctx, env, svc_grp_ctx);
+
+    AXIS2_MSG_CTX_SET_IS_SOAP_11(new_msg_ctx, env, 
+        AXIS2_MSG_CTX_GET_IS_SOAP_11(in_msg_ctx, env));
     
     return new_msg_ctx;
 }



Mime
View raw message