Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-194

Add Interceptor functionality to WebServiceTemplate

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5 M2
    • Component/s: Core
    • Labels:
      None

      Description

      SImilar to the EndpointInterceptors on the server side, we would like to have a client-side interceptor functionality. An array of these interceptors should be added to the WebServiceTemplate.

        Issue Links

          Activity

          Hide
          giovanni.cuccu Giovanni Cuccu added a comment -

          Here is the implementation of interceptor for WebServiceTemplate.
          I added the interceptor properties to WebServiceGatewaySupport.java also.
          In the zip file there is the ClientInterceptor Interface and an adapter for analogy to the server side.
          The test unit is missing because I'm learing easymock just now so it will a take a bit to write the tests.
          I also added the ws security implementation on sws-148

          Show
          giovanni.cuccu Giovanni Cuccu added a comment - Here is the implementation of interceptor for WebServiceTemplate. I added the interceptor properties to WebServiceGatewaySupport.java also. In the zip file there is the ClientInterceptor Interface and an adapter for analogy to the server side. The test unit is missing because I'm learing easymock just now so it will a take a bit to write the tests. I also added the ws security implementation on sws-148
          Hide
          arjen.poutsma Arjen Poutsma added a comment -

          Thanks, Giovanni!

          I will take a look at the code, and incorporate it for Spring-WS 1.1.

          Show
          arjen.poutsma Arjen Poutsma added a comment - Thanks, Giovanni! I will take a look at the code, and incorporate it for Spring-WS 1.1.
          Hide
          arjen.poutsma Arjen Poutsma added a comment -

          Implemented, with some minor modifications.

          Most importantly, the interceptor invocation algorithm has changed, to reflect the server-side model model. Also, I didn't see the need for the handleError method and WebServiceConnection parameter in the ClientInterceptor.

          Show
          arjen.poutsma Arjen Poutsma added a comment - Implemented, with some minor modifications. Most importantly, the interceptor invocation algorithm has changed, to reflect the server-side model model. Also, I didn't see the need for the handleError method and WebServiceConnection parameter in the ClientInterceptor.
          Hide
          arjen.poutsma Arjen Poutsma added a comment -

          Closing 1.5 M2 issues.

          Show
          arjen.poutsma Arjen Poutsma added a comment - Closing 1.5 M2 issues.

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              arjen.poutsma Arjen Poutsma
            • Votes:
              2 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: