axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Greif" <jgr...@alumni.princeton.edu>
Subject Re: Axis 1.3: Need to retrieve HTTP Headers in incoming request, in source code
Date Mon, 18 Jun 2007 21:47:00 GMT
I believe that from the MessageContext you can get the
HttpServletRequest, and from that, the request headers.

Jeff

On 6/18/07, Walker, Jeff <Jeff.Walker@fmr.com> wrote:
>
>
> Hi,
> I'm using Axis 1.3.
> I have a need to see all of the HTTP Headers in the incoming request from
> the client to the service. I tried retrieving all of the property names from
> the MessageContext in my handleRequest(MessageContext context), but none of
> them seemed to be the HTTP Headers I am looking for. I need to see this kind
> of information in front of the SOAP envelope:
>
> ...
> POST /ExampleWebService/services/ExampleAxisService
> HTTP/1.0
> Content-Type: text/xml; charset=utf-8
> Accept: application/soap+xml, application/dime, multipart/related, text/*
> User-Agent: Axis/1.3
> Host: 127.0.0.1:4321
> Cache-Control: no-cache
> Pragma: no-cache
> SOAPAction: ""
> Content-Length: 445
> ...
>
> I caught the above using TCPMon, but I'd like to do the same in the source
> code, preferrably in a Message Handler class, or something.
> Thanks,
> -jeff
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message