Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to retrieve SoapHeaderElement from SoapHeader by QName [SWS-710] #804

Closed
gregturn opened this issue Jun 23, 2011 · 1 comment
Assignees
Milestone

Comments

@gregturn
Copy link
Member

@gregturn gregturn commented Jun 23, 2011

Chris Pilsworth opened SWS-710 and commented

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

Affects: 2.0.2

Referenced from: commits e869d95, 54057b1

@gregturn
Copy link
Member Author

@gregturn gregturn commented May 4, 2012

Arjen Poutsma commented

Closing old issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.