You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Denis Goeury <dg...@workspeed.com> on 2002/11/19 03:08:14 UTC
SOAPBody and SOAPHeaderElement?
Does anybody know why SOAPBody.getChildElements(Name name) deals with
SOAPHeaderElements instead of SOAPBodyElements?
Here is Axis' source code:
package org.apache.axis.message;
public class SOAPBody extends MessageElement
implements javax.xml.soap.SOAPBody {
...
public java.util.Iterator getChildElements(Name name) {
Vector v = new Vector();
Enumeration e = bodyElements.elements();
SOAPHeaderElement header;
while (e.hasMoreElements()) {
header = (SOAPHeaderElement)e.nextElement();
if (header.getNamespaceURI().equals(name.getURI()) &&
header.getName().equals(name.getLocalName())) {
v.addElement(header);
}
}
return v.iterator();
}
...
}
Thanks,
Denis