vidyanand 2002/12/09 19:57:38
Modified: java/src/org/apache/axis/message SOAPBody.java
Log:
Fix for Bug 15208. There was a classcase exception occuring in getChildElements(Name)
Revision Changes Path
1.36 +5 -5 xml-axis/java/src/org/apache/axis/message/SOAPBody.java
Index: SOAPBody.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/SOAPBody.java,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- SOAPBody.java 4 Dec 2002 20:12:04 -0000 1.35
+++ SOAPBody.java 10 Dec 2002 03:57:37 -0000 1.36
@@ -261,12 +261,12 @@
public java.util.Iterator getChildElements(Name name) {
Vector v = new Vector();
Enumeration e = bodyElements.elements();
- SOAPHeaderElement header;
+ SOAPBodyElement bodyEl;
while (e.hasMoreElements()) {
- header = (SOAPHeaderElement)e.nextElement();
- if (header.getNamespaceURI().equals(name.getURI()) &&
- header.getName().equals(name.getLocalName())) {
- v.addElement(header);
+ bodyEl = (SOAPBodyElement)e.nextElement();
+ if (bodyEl.getNamespaceURI().equals(name.getURI()) &&
+ bodyEl.getName().equals(name.getLocalName())) {
+ v.addElement(bodyEl);
}
}
return v.iterator();