File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get remote IP address in JAX-WS?

 
Sreenivasula Rayavaram
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need to get remote IP(caller IP address) in JAX-WS to track the incoming client for audit perpose. I have web service and that are with JAX-WS standereds. I think i can get using JAX-WS handlers. can some one point to me any examples or provide me any links whick talks about this.

Thanks for you help.

-Seenu
 
Peer Reynders
Bartender
Posts: 2940
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Javaranch

A little bit about Message Context in JAX-WS

From the javax.xml.ws.handler.MessageContext get the "SERVLET_REQUEST" property (javax.servlet.http.HttpServletRequest) and then use the getRemoteAddr() method on it.

Getting the Client's Address in a Servlet
 
Sreenivasula Rayavaram
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Peer Reynders. Still i am in design phase of the project and didn't time to experiment. i read the article and understood how it works.

Thanks for your time.

-Seenu
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic