Gets the message payload as a JAXB object. Note that there is no
connection between the returned object and the message payload,
changes to the payload require calling
setPayload
.
Returns:
The contained message payload; returns null if no
payload is present in this message
Parameters:
-
context - The JAXBContext that should be used to unmarshall
the message payload
Throws:
-
WebServiceException - If an error occurs when using a supplied
JAXBContext to unmarshall the payload. The cause of
the WebServiceException is the original JAXBException.