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

Creating MockWebServiceServer with application context fails with two different web service templates.

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Test
    • Labels:
      None

      Description

      Looks like this is working as design, but how do I test two different web service clients defined in the same application context.

      Exception:

      Creating mockwebserviceserver for one of the client with application context fails as it finds two web service template to deal with. Is there a way to feed the web service template needed for this client at that time ? Please advise.

      Let me know if you have any queries.

      org.springframework.beans.factory.BeanInitializationException: Could not find exactly 1 WebServiceTemplate in application context
      at org.springframework.ws.test.support.MockStrategiesHelper.getStrategy(MockStrategiesHelper.java:84)
      at org.springframework.ws.test.client.MockWebServiceServer.createServer(MockWebServiceServer.java:142)

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            shivaveeram Shiv Veeram
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: