axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chinmoy Chakraborty <cch...@gmail.com>
Subject Understanding Handlers
Date Wed, 05 Aug 2009 07:44:52 GMT
Hi,

I have a custom handler (extends AbstractHandler) and I place the handler
inside phase 'Transport' in axis2.xml.
........
<phaseOrder type="InFlow">
        <!--  System predefined phases       -->
        <phase name="Transport">
            <handler name="RequestURIBasedDispatcher"

class="org.apache.axis2.dispatchers.RequestURIBasedDispatcher">
                <order phase="Transport"/>
            </handler>
            <handler name="SOAPActionBasedDispatcher"

class="org.apache.axis2.dispatchers.SOAPActionBasedDispatcher">
                <order phase="Transport"/>
            </handler>
            *<handler name="WSSHandler"
                     class="abc.web.ws.control.WSSHandler">
                 <order phase="Transport"/>
            </handler>
*        </phase>
...........
.............
</phaseOrder>

I noticed when ws-security enabled service is invoked (when rampart is
engaged) the 'invoke' mehtod of my custom handler is getting called once
(still fine) but for non ws-security enabled service invocation the 'invoke'
method of my custom handler is getting called twice. Could someone please
explain?

Chinmoy

Mime
View raw message