GeeCON Prague 2014*
The moose likes Web Services and the fly likes How to get remote host address from axis2 handler's invoke function? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "How to get remote host address from axis2 handler Watch "How to get remote host address from axis2 handler New topic
Author

How to get remote host address from axis2 handler's invoke function?

Ping Li
Greenhorn

Joined: Sep 06, 2005
Posts: 19
Hi,

I am writing an authentication module which needs remote host address to do the job. the class which extends AbstractHandler, I tried to get remote host address in the function "invoke" by using MessageContext.getProperty(MessageContext.REMOTE_ADDR) function, but it returns null.

(I am using axis2 framework)

Any ideas? Your help is highly appreciated.

Thanks,
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

"liping",
Welcome to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with display names get deleted, often without warning

thanks,
Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get remote host address from axis2 handler's invoke function?