Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SOAPPart and SOAPHeaderElement

 
Himai Minh
Ranch Hand
Posts: 1398
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In MZ's notes, there is a question:
"Which SAAJ type is used to present SOAP message headers block?"
I hesitate between the options of javax.xml.soap.SOAPPart and javax.xml.soap.SOAPHeaderElement

The right option given in MZ's notes is SOAPPart because of this


But the question is asking for header block. I think the right answer should be SOAPHeaderElement.
For example,


I think if we want to retrieve <wsse:Security> header block content, we should use SOAPHeaderElement instead.
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Posts: 2778
174
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Himai,

I agree the question could be phrased better, but it says "SOAP message headers block", making the answer SOAPPart correct. The block meant here is the container holding the individual headers (or in other terms HeaderElements).

Regards,
Frits
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!