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 ka...@apache.org on 2006/11/14 10:12:02 UTC

svn commit: r474707 - in /webservices/axis2/trunk/c/rampart/src: handlers/rampart_out_handler.c util/rampart_handler_util.c

Author: kaushalye
Date: Tue Nov 14 01:12:01 2006
New Revision: 474707

URL: http://svn.apache.org/viewvc?view=rev&rev=474707
Log:
Sets mustUnderstand attribute of the Security header element in the out-flow. 
And resets if processed in the in-flow. 

Modified:
    webservices/axis2/trunk/c/rampart/src/handlers/rampart_out_handler.c
    webservices/axis2/trunk/c/rampart/src/util/rampart_handler_util.c

Modified: webservices/axis2/trunk/c/rampart/src/handlers/rampart_out_handler.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/src/handlers/rampart_out_handler.c?view=diff&rev=474707&r1=474706&r2=474707
==============================================================================
--- webservices/axis2/trunk/c/rampart/src/handlers/rampart_out_handler.c (original)
+++ webservices/axis2/trunk/c/rampart/src/handlers/rampart_out_handler.c Tue Nov 14 01:12:01 2006
@@ -190,6 +190,9 @@
         sec_header_block = AXIOM_SOAP_HEADER_ADD_HEADER_BLOCK(soap_header,
                 env, RAMPART_SECURITY, sec_ns_obj);
 
+        /*Set mustUnderstand=1*/
+        AXIOM_SOAP_HEADER_BLOCK_SET_MUST_UNDERSTAND_WITH_BOOL(sec_header_block, env, AXIS2_TRUE);
+
         if (sec_header_block)
         {
             axis2_char_t* item = NULL;

Modified: webservices/axis2/trunk/c/rampart/src/util/rampart_handler_util.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/src/util/rampart_handler_util.c?view=diff&rev=474707&r1=474706&r2=474707
==============================================================================
--- webservices/axis2/trunk/c/rampart/src/util/rampart_handler_util.c (original)
+++ webservices/axis2/trunk/c/rampart/src/util/rampart_handler_util.c Tue Nov 14 01:12:01 2006
@@ -220,6 +220,8 @@
 
             if (AXIS2_STRCMP(ele_localname, RAMPART_SECURITY) == 0)
             {
+                /*Set mustUnderstand = 0*/
+                AXIOM_SOAP_HEADER_BLOCK_SET_MUST_UNDERSTAND_WITH_BOOL(header_block, env, AXIS2_FALSE);
                 return header_block_node;
             }
 



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