[SWS-710] Make it possible to retrieve SoapHeaderElement from SoapHeader by QName Created: 23/Jun/11  Updated: 04/May/12  Resolved: 17/Oct/11

Status: Closed
Project: Spring Web Services
Component/s: Core
Affects Version/s: 2.0.2
Fix Version/s: 2.0.3

Type: Improvement Priority: Minor
Reporter: Chris Pilsworth Assignee: Arjen Poutsma
Resolution: Fixed Votes: 0
Labels: soap, soapheader, soapheaderelement
Remaining Estimate: Not Specified
Time Spent: 20m
Original Estimate: Not Specified


 Description   

I would like to retrieve a SoapHeaderElement from a SoapHeader using it's QName. At the moment, it seems the api only allows for this to be retrieved by through iteration using the SoapHeader.examine*() methods.

Currently, getting an individual element looks something like this:

Iterator<SoapHeaderElement> headerElements = soapHeader.examineAllHeaderElements();
while(headerElements.hasNext()) {
  SoapHeaderElement elem = headerElements.next();
  if (QNAME_MESSAGE_ID.equals(elem.getName())) {
    return elem.getText();
  }
}    

It would be good to be able to access header elements directly, like so:

return soapHeader.getHeaderElement(qName);


 Comments   
Comment by Arjen Poutsma [ 04/May/12 ]

Closing old issues

Generated at Fri Jul 20 04:34:53 UTC 2018 using JIRA 7.9.0#79000-sha1:3ca552e944c2fe83b21589bc06f155b9b428cc2b.