18.2 Web Service Namespace Support

To configure an outbound Web Service Gateway, use the "outbound-gateway" element from the "ws" namespace:

<ws:outbound-gateway id="simpleGateway"
                    request-channel="inputChannel"
                    uri="http://example.org"/>

To use Spring OXM Marshallers and/or Unmarshallers, provide bean references:

<ws:outbound-gateway id="marshallingGateway"
                    request-channel="requestChannel"
                    uri="http://example.org"
                    marshaller="someMarshaller"
                    unmarshaller="someUnmarshaller"/>

[Note]Note
Most Marshaller implementations also implement the Unmarshaller interface. When using such a Marshaller, only the "marshaller" attribute is necessary. Even when using a Marshaller, you may also provide a reference for the "request-callback".

For either gateway type, the "message-factory" attribute can also be configured with a reference to any Spring Web Services WebServiceMessageFactory implementation.