Talking about WebServices from a clients perspective, Spring WS provides some true simplifications when it comes to configuring and calling arbitrary Services. While emphasizing a contract-first view (with a clear focus on the schema of the request resp. response message payload), it supports a couple of ways to map an object graph to the stipulated message structure of the contracted request schema (marshalling) and of course vice versa, mapping the received response payload to an appropriate object structure (unmarshalling).
The following sections will give some demonstration on how to leverage the various options for marshalling and unmarshalling within Spring WS, especially by showing how to apply a strategy for marshalling and a different one for unmarshalling, all within the same WebService call. Read the rest of this entry »