• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SOAPPart and SOAPHeaderElement

 
Bartender
Posts: 2418
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Creator of Enthuware JWS+ V6
Posts: 3411
320
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic