* Reads information from Http connection and adds them as Http marked headers to internal message representation.
*
* @param message
*/
protected void handleInboundHttpHeaders(SoapMessage message) {
TransportContext transportContext = TransportContextHolder.getTransportContext();
if (transportContext == null) {
log.warn("Unable to get complete set of http request headers - no transport context available");
return;
}
WebServiceConnection connection = transportContext.getConnection();
if (connection instanceof HttpServletConnection) {
UrlPathHelper pathHelper = new UrlPathHelper();
HttpServletConnection servletConnection = (HttpServletConnection) connection;
message.setHeader(SoapMessageHeaders.HTTP_REQUEST_URI, pathHelper.getRequestUri(servletConnection.getHttpServletRequest()));
message.setHeader(SoapMessageHeaders.HTTP_CONTEXT_PATH, pathHelper.getContextPath(servletConnection.getHttpServletRequest()));