Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 80407 invoked from network); 8 Oct 2003 11:16:25 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 8 Oct 2003 11:16:25 -0000 Received: (qmail 62338 invoked by uid 500); 8 Oct 2003 11:15:41 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 62310 invoked by uid 500); 8 Oct 2003 11:15:41 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Delivered-To: moderator for axis-dev@ws.apache.org Received: (qmail 93062 invoked from network); 7 Oct 2003 03:48:26 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6470.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C38C85.3BAECF60" Subject: RE: getUsername Date: Mon, 6 Oct 2003 20:43:55 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: getUsername Thread-Index: AcOBYf/iSd+Cbv1sQe+WHoMXJ0QGSALId5ZQ From: "Herman D'costa" To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C38C85.3BAECF60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello anybody there, =20 I had a question earlier (see email below), and got no reply. =20 This question relates to the onFault method of BasicHandler. I wrote a = handler by extending org.apache.axis.handlers.BasicHandler, and overrid = the onFault method. I saw that onFault is called and correctly when the = handler is configured for the specific service (in server-config.wsdd). = However, if I configure the handler in the GlobalConfiguration section = or in the HTTP transport section, it doesn't get called, when there is = an error in the web service request-response flow.=20 =20 Please may I know why? =20 Thanks, regds Herman D'Costa =20 -----Original Message----- From: Herman D'costa=20 Sent: Monday, September 22, 2003 4:34 PM To: axis-dev@ws.apache.org Subject: getUsername Hello=20 I am writing axis request and response handlers for a web service = application. If I want the real username of the user of the request, how = do I get it? Should I get it from the Message Context, thru a call to = msgContext.getUsername or should I retrieve the Servlet Request object = and get its remote user? How does the msg context get the user name = from? Any pointers to documentation with related information, for related = questions that might come up, will be greatly appreciated. Thanks, regds=20 Herman D'Costa=20 ------_=_NextPart_001_01C38C85.3BAECF60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable getUsername
Hello=20 anybody there,
 
I=20 had a question earlier (see email below), and got no=20 reply.
 
This=20 question relates to the onFault method of BasicHandler. I wrote a = handler by=20 extending org.apache.axis.handlers.BasicHandler, and = overrid the=20 onFault method. I saw that onFault is called and correctly when the = handler is=20 configured for the specific service (in server-config.wsdd). However, if = I=20 configure the handler in the GlobalConfiguration section or in the HTTP=20 transport section, it doesn't get called, when there is an error in the = web=20 service request-response flow.
 
Please=20 may I know why?
 
Thanks, regds
Herman=20 D'Costa
 
-----Original Message-----
From: Herman D'costa=20
Sent: Monday, September 22, 2003 4:34 PM
To:=20 axis-dev@ws.apache.org
Subject: = getUsername

Hello

I am writing axis request and response = handlers for=20 a web service application. If I want the real username of the user of = the=20 request, how do I get it? Should I get it from the Message Context, = thru a=20 call to msgContext.getUsername or should I retrieve the Servlet = Request object=20 and get its remote user? How does the msg context get the user name=20 from?

Any pointers to documentation with = related=20 information, for related questions that might come up, will be greatly = appreciated.

Thanks, regds
Herman D'Costa

------_=_NextPart_001_01C38C85.3BAECF60--