Add @WebServiceServerTest and related test auto-configuration to allow slice testing of Spring Web Service server applications.

This enhancement adds autoconfiguration for the MockWebServiceClient so that testing web services becomes similar to testing REST services with @WebMvcTest.

Here is a usage example:

@WebServiceServerTest(endpoints = ExampleWebServiceEndpoint.class)
public class WebServiceServerIntegrationTests {

    @Autowired
    private MockWebServiceClient mock;

    @Test
    void payloadRootMethod() {
        mock.sendRequest(withPayload(new StringSource("<request><message>Hello</message></request>")))
                .andExpect(payload(new StringSource("<response><code>42</code></response>")));
    }

}

I hope you find this useful. Thanks.

Comment From: pivotal-cla

@RazorNd Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-cla

@RazorNd Thank you for signing the Contributor License Agreement!

Comment From: wilkinsona

Thank you very much for making your first contribution to Spring Boot, @RazorNd, particularly one that was so complete. I polished things a little in https://github.com/spring-projects/spring-boot/commit/43f1b98864cd9aa703b78957dfa6fb0d16e30878, but largely just to add some documentation.