cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r756960 - /cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/SAAJInInterceptor.java
Date Sat, 21 Mar 2009 15:54:10 GMT
Author: bimargulies
Date: Sat Mar 21 15:54:10 2009
New Revision: 756960

URL: http://svn.apache.org/viewvc?rev=756960&view=rev
Log:
CXF-2125. I don't know why I'm the only person to run into this.

Modified:
    cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/SAAJInInterceptor.java

Modified: cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/SAAJInInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/SAAJInInterceptor.java?rev=756960&r1=756959&r2=756960&view=diff
==============================================================================
--- cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/SAAJInInterceptor.java
(original)
+++ cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/SAAJInInterceptor.java
Sat Mar 21 15:54:10 2009
@@ -89,7 +89,12 @@
             SOAPPart part = soapMessage.getSOAPPart();
             
             Document node = (Document) message.getContent(Node.class);
-            StaxUtils.copy(node, new W3CDOMStreamWriter(part));
+            if (node == null) {
+                // replicate 2.1 behavior.
+                part.setContent(new DOMSource(null));
+            } else {
+                StaxUtils.copy(node, new W3CDOMStreamWriter(part));
+            }
 
             
             // TODO: setup mime headers



Mime
View raw message