Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

How to get remote IP address in JAX-WS?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic