Announcement Announcement Module
Collapse
No announcement yet.
Access HTTPSession from spring-ws framework Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Access HTTPSession from spring-ws framework

    Hi, exuse me for my English. It is not my mother tongue.

    We use SoapActionEndpointMapping to manage soap requests from client. All our endpoints
    extends AbstractDom4jPayloadEndpoint class. To generate response we need access to HttpServletSession from our enpoints sublasses (to share some properties). So, is there any way to get access to such classes like (HTTPRequests, HTTPSession) ?

    Thanks

  • #2
    You can use the TransportContext to access the underlying http servlet objects:
    Code:
    TransportContext context = TransportContextHolder.getTransportContext();
    HttpServletConnection connection = (HttpServletConnection )context.getConnection();
    HttpServletRequest request = connection.getHttpServletRequest();

    Comment

    Working...
    X