[ 
https://issues.apache.org/jira/browse/AXIS-2394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13195739#comment-13195739
 ] 

Hudson commented on AXIS-2394:
------------------------------

Integrated in axis-trunk #72 (See 
[https://builds.apache.org/job/axis-trunk/72/])
    AXIS-2705: Reintegrated r392364 (fix for AXIS-2394) into the trunk.

veithen : 
Files : 
* /axis/axis1/java/trunk/axis/src/main/java
* 
/axis/axis1/java/trunk/axis/src/main/java/org/apache/axis/message/SOAPFaultBuilder.java

                
> SOAPFaultBuilder throws DOMException WRONG_DOCUMENT_ERR
> -------------------------------------------------------
>
>                 Key: AXIS-2394
>                 URL: https://issues.apache.org/jira/browse/AXIS-2394
>             Project: Axis
>          Issue Type: Bug
>    Affects Versions: 1.3
>         Environment: Windows XP Professional, Java 5
>            Reporter: Nikolaos Georgiou
>
> 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);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to