You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by 김해현 <ka...@hotmail.com> on 2009/02/26 08:53:25 UTC
How to create phase for axis2 handler?
How to create phase for axis2 handler?
I created new handler (extended AbstractHandler class).
The handler doesn't run. I think new phase class but i don't know how to create and use phase class.
way .mar(Module Archive) file generate
Posted by 김해현 <ka...@hotmail.com>.
How to generate .mar file?
and Can .mar file inside context see. because i want to modify existed .mar
file
--------------------------------------------------
From: "sharath reddy" <sh...@yahoo.com>
Sent: Thursday, February 26, 2009 7:49 PM
To: <ax...@ws.apache.org>
Subject: Re: How to create phase for axis2 handler?
> Hi,
>
> In your axis2.xml file, you will see the phases defined. You can either
> use one of the existing phases or add your own phase. If you want a
> handler for outgoing messages, use one of the phases in <phaseOrder
> type="OutFlow">. For incoming messages, use <phaseOrder type="InFlow">.
>
> For example, in Axis 1.4.1, there is a phase called OperationInPhase
> defined in the InFlow.
>
> You would plug your handler into this phase with the following entry in
> your module.xml:
>
> <handler name="MyInputHandler" class="org.sample.handler.MyInputHandler">
> <order phase="OperationInPhase" />
> </handler>
>
>
>
> --- On Thu, 2/26/09, 김해현 <ka...@hotmail.com> wrote:
>
>> From: 김해현 <ka...@hotmail.com>
>> Subject: How to create phase for axis2 handler?
>> To: axis-user@ws.apache.org
>> Date: Thursday, February 26, 2009, 2:53 AM
>> How to create phase for axis2 handler?
>>
>> I created new handler (extended AbstractHandler class).
>>
>> The handler doesn't run. I think new phase class but i
>> don't know how to create and use phase class.
>
>
>
>
Re: How to create phase for axis2 handler?
Posted by sharath reddy <sh...@yahoo.com>.
Hi,
In your axis2.xml file, you will see the phases defined. You can either use one of the existing phases or add your own phase. If you want a handler for outgoing messages, use one of the phases in <phaseOrder type="OutFlow">. For incoming messages, use <phaseOrder type="InFlow">.
For example, in Axis 1.4.1, there is a phase called OperationInPhase defined in the InFlow.
You would plug your handler into this phase with the following entry in your module.xml:
<handler name="MyInputHandler" class="org.sample.handler.MyInputHandler">
<order phase="OperationInPhase" />
</handler>
--- On Thu, 2/26/09, 김해현 <ka...@hotmail.com> wrote:
> From: 김해현 <ka...@hotmail.com>
> Subject: How to create phase for axis2 handler?
> To: axis-user@ws.apache.org
> Date: Thursday, February 26, 2009, 2:53 AM
> How to create phase for axis2 handler?
>
> I created new handler (extended AbstractHandler class).
>
> The handler doesn't run. I think new phase class but i
> don't know how to create and use phase class.