axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eran Chinthaka <chinth...@opensource.lk>
Subject Re: [Axis2] How to get the service URL and method in handler?
Date Thu, 08 Jun 2006 09:03:31 GMT
Samisa Abeysinghe wrote:
> Forwarding with correct prefix.
> 
> 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.)
> 

Put a handler after the dispatch phase.

Getting service name :
msgContext.getServiceContext().getAxisService().getName()

Getting Operation name :
msgContext.getOperationContext().getAxisOperation().getName()

Getting service url :
msgContext.getTo().getAddress()

-- Chinthaka


Mime
View raw message