| Author |
Accessing http request headers from a service
|
Vilmantas Baranauskas
Ranch Hand
Joined: Dec 20, 2006
Posts: 89
|
|
Hi, I'am using Axis (not Axis2) v1.4. Is there a way to read http request headers from implementation of my service. If yes, how? Thank you, Vilmantas
|
Author of <a href="http://www.newsinjector.com" target="_blank" rel="nofollow">NewsInjector</a>
|
 |
NarendraBabu Bandaru
Greenhorn
Joined: May 17, 2008
Posts: 20
|
|
You can use the below mentioned sample code to access the http header data. import org.apache.axis.MessageContext; import org.apache.axis.transport.http.HTTPConstants; MessageContext context = MessageContext.getCurrentContext(); HttpServletRequest req = (HttpServletRequest) context.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST); Thanks, narendra
|
 |
Vilmantas Baranauskas
Ranch Hand
Joined: Dec 20, 2006
Posts: 89
|
|
|
Thanks a lot!
|
 |
 |
|
|
subject: Accessing http request headers from a service
|
|
|