Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 1.5 M1, 1.0.3
    • Fix Version/s: 2.0 GA
    • Component/s: Core
    • Labels:
      None

      Description

      To do tests with a Web Service system it would be nice to be able to mock the system in an easy way. The idea is to define which XML request is answered by which XML response. This allows the test to use recorded XML from an existing systems. Also the test is very low level and therefore agnostic of the used serialization mechanism. It can also easily simulate faults and errors of all kinds. Therefore it would be a nice idea for integration tests and would be in the spirit of the mocks for JNDI etc provided by Spring Core.

      For this the WebServiceTemplate must be subclassed. The createConnection() method must be changed in a way that a Connection is returned that provides WebServiceMessages as defined by the XML files. The comparision of the XML request to the recorded XML requests can be implemented using XMLUnit for example.

        Issue Links

          Activity

          Hide
          arjen.poutsma Arjen Poutsma added a comment -

          Closing old issues

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

          This has been implemented as part of SWS 2.0.

          Show
          arjen.poutsma Arjen Poutsma added a comment - This has been implemented as part of SWS 2.0.
          Hide
          dart0 Lukas Krecan added a comment -

          I am working on something similar. Please see SWS-544 or http://javacrumbs.net/spring-ws-test/.

          Show
          dart0 Lukas Krecan added a comment - I am working on something similar. Please see SWS-544 or http://javacrumbs.net/spring-ws-test/ .
          Hide
          albert_deinbeck Albert Deinbeck added a comment -

          I have written something like this for our project. I'll attach the project-independent parts, perhaps they are useful.

          Show
          albert_deinbeck Albert Deinbeck added a comment - I have written something like this for our project. I'll attach the project-independent parts, perhaps they are useful.

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              eberhardwolff Eberhard Wolff
            • Votes:
              8 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: