日期:2014-05-17 浏览次数:20601 次
MessageContext mc = MessageContext.getCurrentMessageContext();
HttpServletRequest request = (HttpServletRequest) mc
.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);
ip = request.getHeader("x-forwarded-for");
ip+=ip+"||||||" + request.getRemoteAddr();;
<ns:getIp2Response xmlns:ns="http://service.totapps.com">
<ns:return>nullnull||||||192.168.255.58</ns:return>
</ns:getIp2Response>