Gets headers that have a particular qualified name from the message in the
message context. Note that a SOAP message can contain multiple headers
with the same qualified name.
Returns:
An array of unmarshalled headers; returns an empty array if no
message is present in this message context or no headers match
the supplied qualified name.
Parameters:
-
header - The XML qualified name of the SOAP header(s).
-
context - The JAXBContext that should be used to unmarshall the
header
-
allRoles - If
true
then returns headers for all SOAP
roles, if
false
then only returns headers targetted
at the roles currently being played by this SOAP node, see
getRoles
.
Throws:
-
WebServiceException - If an error occurs when using the supplied
JAXBContext to unmarshall. The cause of
the WebServiceException is the original JAXBException.