急急急100分求助,axis2获得ip地址问题.求教高手啊。。。。。标题很长了......
我的axis2放在tomcat里面,放在客户的外网服务器上.
MessageContext mc = MessageContext.getCurrentMessageContext();
HttpServletRequest request = (HttpServletRequest) mc
.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);
ip = request.getHeader("x-forwarded-for");
ip+=ip+"||||||" + request.getRemoteAddr();;
aixs2?ip 服务器 Java CSS Tomcat
<ns:getIp2Response xmlns:ns="http://service.totapps.com">
<ns:return>nullnull||||||192.168.255.58</ns:return>
</ns:getIp2Response>