public abstract class MarshallingUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
marshal(Marshaller marshaller,
Object graph,
WebServiceMessage message)
Marshals the given object to the payload of the given message using the provided
Marshaller . |
static Object |
unmarshal(Unmarshaller unmarshaller,
WebServiceMessage message)
Unmarshals the payload of the given message using the provided
Unmarshaller . |
public static Object unmarshal(Unmarshaller unmarshaller, WebServiceMessage message) throws IOException
Unmarshaller
.
If the request message has no payload (i.e. WebServiceMessage.getPayloadSource()
returns
null
), this method will return null
.
unmarshaller
- the unmarshallermessage
- the message of which the payload is to be unmarshalledIOException
- in case of I/O errorspublic static void marshal(Marshaller marshaller, Object graph, WebServiceMessage message) throws IOException
Marshaller
.marshaller
- the marshallergraph
- the root of the object graph to marshalmessage
- the message of which the payload is to be unmarshalledIOException
- in case of I/O errors