Each and every request come to axis2 goes trough the handler chain, so
if you manage to add a handler into handler chain then when a requests
come to system then it will go through your handler.

Adding a handler is just a matter of creating a module and engage that
as you wish.

Soactive Inc wrote:

> Deepal,
>
> How does any service request reach the handler that you are talking
> about in the first place.
>
> Ron
>
> On 6/25/06, *Deepal Jayasinghe* < [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Well , at the handler level using properties in message context or
>     looking at SOAP message you can identify actual service that user is
>     trying to access. So at that point if the name of the service is
>     service1 and you want to redirect that to service2 then what you
>     have to
>     do is ;
>       - First get the axisConfiguration from message context
>       - Then get the AxisService corresponding to service2 from
>     axisConfiguration
>       - Next add the to message context
>           msgCtx.setAxisService();
>       - Next get the AxisOperation from AxisService , that you want to
>     redirect
>       - Then set that to message context
>          - msgctx.setOperation();
>     -Once you have done this , it will automatically re-direct to
>     service2.
>
>     Riadh BEN HALIMA wrote:
>
>     > Thank you very much Deepal,
>     > but coud you please, tell me how to do?
>     > -------------------------------
>     > Riadh ----- Original Message ----- From: "Deepal Jayasinghe"
>     > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
>     > To: <[email protected] <mailto:[email protected]>>
>     > Sent: Thursday, June 22, 2006 1:28 PM
>     > Subject: Re: Redirect SOAP Message using Handler?
>     >
>     >
>     >> With Axis2 you can
>     >>
>     >> That is what actually happening  in Synapse
>     >>
>     >> Riadh BEN HALIMA wrote:
>     >>
>     >>> Hello,
>     >>> Can I redirect SOAP Message form Server1 to Server2 using
>     Handler?
>     >>> Could you please, help me to answer this question?
>     >>> Thanks in advance.
>     >>> -------------------------------
>     >>> Riadh
>     >>>
>     ---------------------------------------------------------------------
>     >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>
>     >>> For additional commands, e-mail: [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>
>     >>>
>     >>>
>     >>>
>     >>
>     >> --
>     >> Thanks,
>     >> Deepal
>     >> ................................................................
>     >> ~Future is Open~
>     >>
>     >>
>     >>
>     ---------------------------------------------------------------------
>     >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>
>     >> For additional commands, e-mail: [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>
>     >>
>     >>
>     >
>     >
>     ---------------------------------------------------------------------
>     > To unsubscribe, e-mail: [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>
>     > For additional commands, e-mail: [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>
>     >
>     >
>     >
>
>     --
>     Thanks,
>     Deepal
>     ................................................................
>     ~Future is Open~
>
>
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>
>     For additional commands, e-mail: [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>
>
>

-- 
Thanks,
Deepal
................................................................
~Future is Open~ 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to