Sorry, HandlerUtil is a snippet of my code,
should just be HTTPConstants.MC_HTTP_SERVLETREQUEST.
Vlad
--- Balaji D L <[EMAIL PROTECTED]> wrote:
> Vladimir & justin,
> The HandlerUtil.MC_HTTP_SERVLETREQUEST is not
> working, its returning null value(for me)..
> the HTTPConstants.MC_HTTP_SERVLETREQUEST is working
> fine.
>
> --- Vladimir Umansky <[EMAIL PROTECTED]> wrote:
> >
>
> > You can get it through MessageContext:
> >
> > handleRequest(MessageContext context) {
> >
> > ......
> > // HttpServletRequest may not be available
> > HttpServletRequest req = null;
> >
> > // get it from Axis
> > if
> >
>
(context.containsProperty(HandlerUtil.MC_HTTP_SERVLETREQUEST))
> > {
> > req = (HttpServletRequest)
> >
>
context.getProperty(HandlerUtil.MC_HTTP_SERVLETREQUEST);
> > }
> >
> > .......
> > if ( req != null ) {
> > req.getRemoteAddr();
> > req.getRemoteHost();
> > }
> >
> >
> >
> > --- Justin Avaya <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > > I am writing a simple Java program and using
> > Apache
> > > Axis to generate the web service. I am writing
> the
> > > server. I need to capture the IP address of the
> > > client who is trying to connect to me to log him
> > in
> > > my database. In a servelt I would use the
> request
> > > object. How do I do it here.
> > >
> > > Thank you for your help.
> > > regards,
> > > Subbiah
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> > design software
> > http://sitebuilder.yahoo.com
>
> http://search.yahoo.com.au - Yahoo! Search
> - Looking for more? Try the new Yahoo! Search
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com