axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r149257 - webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/transport/AbstractTransportSender.java
Date Mon, 31 Jan 2005 13:25:03 GMT
Author: ajith
Date: Mon Jan 31 05:25:02 2005
New Revision: 149257

URL: http://svn.apache.org/viewcvs?view=rev&rev=149257
Log:
Updated to include a flush statement

Modified:
    webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/transport/AbstractTransportSender.java

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/transport/AbstractTransportSender.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/transport/AbstractTransportSender.java?view=diff&r1=149256&r2=149257
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/transport/AbstractTransportSender.java
(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/transport/AbstractTransportSender.java
Mon Jan 31 05:25:02 2005
@@ -56,15 +56,10 @@
 			XMLStreamWriter outputWriter = null;
             try {
                 outputWriter = XMLOutputFactory.newInstance().createXMLStreamWriter(out);
-                envelope.serialize(outputWriter,true);
-            } catch (XMLStreamException e) {
+                envelope.serialize(outputWriter,false);
+                outputWriter.flush();
+            } catch (Exception e) {
                 throw new AxisFault("Stream error",e);
-            }finally{
-            	try {
-					outputWriter.flush();
-				} catch (XMLStreamException e1) {
-					throw new AxisFault("Error flushing the stream",e1);
-				}
             }
         }
 		



Mime
View raw message