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

Integrate Spring Validator within Spring Web Services

    Details

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

      Description

      We would like to reuse our MVC Validators in a Web Services context. My request is basically : what would be best practice ? Arjen has suggested that Spring-WS could add support for Validators in an EndpointInterceptor. In which case, please add this functionality to Spring-WS. Thanks. Martin.

        Activity

        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        The only place where it makes sense to use validators is in the marshalling endpoints, since there an object is created that can be verified.

        Show
        arjen.poutsma Arjen Poutsma added a comment - The only place where it makes sense to use validators is in the marshalling endpoints, since there an object is created that can be verified.
        Hide
        raykrueger Ray Krueger added a comment -

        Given what Arjen has said it would seem that this is something anyone can do. It doesn't really have to be part of Spring-WS. Meaning that you can implement Validation in your endpoint however you see fit.

        That being said; it might be fun to implement a ValidatingMarshallingMethodEndpointAdapter that delgates off to a Spring Validator.

        Show
        raykrueger Ray Krueger added a comment - Given what Arjen has said it would seem that this is something anyone can do. It doesn't really have to be part of Spring-WS. Meaning that you can implement Validation in your endpoint however you see fit. That being said; it might be fun to implement a ValidatingMarshallingMethodEndpointAdapter that delgates off to a Spring Validator.
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Implemented, though only as a subclass of AbstractMarshallingPayloadEndpoint for now: the AbstractFaultCreatingValidatingMarshallingPayloadEndpoint.

        Adding the logic to a subclass of MarshallingMethodEndpointAdapter should be possible as well, create a new JIRA issue if you would like to see that.

        Show
        arjen.poutsma Arjen Poutsma added a comment - Implemented, though only as a subclass of AbstractMarshallingPayloadEndpoint for now: the AbstractFaultCreatingValidatingMarshallingPayloadEndpoint. Adding the logic to a subclass of MarshallingMethodEndpointAdapter should be possible as well, create a new JIRA issue if you would like to see that.
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Closing 1.0.2 issues.

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

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            sylvestris Martin Flower
          • Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: