cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r662410 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/StaxOutInterceptor.java
Date Mon, 02 Jun 2008 12:17:38 GMT
Author: bimargulies
Date: Mon Jun  2 05:17:37 2008
New Revision: 662410

URL: http://svn.apache.org/viewvc?rev=662410&view=rev
Log:
Fix CXF-1622.

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/StaxOutInterceptor.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/StaxOutInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/StaxOutInterceptor.java?rev=662410&r1=662409&r2=662410&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/StaxOutInterceptor.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/StaxOutInterceptor.java Mon
Jun  2 05:17:37 2008
@@ -59,15 +59,13 @@
         if (os == null || writer != null) {
             return;
         }
-        // assert os != null;
 
-        // TODO: where does encoding constant go?
         String encoding = getEncoding(message);
         
         try {
             writer = getXMLOutputFactory(message).createXMLStreamWriter(os, encoding);
             if (Boolean.TRUE.equals(message.getContextualProperty(FORCE_START_DOCUMENT)))
{
-                writer.writeStartDocument(encoding);
+                writer.writeStartDocument(encoding, "1.0");
             }
         } catch (XMLStreamException e) {
             throw new Fault(new org.apache.cxf.common.i18n.Message("STREAM_CREATE_EXC", BUNDLE),
e);



Mime
View raw message