Payloadvalidatinginterceptor schemas

A functional endpoint test provides an instance of the Web Service Template that you can use to invoke a web service endpoint.

payloadvalidatinginterceptor schemas-52

You code against a template like Spring’s other templates for communicating against a database or JMS server.

Secondly, the static namespace property is used to classify the root payload element, so this endpoint will respond to 'Holiday Request' elements in the root of the incoming document payload, as long as it is in the specified namespace as indicated by the URI in the namespace property.

NOTE: As of 0.2.3 the Spring WS plugin does not come packaged with the Functional Test plugin.

Finally, the test asserts that the service returned the expected result. All the web service details are hiding in the configuration.

The test above requires a marshaller and Web Service Template bean. That’s the package name for the generated JAXB classes.

Leave a Reply