Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 64722 invoked from network); 27 May 2005 09:56:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 May 2005 09:56:34 -0000 Received: (qmail 86986 invoked by uid 500); 27 May 2005 09:56:25 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 86955 invoked by uid 500); 27 May 2005 09:56:25 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 86929 invoked by uid 99); 27 May 2005 09:56:24 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from Unknown (HELO mail18.ca.com) (155.35.46.20) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 27 May 2005 02:56:22 -0700 Received: from inhyms21.ca.com ([155.35.35.10]) by mail18.ca.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 27 May 2005 15:26:10 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [jira] Updated: (AXIS-2019) Bug in getElementsByTagNameNS() method of SOAPDocumentImpl class Date: Fri, 27 May 2005 15:26:10 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [jira] Updated: (AXIS-2019) Bug in getElementsByTagNameNS() method of SOAPDocumentImpl class Thread-Index: AcVioQQGDVTt7+ZuSj2A1WoucYMD9AAAU3GA From: "Shahi, Ashutosh" To: X-OriginalArrivalTime: 27 May 2005 09:56:10.0694 (UTC) FILETIME=[4F70BE60:01C562A2] X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Guillaume, I am aware of the current six failures ... so I just made sure that nothing else is failing. Ashutosh -----Original Message----- From: Guillaume Sauthier [mailto:Guillaume.Sauthier@objectweb.org]=20 Sent: Friday, May 27, 2005 3:16 PM To: axis-dev@ws.apache.org Subject: Re: [jira] Updated: (AXIS-2019) Bug in getElementsByTagNameNS() method of SOAPDocumentImpl class Hi Ashutosh Is "ant clean compile all-tests" working for you ? with the current CVS=20 Head ? Cheers Guillaume Ashutosh Shahi (JIRA) wrote: > [ http://issues.apache.org/jira/browse/AXIS-2019?page=3Dall ] > >Ashutosh Shahi updated AXIS-2019: >--------------------------------- > > Attachment: 2019.diff > >Patch for the problem ... ran all-tests. >Ashutosh > > =20 > >>Bug in getElementsByTagNameNS() method of SOAPDocumentImpl class >>----------------------------------------------------------------- >> >> Key: AXIS-2019 >> URL: http://issues.apache.org/jira/browse/AXIS-2019 >> Project: Axis >> Type: Bug >> Components: SAAJ >> Versions: beta-2 >> Reporter: Ashutosh Shahi >> Attachments: 2019.diff >> >>I found a bug in getElementByTagName and getElementByTagNameNS methods of SOAPDocumentImpl class. he header and body parts call the above methods of MessageElement, but the result is never combined, we just have separate return statements for header and body parts. The result from both of them be combined and then returned. Am posting the relevant code, the patch will follow: >>if (soapPart !=3D null) { >> SOAPEnvelope soapEnv =3D >> (org.apache.axis.message.SOAPEnvelope) soapPart >> .getEnvelope(); >> SOAPHeader header =3D >> (org.apache.axis.message.SOAPHeader) soapEnv.getHeader(); >> if (header !=3D null) { >> return header.getElementsByTagName(localName); >> } >> SOAPBody body =3D >> (org.apache.axis.message.SOAPBody) soapEnv.getBody(); >> if (body !=3D null) { >> return body.getElementsByTagName(localName); >> } >> } >> return null;=20 >>We should combine the result of header and body in a NodeList and then return. >>Ashutosh >> =20 >> > > =20 >