The axis2 doc on security-handler at http://ws.apache.org/axis2/0_93/security-module.html explains how to configure handlers in the preDispatch phase -
A quote from the doc
"Since the security module inserts handlers in the system specific pre-dispatch phase, it must be engaged globally. But it is possible to activate the security module for the inflow or the outflow when required by the service or the clients."

The security module (security.mar) is available in the axis2.war but it is not engaged by default.
First it should be engaged by inserting the following in the axis2.xml file.
<module ref="security"/>

Another good example from \src\modules\Integration\test-resources\SOAP12Testing\SOAP12TestModuleC\META-INF\module.xml
 
<module name="SOAP12TestModuleB">
    <inflow>
 <handler name="SOAP12InFlowHandlerDefaultB" class="org.apache.axis2.soap12testing.handlers.SOAP12InFlowHandlerDefaultB">
     <order phase="userphase1" />
 </handler>
    </inflow>
    <outflow>
        <handler name="SOAP12OutFlowHandlerDefault" class="org.apache.axis2.soap12testing.handlers.SOAP12OutFlowHandlerDefault">
            <order phase="userphase1" />
        </handler>
    </outflow>
</module>
 
HTH
Martin--
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.
 

 
----- Original Message -----
Sent: Friday, September 22, 2006 9:17 AM
Subject: RE: [Axis1.2] Issue with Custom Chain

After further investigation, it appears that I was incorrect and you cannot create and configure your own chain classes in the server-config.wsdd.  For future reference this would seem like a nice feature.

 

So my question now becomes, can someone provide me with an example or a solution to being able to dynamically enable handlers? 

 

Thank you,
Ken Hoying


From: Hoying, Ken
Sent: Wednesday, September 20, 2006 2:03 PM
To: [email protected]
Subject: [Axis1.2] Issue with Custom Chain

 

I am trying to configure a custom chain in the server-config.wsdd.  However, the chain and its handler does not appear to be getting called.  I must not have something right but I am not sure what.  I do not see any error messages in my logs either.

 

      <handler    name="myHandler"        type="java:TheHandler"/>

      <chain      name="myChain"          type="java:TheChain">

            <handler    type="myHandler"/>

      </chain>

 

      <service name="TheService"                provider="java:RPC">

            <requestFlow>

                  <chain type="myChain"/>

            </requestFlow>

 

            <parameter name="scope"            value="application"/>

            <parameter name="allowedMethods"   value="theMethod"/>

            <parameter name="className"        value="TheClass "/>

      </service>

 

Thank you,
Ken Hoying

 



**************************************************************
This message, including any attachments, contains 'confidential' information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.
TIAA-CREF
**************************************************************

Reply via email to