A oneline fix as found in the FAQ String remoteIP = msgContext.getStrProp(Constants.MC_REMOTE_ADDR);
..Chris On 9/24/05, Soactive Inc <[EMAIL PROTECTED]> wrote: > I think the following code may work for you. > > --- > > org.apache.axis.MessageContext context = > org.apache.axis.MessageContext.getCurrentContext(); > Message message = context.getRequestMessage(); > > HttpServletRequest servletRequest = (HttpServletRequest) > > context.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST); > > String clientAddress = servletRequest.getRemoteAddr(); > String clientHostName = servletRequest.getRemoteHost(); > > --- > > -Arun > > On 9/23/05, William Mok <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I am using the messaging style in axis, hence writing a method called=20 > > > > process(SOAPEnvelpe req, SOAPEnvelope resp) can receive the soap message = > > from the remote end. > > > > However, I would like to know how I can obtain the remote IP address, = > > i.e. the soap message sender ip addr. > > Thanks. > > > > William > > >
