Working with XML payload

Two disparate systems might agree to interact via XML formats. This means that whenever there is an outgoing communication, the system's data structure needs to be converted to XML; while in the case of incoming messages, it needs to be converted to a data structure understood by the system. How do we do this? Spring provides first-class support to deal with XML via its OXM (Object-to-XML) framework. Marshalling and unmarshalling is done by classes—org.springframework.oxm.Marshaller and org.springframework.oxm.Unmarshaller, respectively. Marshaller converts an Object to an XML stream, while unmarshaller converts an XML stream to Object. Spring's Object/XML Mapping support provides several implementations supporting marshalling ...

Get Spring Integration Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.