You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by aj...@apache.org on 2005/01/31 14:25:03 UTC
svn commit: r149257 -
webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/transport/AbstractTransportSender.java
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);
- }
}
}