Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 43293 invoked from network); 12 Oct 2004 10:05:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 Oct 2004 10:05:56 -0000 Received: (qmail 24623 invoked by uid 500); 12 Oct 2004 10:05:31 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 24549 invoked by uid 500); 12 Oct 2004 10:05:30 -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: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 24493 invoked by uid 99); 12 Oct 2004 10:05:29 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [160.83.52.97] (HELO loninmrp0.uk.db.com) (160.83.52.97) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 12 Oct 2004 03:05:27 -0700 Received: from sdbo1003.db.com by loninmrp0.uk.db.com id i9CA5NCB030509; Tue, 12 Oct 2004 11:05:24 +0100 Subject: RE: How to access HTTP headers from provider Date: Tue, 12 Oct 2004 11:05:14 +0100 MIME-Version: 1.0 To: axis-user@ws.apache.org Cc: From: "James Richardson" X-Mailer: Microsoft Outlook v 11.00.5510, MSOC v 2.00.4007.00 Message-ID: X-MIMETrack: Serialize by Router on sdbo1003/DMGUK/DeuBaInt/DeuBa(5013aHF19 | July 26, 2004) at 12/10/2004 11:05:24 AM, Serialize complete at 12/10/2004 11:05:24 AM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thank you! - Worked perfectly! James > -----Original Message----- > From: Patrick Herber [mailto:patrick@arpage.ch] > Sent: 12 October 2004 08:08 > To: axis-user@ws.apache.org > Subject: RE: How to access HTTP headers from provider > > Hi, > > I made so: > > MessageContext context = MessageContext.getCurrentContext(); > HttpServletRequest request = (HttpServletRequest) > context.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST); > String myValue = req.getHeader("myHeader"); > > Regards, > Patrick > > > > -----Original Message----- > > From: James Richardson [mailto:james.richardson@db.com] > > Sent: Montag, 11. Oktober 2004 16:06 > > To: axis-user@ws.apache.org > > Subject: RE: How to access HTTP headers from provider > > > > > > If anybody could help me out with this question as posted a > > few days ago, would very much appreciate it. > > > > I'm trying to get access to the original HTTP headers of the > > SOAP request. > > I have loked around in the docs, and it appears that one > > should do as shown below, but the code, while compiling ok, > > does not show anything. > > > > Using snoop I can see that of course some headers are being > > sent, but the code will not print them out (or any header for > > that matter). > > > > Any ideas? > > > > Thanks! > > > > James > > > > ---------- > > > > Relevant bit of original post follows: > > > > I am trying to get access to some of the original HTTP > > headers in order to record some information about the client, > > who will be placing some headers in the request for me to read. > > > > I'm trying to get access to these HTTP headers, but can see > > nothing.... > > > > Heres a relevant bit of code: > > > > protected Object invokeMethod( MessageContext msgContext, > > Method method, Object obj, Object[] argValues ) throws Exception { > > > > // FIXME - Remove test > > > > MimeHeaders headers = > > msgContext.getRequestMessage().getMimeHeaders(); > > > > Log.info ( this, msgContext.getUsername(), > > "invokeMethod()", headers.getHeader( "SOAPAction" ) ); > > > > MimeHeader mimeheader = null; > > > > for (Iterator iter = headers.getAllHeaders(); iter.hasNext();) { > > mimeheader = (MimeHeader) iter.next(); > > > > Log.info ( this, msgContext.getUsername(), > > "invokeMethod()", "name=" > > + mimeheader.getName() + ", value=" + mimeheader.getValue()); > > } > > > > > > // now invoke the method > > > > } > > >