From http://docs.spring.io/spring-ws/sites/1.5/reference/html/common.html:
TransportContext context = TransportContextHolder.getTransportContext();
HttpServletConnection connection = (HttpServletConnection )context.getConnection();
HttpServletRequest request = connection.getHttpServletRequest();
String ipAddress = request.getRemoteAddr();
Or use CXF instead of Spring-WS. CXF is from the same kitchen as Camel and therefore may be better integrated. With CXF you have access to the ServletRequest
as follows (see here):
org.apache.cxf.message.Message cxfMessage = in.getHeader(CxfConstants.CAMEL_CXF_MESSAGE, org.apache.cxf.message.Message.class);
ServletRequest request = (ServletRequest)cxfMessage.get("HTTP.REQUEST");