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 蘇 軼(CEC) <s_...@cec-ltd.co.jp> on 2006/06/08 10:06:19 UTC
How to get the service URL and method in handler?
hi all,
I want to use handler to log which service the client is accessing,
for example the service URL, name and method, but in the handler
invoke() method, there is only the MessageContext that can be used.
(I tried most the mc.getXXX() method but no one is helpful to get
information above.)
I think I can force the client setting these informations to the header
of soap message, but Is there any better way to implement it?
Any help or web resources would be greatly appreciated !
- sukie
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: How to get the service URL and method in handler?
Posted by 蘇 軼(CEC) <s_...@cec-ltd.co.jp>.
hi Michele,
Thank you for your help.
I tried... I think these methods could be used in Axis2 but not Axis1.4. :(
Sorry for confused title !
- sukie
----- Original Message -----
From: "Michele Mazzucco" <Mi...@ncl.ac.uk>
To: <ax...@ws.apache.org>
Sent: Thursday, June 08, 2006 5:41 PM
Subject: Re: How to get the service URL and method in handler?
> mc.getAxisService() gets the target service (.getEndpoint() returns the
> target service endpoint).
> mc.getAxisOperation() gets the axis operation
>
> You have to put your handler after the system handlers, since these
> values are filled into the transport/dispatch phase.
>
>
> Michele
>
> 蘇 軼(CEC) wrote:
> > hi all,
> >
> > I want to use handler to log which service the client is accessing,
> > for example the service URL, name and method, but in the handler
> > invoke() method, there is only the MessageContext that can be used.
> > (I tried most the mc.getXXX() method but no one is helpful to get
> > information above.)
> >
> > I think I can force the client setting these informations to the header
> > of soap message, but Is there any better way to implement it?
> >
> > Any help or web resources would be greatly appreciated !
> >
> > - sukie
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: How to get the service URL and method in handler?
Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
mc.getAxisService() gets the target service (.getEndpoint() returns the
target service endpoint).
mc.getAxisOperation() gets the axis operation
You have to put your handler after the system handlers, since these
values are filled into the transport/dispatch phase.
Michele
蘇 軼(CEC) wrote:
> hi all,
>
> I want to use handler to log which service the client is accessing,
> for example the service URL, name and method, but in the handler
> invoke() method, there is only the MessageContext that can be used.
> (I tried most the mc.getXXX() method but no one is helpful to get
> information above.)
>
> I think I can force the client setting these informations to the header
> of soap message, but Is there any better way to implement it?
>
> Any help or web resources would be greatly appreciated !
>
> - sukie
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org