Request context (IP address and other request details) make available in application ------------------------------------------------------------------------------------
Key: AXIS-2276 URL: http://issues.apache.org/jira/browse/AXIS-2276 Project: Apache Axis Type: New Feature Components: Basic Architecture Reporter: Slava S sometimes it is important to know the IP address of request sender. standard AXIS does not have this possibility I changed some files so that I can get this info in my applications. SOLUTION : Each class '%SOAPBindingImpl' can optionally have method public void setMessageContext(org.apache.axis.MessageContext msgContext){ this.msgContext=msgContext; globalContext=(java.util.Hashtable)msgContext.getProperty("##globalContext"); RHostAddress=(String)msgContext.getProperty("#RemoteHostAddress"); } So application can access for example RemoteHostAddress Files to be modifyed org\apache\axis\providers\java\JavaProvider.java org\apache\axis\transport\http\AxisServlet.java org\apache\axis\transport\http\SimpleAxisServer.java org\apache\axis\transport\http\SimpleAxisWorker.java Modifications to be done can be found here : http://ipo4ta.com/pub/download/axis_ipo4ta.zip All modifications are marked with word 'P2MINCLUDE' -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira