Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 7154 invoked from network); 8 Jun 2006 09:04:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Jun 2006 09:04:11 -0000 Received: (qmail 70235 invoked by uid 500); 8 Jun 2006 09:04:01 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 70223 invoked by uid 500); 8 Jun 2006 09:04:01 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 70212 invoked by uid 99); 8 Jun 2006 09:04:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jun 2006 02:04:01 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [209.68.5.17] (HELO relay03.pair.com) (209.68.5.17) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 08 Jun 2006 02:04:00 -0700 Received: (qmail 44308 invoked from network); 8 Jun 2006 09:03:37 -0000 Received: from unknown (HELO ?222.165.178.105?) (unknown) by unknown with SMTP; 8 Jun 2006 09:03:37 -0000 X-pair-Authenticated: 222.165.178.105 Message-ID: <4487E7E3.3030802@opensource.lk> Date: Thu, 08 Jun 2006 14:33:31 +0530 From: Eran Chinthaka Reply-To: chinthaka@opensource.lk User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: axis-user@ws.apache.org Subject: Re: [Axis2] How to get the service URL and method in handler? References: <4487D95B.8090006@gmail.com> In-Reply-To: <4487D95B.8090006@gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig3D6210F736C0DB76AD0C14A2" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------enig3D6210F736C0DB76AD0C14A2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Samisa Abeysinghe wrote: > Forwarding with correct prefix. >=20 > hi all, >=20 > 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.) >=20 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 --------------enig3D6210F736C0DB76AD0C14A2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFEh+fmjON2uBzUhh8RAq5hAKCtgV3ac57DuLRi00fZRW3rqkab5gCfWZHd c2rIe71uU4+ejE69J+/ja6I= =ERFD -----END PGP SIGNATURE----- --------------enig3D6210F736C0DB76AD0C14A2--