Results 1 to 2 of 2

Thread: Access HTTPSession from spring-ws framework

  1. #1
    Join Date
    Oct 2007
    Posts
    2

    Default 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. #2

    Default

    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();
    Tareq Abedrabbo

    My Twitter
    My Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •