Getting client's IP address in Provider service

2009-01-09 Thread Andrew Clegg
Hi folks, This is probably a symptom of me never having written a traditional Java web app, but... How do you get the client's IP address? Bear in mind that I'm using a JAX-WS Provider service rather than a WebService. Thanks! Andrew. -- New site launched: http://biotext.org.uk/ I am

Re: Getting client's IP address in Provider service

2009-01-09 Thread David Bosschaert
If you're running in the client code, you can use: InetAddress.getLocalHost().getHostAddress() David 2009/1/9 Andrew Clegg and...@nervechannel.com Hi folks, This is probably a symptom of me never having written a traditional Java web app, but... How do you get the client's IP address?

Re: Getting client's IP address in Provider service

2009-01-09 Thread Andrew Clegg
2009/1/9 David Bosschaert david.bosscha...@gmail.com: If you're running in the client code, you can use: InetAddress.getLocalHost().getHostAddress() Nope, I meant in the service. Andrew.

Re: Getting client's IP address in Provider service

2009-01-09 Thread Daniel Kulp
Probably need to have the WebServiceContext injected in, then from there, grab the HttpServletRequest, then grab the information from there. Dan On Friday 09 January 2009 11:30:56 am Andrew Clegg wrote: Hi folks, This is probably a symptom of me never having written a traditional Java web