users@glassfish.java.net

Re: Retrieving request ip from SOAP Message

From: <glassfish_at_javadesktop.org>
Date: Thu, 22 Feb 2007 10:50:05 PST

@WebService
public class HelloService {
@Resource
WebServiceContext wsCtxt;

public void method() {
MessageCtxt msgCtxt = wsCtxt.getMessageContext();
HttpServletRequest req = (HttpServletRequest)msgCtxt.get(MessageContext.SERVLET_REQUEST)
// using req you can get all the information, req.getRemoteAddr()
}
}

Jitu
[Message sent by forum member 'jitu' (jitu)]

http://forums.java.net/jive/thread.jspa?messageID=204870