You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Walker, Jeff" <Je...@fmr.com> on 2007/06/18 23:37:52 UTC
Axis 1.3: Need to retrieve HTTP Headers in incoming request, in source code
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
Re: Axis 1.3: Need to retrieve HTTP Headers in incoming request, in source code
Posted by Jeff Greif <jg...@alumni.princeton.edu>.
I believe that from the MessageContext you can get the
HttpServletRequest, and from that, the request headers.
Jeff
On 6/18/07, Walker, Jeff <Je...@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