Announcement Announcement Module
No announcement yet.
Overriding MessageDispatcherServlet for versioning of spring web services Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Overriding MessageDispatcherServlet for versioning of spring web services

    We are using spring web services 2.1.4 and I need to implement versioning for web services. The url looks as https://localhost:7002/AppContextRoot/V1/MathService.

    I don't want to include version in endpoint (MathServiceEndPoint_V1). I need to solve two problems

    1. Serving dynamic wsdls
    example : https://localhost:7002/AppContextRoo...thService.wsdl
    https://localhost:7002/AppContextRoo...thService.wsdl should serve two wsdl

    2. Resolving end point. As there is no explicit support from spring for versioning, I would like to override MessageDispatcherServlet. I read on spring documentation about EndPointAdapter (From doc, a EndpointAdapter could be written to allow another framework's endpoint objects to be used)

    example : https://localhost:7002/AppContextRoo...ServiceRequest
    https://localhost:7002/AppContextRoo...ServiceRequest should invoke two distinct end points

    Am I going in right direction? Can you please suggest if this approach is wrong. Also if possible sample code is appreciated.


  • #2
    Sorry for not getting to this sooner. We are in the process of moving to StackOverflow for our forums.

    This question is probably a better candidate for StackOverflow, perhaps against the #spring-ws tag.

    If you do post it there, please reply here with the link.