1) Go to axis2.xml( This presents under the directory
WEB-INF/conf/axis2.xml)
2) Go to the <phaseOrder type="InFlow">
3) Go to the <phase name="Dispatch"
class="org.apache.axis2.engine.DispatchPhase">
4) add the handler here
<handler name="SoapLogHandler"
class="com.demo.soaphandler.SoapLogHandler"/>
NOTE: My handler name is SoapLogHandler.java and it presents under
com.demo.soaphandler .
5) add the handler <phaseOrder type="OutFlow">
<phase name="MessageOut">
<handler name="SoapLogHandler"
class="com.demo.soaphandler.SoapLogHandler"/>
</phase>
</phaseOrder>
6) again add the handler on <phaseOrder type="InFaultFlow"><phase
name="Dispatch">
add the same handler here
7) again add the handler on <phaseOrder type="OutFaultFlow"><phase
name="MessageOut">
add the same handler here
NOTE:
Totally you have to add 4 times in the phaseOrder
1) InFlow
2) OutFlow
3) InFaultFlow
4) OutFaultFlow
Hope it will help You to solve the problem
Thanks,
Satya
On Tue, May 28, 2013 at 2:29 PM, Abdelrahman Almahmoud <
[email protected]> wrote:
> Sorry I forgot to mention that
> I am using Axis2 1.4
>
> ------------------------------
> Date: Tue, 28 May 2013 14:25:47 +0530
> Subject: Re: Deploying a handler
> From: [email protected]
> To: [email protected]
>
>
> Can you please specify whether you are using axis1 or axis2
>
>
> On Tue, May 28, 2013 at 1:23 PM, Abdelrahman Almahmoud <
> [email protected]> wrote:
>
> Hello,
>
> I wrote my own simple handler which I want to deploy. This handler is the
> first to work on inflowing SOAP messages and as such I modified the
> configuration to have it in the inflow section.
> My question is, how do I build and deploy this handler?
>
> Thanks
>
>
>