Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 75953 invoked from network); 23 Apr 2007 22:29:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Apr 2007 22:29:07 -0000 Received: (qmail 64412 invoked by uid 500); 23 Apr 2007 22:29:13 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 64317 invoked by uid 500); 23 Apr 2007 22:29:13 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 64306 invoked by uid 500); 23 Apr 2007 22:29:13 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 64303 invoked by uid 99); 23 Apr 2007 22:29:13 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Apr 2007 15:29:13 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Apr 2007 15:29:06 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id DF1021A9838; Mon, 23 Apr 2007 15:28:45 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r531634 - /webservices/axis2/trunk/java/modules/jibx/src/org/apache/axis2/jibx/JiBXDataSource.java Date: Mon, 23 Apr 2007 22:28:45 -0000 To: axis2-cvs@ws.apache.org From: dsosnoski@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070423222845.DF1021A9838@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dsosnoski Date: Mon Apr 23 15:28:43 2007 New Revision: 531634 URL: http://svn.apache.org/viewvc?view=rev&rev=531634 Log: Flush output after serializing XML to assure data is written Modified: webservices/axis2/trunk/java/modules/jibx/src/org/apache/axis2/jibx/JiBXDataSource.java Modified: webservices/axis2/trunk/java/modules/jibx/src/org/apache/axis2/jibx/JiBXDataSource.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jibx/src/org/apache/axis2/jibx/JiBXDataSource.java?view=diff&rev=531634&r1=531633&r2=531634 ============================================================================== --- webservices/axis2/trunk/java/modules/jibx/src/org/apache/axis2/jibx/JiBXDataSource.java (original) +++ webservices/axis2/trunk/java/modules/jibx/src/org/apache/axis2/jibx/JiBXDataSource.java Mon Apr 23 15:28:43 2007 @@ -109,11 +109,12 @@ * @throws JiBXException */ private void marshal(IMarshallingContext ctx) throws JiBXException { - if (marshallerIndex < 0) { - ((IMarshallable)dataObject).marshal(ctx); - } else { - try { - + try { + + if (marshallerIndex < 0) { + ((IMarshallable)dataObject).marshal(ctx); + } else { + // open namespaces from wrapper element IXMLWriter wrtr = ctx.getXmlWriter(); wrtr.openNamespaces(openNamespaceIndexes, openNamespacePrefixes); @@ -122,17 +123,18 @@ name = elementNamespacePrefix + ':' + name; } wrtr.startTagOpen(0, name); - + // marshal object representation (may include attributes) into element IMarshaller mrsh = ctx.getMarshaller(marshallerIndex, bindingFactory .getMappedClasses()[marshallerIndex]); mrsh.marshal(dataObject, ctx); wrtr.endTag(0, name); - - } catch (IOException e) { - throw new JiBXException("Error marshalling XML representation", e); } + ctx.getXmlWriter().flush(); + + } catch (IOException e) { + throw new JiBXException("Error marshalling XML representation", e); } } --------------------------------------------------------------------- To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org For additional commands, e-mail: axis-cvs-help@ws.apache.org