Hi, i have a question about the message context. Java WS Core fetches the host address from the request socket (socket.getInetAddress().getHostAddress()) and adds it as a property to the message context. The web service fetches the remote address from the message context.
I have implemented a handler class to catch the request message: ... import org.globus.wsrf.ResourceContext; import org.apache.axis.Constants; ... ResourceContext ctx = ResourceContext.getResourceContext(); String remoteAddress = (String) ctx.getProperty(Constants.MC_REMOTE_ADDR)); So i want to insert a new remote address: ctx.setProperty(Constants.MC_REMOTE_ADDR, "192.168.33.1"); but in the web service the following method display the remote address 127.0.1.1: String remoteAddress = (String) ctx.getProperty(org.apache.axis.Constants.MC_REMOTE_ADDR); System.out.println(remoteAddress); Can someone please correct how to set a property in the message context. thanks a lot saber Saber Dridi Universität Siegen
