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

        Activity

        cpilsworth Chris Pilsworth created issue -
        arjen.poutsma Arjen Poutsma made changes -
        Field Original Value New Value
        Assignee Arjen Poutsma [ arjen.poutsma ]
        Fix Version/s 2.0.3 [ 12197 ]
        arjen.poutsma Arjen Poutsma made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        arjen.poutsma Arjen Poutsma logged work - 17/Oct/11 12:46 AM
        • Time Spent:
          20m
           
          <No comment>
        arjen.poutsma Arjen Poutsma made changes -
        Worklog Id 28430 [ 28430 ]
        Time Spent 20m [ 1200 ]
        arjen.poutsma Arjen Poutsma made changes -
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Resolved [ 5 ]
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Closing old issues

        Show
        arjen.poutsma Arjen Poutsma added a comment - Closing old issues
        arjen.poutsma Arjen Poutsma made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        115d 16h 46m 1 Arjen Poutsma 17/Oct/11 12:24 AM
        In Progress In Progress Resolved Resolved
        21m 29s 1 Arjen Poutsma 17/Oct/11 12:46 AM
        Resolved Resolved Closed Closed
        200d 6h 16m 1 Arjen Poutsma 04/May/12 7:03 AM

          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