Multiple choice technology web technology

Which SAAJ 1.2 type is used to represent SOAP message header blocks?

  1. org.omg.dom.Document

  2. javax.xml.soap.SoapPart

  3. javax.xml.soap.SoapEntity

  4. javax.xml.soap.SoapHeaderElement

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

SAAJ (SOAP with Attachments API for Java) uses the SoapHeaderElement class to represent SOAP message header blocks. SoapPart represents the SOAP body, not headers. The other classes are not valid SAAJ types.