*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes SOAPPart and SOAPHeaderElement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "SOAPPart and SOAPHeaderElement" Watch "SOAPPart and SOAPHeaderElement" New topic
Author

SOAPPart and SOAPHeaderElement

Himai Minh
Ranch Hand

Joined: Jul 29, 2012
Posts: 720
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
Bartender

Joined: Apr 07, 2010
Posts: 1624
    
  23

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SOAPPart and SOAPHeaderElement
 
Similar Threads
Invoking web service from pl sql, requires a nonce, but I cannot find much info on how to do it
SOAP Header problem SAAJ
Custom Soap Header (org.apache.axis.message.SOAPHeaderElement)
Doubt in soap:header
Document/Literal versus Document/literal wrapped