Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 81345 invoked from network); 2 Feb 2006 09:03:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Feb 2006 09:03:43 -0000 Received: (qmail 59618 invoked by uid 500); 2 Feb 2006 09:03:31 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 59600 invoked by uid 500); 2 Feb 2006 09:03:30 -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 59588 invoked by uid 99); 2 Feb 2006 09:03:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2006 01:03:30 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [147.102.222.230] (HELO ulysses.noc.ntua.gr) (147.102.222.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2006 01:03:29 -0800 Received: from dblab.ece.ntua.gr (ithaca.dbnet.ece.ntua.gr [147.102.12.1]) by ulysses.noc.ntua.gr (8.13.5/8.13.5) with ESMTP id k12936Xo018721 for ; Thu, 2 Feb 2006 11:03:06 +0200 (EET) (envelope-from ngeor@dbnet.ntua.gr) Received: from [147.102.12.178] (dhcp-178.dbnet.ece.ntua.gr [147.102.12.178]) by dblab.ece.ntua.gr (8.13.4/8.13.4/Debian-3) with ESMTP id k129335N011007 for ; Thu, 2 Feb 2006 11:03:04 +0200 Message-ID: <43E1CAC7.7030401@dbnet.ntua.gr> Date: Thu, 02 Feb 2006 11:03:03 +0200 From: =?ISO-8859-7?Q?=CD=DF=EA=EF=F2_=C3=E5=F9=F1=E3=DF=EF=F5?= User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: axis-dev@ws.apache.org Subject: axis1.3 SOAPFaultBuilder.java problem fixed Content-Type: text/plain; charset=ISO-8859-7; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.51 on 147.102.12.1 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I had a problem dealing with fault responses and I got it fixed. The problem was in SOAPFaultBuilder.java the message node was added to a new DOM Document but it was NOT imported first! Importing the node first into the new DOM Document solved the problem. The diff -u output is: --- ws-axis-java-original/src/org/apache/axis/message/SOAPFaultBuilder.java 2005-07-27 06:44:02.000000000 +0300 +++ ws-axis-java-patched/src/org/apache/axis/message/SOAPFaultBuilder.java 2006-01-31 17:56:27.640439500 +0200 @@ -24,6 +24,7 @@ import org.apache.axis.soap.SOAPConstants; import org.apache.axis.utils.Messages; import org.apache.axis.utils.XMLUtils; +import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.xml.sax.Attributes; @@ -301,8 +302,9 @@ if (node instanceof MessageElement) { elements[i] = ((MessageElement) node).getAsDOM(); } else if(node instanceof Text){ - elements[i] = XMLUtils.newDocument().createElement("text"); - elements[i].appendChild(node); + Document tempDoc = XMLUtils.newDocument(); + elements[i] = tempDoc.createElement("text"); + elements[i].appendChild(tempDoc.importNode(node,true)); } } catch (Exception e) { throw new SAXException(e);