Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-710

Make it possible to retrieve SoapHeaderElement from SoapHeader by QName

    Details

      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);
      

        Attachments

          Activity

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              cpilsworth Chris Pilsworth
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 20m
                20m