Announcement Announcement Module
No announcement yet.
Spring Web Services 2.0.0 M3 released Page Title Module
Move Remove Collapse
This topic is closed
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Web Services 2.0.0 M3 released

    Dear Spring community,

    I'm pleased to announce that Spring Web Services 2.0 Milestone 3 has been released!

    This is the third milestone release in the 2.0 release cycle. The most important new feature in this release is inclusion of a client-side Web service testing framework. This testing framework is very similar to EasyMock 2, offering a 'fluent' API for all you testing needs!
    For example:

    import org.junit.Before;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.test.context.ContextConfiguration;
    import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
    import org.springframework.xml.transform.StringSource;
    import static*;
    public class IntegrationTest {
      // AirlineClient extends WebServiceGatewaySupport, and is configured in applicationContext.xml
      private MyWebServiceClient client;
      public void setUpMocks() throws Exception {
      public void getCustomerCount() throws Exception {
        Source requestPayload =
          new StringSource("<customerCountRequest xmlns='' />";
        Source responsePayload = new StringSource("<customerCountResponse xmlns=''>" +
          "<customerCount>10</customerCount>" +
        // client.getCustomerCount() uses the WebServiceTemplate
        int customerCount = client.getCustomerCount();
        assertEquals(10, response.getCustomerCount());
    The WebServiceMock API has a lot more features than I can describe here, I suggest you try out the new testing module today! Please leave feedback through JIRA or as a reply to this thread.

    Many thanks to Lukáš Křečan for helping out with this testing framework. It would not have been possible without him.

    Please see the changelog for more details. If you have any further requests/issues, please use JIRA or reply to this post.

    Spring Web Services 2.0 is due in the third quarter of 2010.

    For more information, see

    Note that this milestone will not be uploaded to Maven Central, but only to our own milestone repo:

      <name>Springframework Maven Repository</name>
    When 2.0 reaches GA, we will upload the jars to maven central as usual.