axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r795935 [1/4] - in /webservices/axis2/trunk/java/modules: adb-codegen/src/org/apache/axis2/schema/template/ adb-codegen/test/org/apache/axis2/schema/ adb-codegen/test/org/apache/axis2/schema/defaultnamespaces/ adb/src/org/apache/axis2/datab...
Date Mon, 20 Jul 2009 17:51:01 GMT
Author: veithen
Date: Mon Jul 20 17:50:58 2009
New Revision: 795935

URL: http://svn.apache.org/viewvc?rev=795935&view=rev
Log:
ADB: Removed the MTOMAwareXMLStreamWriter interface and changed the code (generation) to use the proper extension interface in Axiom.

Removed:
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/writer/MTOMAwareXMLSerializer.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/writer/MTOMAwareXMLStreamWriter.java
Modified:
    webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl
    webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-helpermode.xsl
    webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/ADBBeanUtil.java
    webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/AbstractTestCase.java
    webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/defaultnamespaces/DefaultNamespacesTest.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBBean.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBDataSource.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBHelper.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBHelperDataSource.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBSOAPModelBuilder.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/AnyType.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/AnyURI.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Array.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ArrayCoordinate.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ArrayE.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Base64.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Base64Binary.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Date.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/DateTime.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Decimal.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Duration.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ENTITIES.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ENTITY.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GDay.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GMonth.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GMonthDay.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GYear.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GYearMonth.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/HexBinary.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ID.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/IDREF.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/IDREFS.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Integer.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Language.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/NCName.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/NMTOKEN.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/NMTOKENS.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/NOTATION.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Name.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/NegativeInteger.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/NonNegativeInteger.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/NonPositiveInteger.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/NormalizedString.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/PositiveInteger.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/QName.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/String.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Struct.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Time.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Token.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/UnsignedByte.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/UnsignedInt.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/UnsignedLong.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/UnsignedShort.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/_boolean.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/_byte.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/_double.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/_float.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/_int.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/_long.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/_short.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/AnyURI.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/Base64.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/Base64Binary.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/Date.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/DateTime.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/Decimal.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/Duration.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/ENTITIES.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/ENTITY.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/GDay.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/GMonth.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/GMonthDay.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/GYear.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/GYearMonth.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/HexBinary.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/ID.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/IDREF.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/IDREFS.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/Integer.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/Language.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/NCName.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/NMTOKEN.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/NMTOKENS.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/NOTATION.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/Name.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/NegativeInteger.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/NonNegativeInteger.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/NonPositiveInteger.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/NormalizedString.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/PositiveInteger.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/QName.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/String.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/Time.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/Token.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/UnsignedByte.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/UnsignedInt.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/UnsignedLong.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/UnsignedShort.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/_boolean.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/_byte.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/_double.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/_float.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/_int.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/_long.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/xsd/_short.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/writer/MTOMAwareOMBuilder.java
    webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/ADBSOAPModelBuilderTest.java
    webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/ClientInfo.java
    webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/CreateAccountRequest.java
    webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/utils/reader/ADBXMLStreamReaderTest.java
    webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoString.java
    webservices/axis2/trunk/java/modules/jaxws-integration/test/server/EchoStringResponse.java

Modified: webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl (original)
+++ webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl Mon Jul 20 17:50:58 2009
@@ -685,13 +685,13 @@
        }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                       javax.xml.stream.XMLStreamWriter xmlWriter)
                                 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
                            serialize(parentQName,xmlWriter,false);
          }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               javax.xml.stream.XMLStreamWriter xmlWriter,
                                boolean serializeType)
             throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
             <xsl:choose>
@@ -1125,7 +1125,11 @@
                                             <xsl:if test="not(@primitive)">
                                                 <xsl:choose>
                                                     <xsl:when test="@binary">
-                                                        xmlWriter.writeDataHandler(<xsl:value-of select="$varName"/>[i]);
+                                                        try {
+                                                            org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler(xmlWriter, <xsl:value-of select="$varName"/>[i], null, true);
+                                                        } catch (java.io.IOException ex) {
+                                                            throw new javax.xml.stream.XMLStreamException("Unable to read data handler for <xsl:value-of select="$propertyName"/>[" + i + "]", ex);
+                                                        }
                                                     </xsl:when>
                                                     <xsl:otherwise>
                                                         xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(<xsl:value-of select="$varName"/>[i]));
@@ -1216,7 +1220,11 @@
                                         <!-- Handling the null byte array -->
                                     if (<xsl:value-of select="$varName"/>!=null)
                                     {
-                                       xmlWriter.writeDataHandler(<xsl:value-of select="$varName"/>);
+                                       try {
+                                           org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler(xmlWriter, <xsl:value-of select="$varName"/>, null, true);
+                                       } catch (java.io.IOException ex) {
+                                           throw new javax.xml.stream.XMLStreamException("Unable to read data handler for <xsl:value-of select="$propertyName"/>", ex);
+                                       }
                                     }
                                  </xsl:when>
                                  <xsl:otherwise>
@@ -1395,7 +1403,11 @@
                                                     <!-- Handling the null byte array -->
                                                 if (<xsl:value-of select="$varName"/>!=null)
                                                 {
-                                                    xmlWriter.writeDataHandler(<xsl:value-of select="$varName"/>);
+                                                    try {
+                                                        org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler(xmlWriter, <xsl:value-of select="$varName"/>, null, true);
+                                                    } catch (java.io.IOException ex) {
+                                                        throw new javax.xml.stream.XMLStreamException("Unable to read data handler for <xsl:value-of select="$propertyName"/>", ex);
+                                                    }
                                                 }
                                              </xsl:when>
                                             <xsl:otherwise>

Modified: webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-helpermode.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-helpermode.xsl?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-helpermode.xsl (original)
+++ webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-helpermode.xsl Mon Jul 20 17:50:58 2009
@@ -567,7 +567,7 @@
 
          public void serialize(<xsl:value-of select="$fullyQualifiedName"/> typedBean,
                            javax.xml.namespace.QName parentQName,
-                           org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+                           javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
 
              <xsl:choose>
             <xsl:when test="@type or @anon">
@@ -890,7 +890,11 @@
                                         <!-- Handling the null byte array -->
                                     if (<xsl:value-of select="$varName"/>!=null)
                                     {
-                                       xmlWriter.writeDataHandler(<xsl:value-of select="$varName"/>);
+                                       try {
+                                           org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler(xmlWriter, <xsl:value-of select="$varName"/>, null, true);
+                                       } catch (java.io.IOException ex) {
+                                           throw new javax.xml.stream.XMLStreamException("Unable to read data handler for <xsl:value-of select="$propertyName"/>", ex);
+                                       }
                                     }
                                  </xsl:when>
                                  <xsl:otherwise>

Modified: webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/ADBBeanUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/ADBBeanUtil.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/ADBBeanUtil.java (original)
+++ webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/ADBBeanUtil.java Mon Jul 20 17:50:58 2009
@@ -22,6 +22,7 @@
 import javax.xml.namespace.QName;
 import javax.xml.stream.XMLStreamException;
 import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLStreamWriter;
 
 import org.apache.axiom.om.OMAbstractFactory;
 import org.apache.axiom.om.OMElement;
@@ -29,7 +30,6 @@
 import org.apache.axis2.databinding.ADBBean;
 import org.apache.axis2.databinding.ADBException;
 import org.apache.axis2.databinding.ADBHelper;
-import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter;
 
 public class ADBBeanUtil {
     private ADBBeanUtil() {}
@@ -87,7 +87,7 @@
         return getPullParser(bean, getQName(bean.getClass()));
     }
     
-    public static void serialize(Object bean, QName qname, MTOMAwareXMLStreamWriter writer) throws Exception {
+    public static void serialize(Object bean, QName qname, XMLStreamWriter writer) throws Exception {
         if (bean instanceof ADBBean) {
             ((ADBBean)bean).serialize(qname, writer);
         } else {
@@ -95,11 +95,11 @@
         }
     }
     
-    private static <T> void serialize(Object bean, ADBHelper<T> helper, QName qname, MTOMAwareXMLStreamWriter writer) throws XMLStreamException {
+    private static <T> void serialize(Object bean, ADBHelper<T> helper, QName qname, XMLStreamWriter writer) throws XMLStreamException {
         helper.serialize(helper.getBeanClass().cast(bean), qname, writer);
     }
     
-    public static void serialize(Object bean, MTOMAwareXMLStreamWriter writer) throws Exception {
+    public static void serialize(Object bean, XMLStreamWriter writer) throws Exception {
         serialize(bean, getQName(bean.getClass()), writer);
     }
 }

Modified: webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/AbstractTestCase.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/AbstractTestCase.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/AbstractTestCase.java (original)
+++ webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/AbstractTestCase.java Mon Jul 20 17:50:58 2009
@@ -44,6 +44,7 @@
 import javax.activation.DataHandler;
 import javax.xml.namespace.QName;
 import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLStreamWriter;
 
 import org.apache.axiom.attachments.Attachments;
 import org.apache.axiom.om.OMAbstractFactory;
@@ -58,8 +59,6 @@
 import org.apache.axis2.databinding.types.HexBinary;
 import org.apache.axis2.databinding.types.Language;
 import org.apache.axis2.databinding.types.URI;
-import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLSerializer;
-import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter;
 
 import junit.framework.TestCase;
 
@@ -338,7 +337,7 @@
     // of an incorrect usage of XMLStreamWriter#writeStartElement(String).
     private static void testSerializeDeserializeWrapped(Object bean, Object expectedResult) throws Exception {
         StringWriter sw = new StringWriter();
-        MTOMAwareXMLStreamWriter writer = new MTOMAwareXMLSerializer(StAXUtils.createXMLStreamWriter(sw));
+        XMLStreamWriter writer = StAXUtils.createXMLStreamWriter(sw);
         writer.writeStartElement("", "root", "urn:test");
         writer.writeDefaultNamespace("urn:test");
         ADBBeanUtil.serialize(bean, writer);

Modified: webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/defaultnamespaces/DefaultNamespacesTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/defaultnamespaces/DefaultNamespacesTest.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/defaultnamespaces/DefaultNamespacesTest.java (original)
+++ webservices/axis2/trunk/java/modules/adb-codegen/test/org/apache/axis2/schema/defaultnamespaces/DefaultNamespacesTest.java Mon Jul 20 17:50:58 2009
@@ -21,8 +21,6 @@
 
 import junit.framework.TestCase;
 import org.apache.axiom.om.util.StAXUtils;
-import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLSerializer;
-import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter;
 
 import javax.xml.namespace.QName;
 import javax.xml.stream.XMLStreamException;
@@ -62,9 +60,8 @@
         try {
 
             XMLStreamWriter xmlStreamWriter = StAXUtils.createXMLStreamWriter(stringWriter);
-            MTOMAwareXMLStreamWriter mtomAwareXMLStreamWriter = new MTOMAwareXMLSerializer(xmlStreamWriter);
             testElement1.getTestElement1().serialize(new QName(NS_URI, "TestElement1", "ns1"),
-                    mtomAwareXMLStreamWriter);
+                    xmlStreamWriter);
             xmlStreamWriter.flush();
             xmlStreamWriter.close();
             String omElementString = stringWriter.toString();

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBBean.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBBean.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBBean.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBBean.java Mon Jul 20 17:50:58 2009
@@ -21,11 +21,12 @@
 
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMFactory;
-import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter;
 
 import javax.xml.namespace.QName;
 import javax.xml.stream.XMLStreamException;
 import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLStreamWriter;
+
 import java.io.Serializable;
 
 /*
@@ -46,11 +47,11 @@
     public OMElement getOMElement(QName parentQName, OMFactory factory) throws ADBException;
 
     public void serialize(final QName parentQName,
-                          MTOMAwareXMLStreamWriter xmlWriter)
+                          XMLStreamWriter xmlWriter)
             throws XMLStreamException, ADBException;
 
     public void serialize(final QName parentQName,
-                          MTOMAwareXMLStreamWriter xmlWriter,
+                          XMLStreamWriter xmlWriter,
                           boolean serializeType)
             throws XMLStreamException, ADBException;
 

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBDataSource.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBDataSource.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBDataSource.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBDataSource.java Mon Jul 20 17:50:58 2009
@@ -25,8 +25,6 @@
 import org.apache.axiom.om.OMOutputFormat;
 import org.apache.axiom.om.util.StAXUtils;
 import org.apache.axis2.databinding.utils.writer.MTOMAwareOMBuilder;
-import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLSerializer;
-import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter;
 
 import javax.xml.namespace.QName;
 import javax.xml.stream.XMLStreamException;
@@ -89,9 +87,8 @@
      * @see OMDataSource#serialize(javax.xml.stream.XMLStreamWriter)
      */
     public void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException{
-        MTOMAwareXMLStreamWriter mtomAwareXMLStreamWriter = new MTOMAwareXMLSerializer(xmlWriter);
-        bean.serialize(parentQName, mtomAwareXMLStreamWriter);
-        mtomAwareXMLStreamWriter.flush();
+        bean.serialize(parentQName, xmlWriter);
+        xmlWriter.flush();
     }
 
     /**

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBHelper.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBHelper.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBHelper.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBHelper.java Mon Jul 20 17:50:58 2009
@@ -22,10 +22,10 @@
 import javax.xml.namespace.QName;
 import javax.xml.stream.XMLStreamException;
 import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLStreamWriter;
 
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMFactory;
-import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter;
 
 /**
  * Interface implemented by all ADB helpers. Helpers are generated by ADB when helper mode
@@ -40,7 +40,7 @@
 
     OMElement getOMElement(T bean, QName parentQName, OMFactory factory) throws ADBException;
 
-    void serialize(T bean, QName parentQName, MTOMAwareXMLStreamWriter xmlWriter) throws XMLStreamException;
+    void serialize(T bean, QName parentQName, XMLStreamWriter xmlWriter) throws XMLStreamException;
 
     T parse(XMLStreamReader reader) throws Exception;
 }

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBHelperDataSource.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBHelperDataSource.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBHelperDataSource.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBHelperDataSource.java Mon Jul 20 17:50:58 2009
@@ -24,8 +24,6 @@
 import org.apache.axiom.om.OMException;
 import org.apache.axiom.om.OMOutputFormat;
 import org.apache.axiom.om.util.StAXUtils;
-import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLSerializer;
-import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter;
 
 import javax.xml.namespace.QName;
 import javax.xml.stream.XMLStreamException;
@@ -92,9 +90,8 @@
      * @see OMDataSource#serialize(javax.xml.stream.XMLStreamWriter)
      */
     public void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException{
-        MTOMAwareXMLStreamWriter mtomAwareXMLStreamWriter = new MTOMAwareXMLSerializer(xmlWriter);
-        helper.serialize(bean, parentQName, mtomAwareXMLStreamWriter);
-        mtomAwareXMLStreamWriter.flush();
+        helper.serialize(bean, parentQName, xmlWriter);
+        xmlWriter.flush();
     }
 
     /**

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBSOAPModelBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBSOAPModelBuilder.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBSOAPModelBuilder.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBSOAPModelBuilder.java Mon Jul 20 17:50:58 2009
@@ -25,12 +25,12 @@
 import org.apache.axiom.soap.SOAPEnvelope;
 import org.apache.axiom.soap.SOAPFactory;
 import org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder;
-import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter;
 import org.apache.axis2.util.StreamWrapper;
 
 import javax.xml.namespace.QName;
 import javax.xml.stream.XMLStreamException;
 import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLStreamWriter;
 
 /** Builds a SOAPEnvelope around an ADB pull parser */
 public class ADBSOAPModelBuilder extends StAXSOAPModelBuilder {
@@ -75,13 +75,13 @@
         }
 
         public void serialize(final QName parentQName,
-                              MTOMAwareXMLStreamWriter xmlWriter)
+                              XMLStreamWriter xmlWriter)
                 throws XMLStreamException, ADBException {
             serialize(parentQName,xmlWriter,false);
         }
 
         public void serialize(final QName parentQName,
-                              MTOMAwareXMLStreamWriter xmlWriter,
+                              XMLStreamWriter xmlWriter,
                               boolean serializeType)
                 throws XMLStreamException, ADBException {
             throw new UnsupportedOperationException("Unimplemented method");
@@ -114,13 +114,13 @@
         }
 
         public void serialize(final QName parentQName,
-                              MTOMAwareXMLStreamWriter xmlWriter)
+                              XMLStreamWriter xmlWriter)
                 throws XMLStreamException, ADBException {
             serialize(parentQName,xmlWriter,false);
         }
 
         public void serialize(final QName parentQName,
-                              MTOMAwareXMLStreamWriter xmlWriter,
+                              XMLStreamWriter xmlWriter,
                               boolean serializeType)
                 throws XMLStreamException, ADBException {
             throw new UnsupportedOperationException("Unimplemented method");
@@ -141,13 +141,13 @@
         }
 
         public void serialize(final QName parentQName,
-                              MTOMAwareXMLStreamWriter xmlWriter)
+                              XMLStreamWriter xmlWriter)
                 throws XMLStreamException, ADBException {
             serialize(parentQName,xmlWriter,false);
         }
 
         public void serialize(final QName parentQName,
-                              MTOMAwareXMLStreamWriter xmlWriter,
+                              XMLStreamWriter xmlWriter,
                               boolean serializeType)
                 throws XMLStreamException, ADBException {
             throw new UnsupportedOperationException("Unimplemented method");
@@ -171,13 +171,13 @@
         }
 
         public void serialize(final QName parentQName,
-                              MTOMAwareXMLStreamWriter xmlWriter)
+                              XMLStreamWriter xmlWriter)
                 throws XMLStreamException, ADBException {
             serialize(parentQName,xmlWriter,false);
         }
 
         public void serialize(final QName parentQName,
-                              MTOMAwareXMLStreamWriter xmlWriter,
+                              XMLStreamWriter xmlWriter,
                               boolean serializeType)
                 throws XMLStreamException, ADBException {
             throw new UnsupportedOperationException("Unimplemented method");

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/AnyType.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/AnyType.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/AnyType.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/AnyType.java Mon Jul 20 17:50:58 2009
@@ -26,6 +26,8 @@
  */
             
                 package org.apache.axis2.databinding.types.soapencoding;
+
+import javax.xml.stream.XMLStreamWriter;
             
 
             /**
@@ -110,25 +112,20 @@
 
         
                 org.apache.axiom.om.OMDataSource dataSource =
-                       new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME){
-
-                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
-                       AnyType.this.serialize(MY_QNAME,xmlWriter);
-                 }
-               };
+                       new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
                return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
                MY_QNAME,factory,dataSource);
             
        }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                       XMLStreamWriter xmlWriter)
                                 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
                            serialize(parentQName,xmlWriter,false);
          }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               XMLStreamWriter xmlWriter,
                                boolean serializeType)
             throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
             

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/AnyURI.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/AnyURI.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/AnyURI.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/AnyURI.java Mon Jul 20 17:50:58 2009
@@ -26,6 +26,8 @@
  */
             
                 package org.apache.axis2.databinding.types.soapencoding;
+
+import javax.xml.stream.XMLStreamWriter;
             
 
             /**
@@ -116,25 +118,20 @@
 
         
                org.apache.axiom.om.OMDataSource dataSource =
-                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
-
-                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
-                       AnyURI.this.serialize(parentQName,xmlWriter);
-                 }
-               };
+                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName);
                return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
                parentQName,factory,dataSource);
             
        }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                       XMLStreamWriter xmlWriter)
                                 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
                            serialize(parentQName,xmlWriter,false);
          }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               XMLStreamWriter xmlWriter,
                                boolean serializeType)
             throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
             

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Array.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Array.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Array.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Array.java Mon Jul 20 17:50:58 2009
@@ -35,10 +35,11 @@
 import org.apache.axis2.databinding.ADBException;
 import org.apache.axis2.databinding.utils.BeanUtil;
 import org.apache.axis2.databinding.utils.ConverterUtil;
-import org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter;
 
 import javax.xml.stream.XMLStreamException;
 import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLStreamWriter;
+
 import java.lang.reflect.Method;
 import java.util.ArrayList;
 import java.util.Iterator;
@@ -246,22 +247,18 @@
             final OMFactory factory) throws ADBException {
 
 
-        OMDataSource dataSource = new ADBDataSource(this, parentQName) {
-            public void serialize(MTOMAwareXMLStreamWriter xmlWriter) throws XMLStreamException {
-                Array.this.serialize(parentQName, xmlWriter);
-            }
-        };
+        OMDataSource dataSource = new ADBDataSource(this, parentQName);
         return new OMSourcedElementImpl(parentQName, factory, dataSource);
 
     }
 
     public void serialize(final javax.xml.namespace.QName parentQName,
-                          MTOMAwareXMLStreamWriter xmlWriter) throws XMLStreamException, ADBException {
+                          XMLStreamWriter xmlWriter) throws XMLStreamException, ADBException {
         serialize(parentQName, xmlWriter, false);
     }
 
     public void serialize(final javax.xml.namespace.QName parentQName,
-                          MTOMAwareXMLStreamWriter xmlWriter,
+                          XMLStreamWriter xmlWriter,
                           boolean serializeType) throws XMLStreamException, ADBException {
 
 
@@ -352,7 +349,7 @@
     private void writeStartElement(java.lang.String namespace,
                                    java.lang.String localPart,
                                    java.lang.String prefix,
-                                   MTOMAwareXMLStreamWriter xmlWriter) throws XMLStreamException {
+                                   XMLStreamWriter xmlWriter) throws XMLStreamException {
         if ((namespace != null) && (namespace.trim().length() > 0)) {
             java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
             if (writerPrefix != null) {

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ArrayCoordinate.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ArrayCoordinate.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ArrayCoordinate.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ArrayCoordinate.java Mon Jul 20 17:50:58 2009
@@ -26,6 +26,8 @@
  */
             
                 package org.apache.axis2.databinding.types.soapencoding;
+
+import javax.xml.stream.XMLStreamWriter;
             
 
             /**
@@ -117,25 +119,20 @@
 
         
                 org.apache.axiom.om.OMDataSource dataSource =
-                       new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME){
-
-                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
-                       ArrayCoordinate.this.serialize(MY_QNAME,xmlWriter);
-                 }
-               };
+                       new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
                return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
                MY_QNAME,factory,dataSource);
             
        }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                       XMLStreamWriter xmlWriter)
                                 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
                            serialize(parentQName,xmlWriter,false);
          }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               XMLStreamWriter xmlWriter,
                                boolean serializeType)
             throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
             

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ArrayE.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ArrayE.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ArrayE.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ArrayE.java Mon Jul 20 17:50:58 2009
@@ -26,6 +26,8 @@
  */
             
                 package org.apache.axis2.databinding.types.soapencoding;
+
+import javax.xml.stream.XMLStreamWriter;
             
 
             /**
@@ -110,25 +112,20 @@
 
         
                 org.apache.axiom.om.OMDataSource dataSource =
-                       new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME){
-
-                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
-                       ArrayE.this.serialize(MY_QNAME,xmlWriter);
-                 }
-               };
+                       new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
                return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
                MY_QNAME,factory,dataSource);
             
        }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                       XMLStreamWriter xmlWriter)
                                 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
                            serialize(parentQName,xmlWriter,false);
          }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               XMLStreamWriter xmlWriter,
                                boolean serializeType)
             throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
             

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Base64.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Base64.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Base64.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Base64.java Mon Jul 20 17:50:58 2009
@@ -26,6 +26,8 @@
  */
             
                 package org.apache.axis2.databinding.types.soapencoding;
+
+import javax.xml.stream.XMLStreamWriter;
             
 
             /**
@@ -117,25 +119,20 @@
 
         
                 org.apache.axiom.om.OMDataSource dataSource =
-                       new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME){
-
-                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
-                       Base64.this.serialize(MY_QNAME,xmlWriter);
-                 }
-               };
+                       new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
                return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
                MY_QNAME,factory,dataSource);
             
        }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                       XMLStreamWriter xmlWriter)
                                 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
                            serialize(parentQName,xmlWriter,false);
          }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               XMLStreamWriter xmlWriter,
                                boolean serializeType)
             throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
             

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Base64Binary.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Base64Binary.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Base64Binary.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Base64Binary.java Mon Jul 20 17:50:58 2009
@@ -26,6 +26,13 @@
  */
             
                 package org.apache.axis2.databinding.types.soapencoding;
+
+import java.io.IOException;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+import org.apache.axiom.util.stax.XMLStreamWriterUtils;
             
 
             /**
@@ -116,25 +123,20 @@
 
         
                org.apache.axiom.om.OMDataSource dataSource =
-                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
-
-                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
-                       Base64Binary.this.serialize(parentQName,xmlWriter);
-                 }
-               };
+                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName);
                return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
                parentQName,factory,dataSource);
             
        }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                       XMLStreamWriter xmlWriter)
                                 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
                            serialize(parentQName,xmlWriter,false);
          }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               XMLStreamWriter xmlWriter,
                                boolean serializeType)
             throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
             
@@ -184,7 +186,11 @@
                                         
                                     if (localBase64Binary!=null)
                                     {
-                                       xmlWriter.writeDataHandler(localBase64Binary);
+                                        try {
+                                            XMLStreamWriterUtils.writeDataHandler(xmlWriter, localBase64Binary, null, true);
+                                        } catch (IOException ex) {
+                                            throw new XMLStreamException(ex);
+                                        }
                                     }
                                  
                     xmlWriter.writeEndElement();

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Date.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Date.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Date.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Date.java Mon Jul 20 17:50:58 2009
@@ -26,6 +26,8 @@
  */
             
                 package org.apache.axis2.databinding.types.soapencoding;
+
+import javax.xml.stream.XMLStreamWriter;
             
 
             /**
@@ -116,25 +118,20 @@
 
         
                org.apache.axiom.om.OMDataSource dataSource =
-                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
-
-                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
-                       Date.this.serialize(parentQName,xmlWriter);
-                 }
-               };
+                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName);
                return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
                parentQName,factory,dataSource);
             
        }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                       XMLStreamWriter xmlWriter)
                                 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
                            serialize(parentQName,xmlWriter,false);
          }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               XMLStreamWriter xmlWriter,
                                boolean serializeType)
             throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
             

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/DateTime.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/DateTime.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/DateTime.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/DateTime.java Mon Jul 20 17:50:58 2009
@@ -26,6 +26,8 @@
  */
             
                 package org.apache.axis2.databinding.types.soapencoding;
+
+import javax.xml.stream.XMLStreamWriter;
             
 
             /**
@@ -116,25 +118,20 @@
 
         
                org.apache.axiom.om.OMDataSource dataSource =
-                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
-
-                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
-                       DateTime.this.serialize(parentQName,xmlWriter);
-                 }
-               };
+                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName);
                return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
                parentQName,factory,dataSource);
             
        }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                       XMLStreamWriter xmlWriter)
                                 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
                            serialize(parentQName,xmlWriter,false);
          }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               XMLStreamWriter xmlWriter,
                                boolean serializeType)
             throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
             

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Decimal.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Decimal.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Decimal.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Decimal.java Mon Jul 20 17:50:58 2009
@@ -26,6 +26,8 @@
  */
             
                 package org.apache.axis2.databinding.types.soapencoding;
+
+import javax.xml.stream.XMLStreamWriter;
             
 
             /**
@@ -116,25 +118,20 @@
 
         
                org.apache.axiom.om.OMDataSource dataSource =
-                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
-
-                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
-                       Decimal.this.serialize(parentQName,xmlWriter);
-                 }
-               };
+                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName);
                return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
                parentQName,factory,dataSource);
             
        }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                       XMLStreamWriter xmlWriter)
                                 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
                            serialize(parentQName,xmlWriter,false);
          }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               XMLStreamWriter xmlWriter,
                                boolean serializeType)
             throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
             

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Duration.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Duration.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Duration.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Duration.java Mon Jul 20 17:50:58 2009
@@ -26,6 +26,8 @@
  */
             
                 package org.apache.axis2.databinding.types.soapencoding;
+
+import javax.xml.stream.XMLStreamWriter;
             
 
             /**
@@ -116,25 +118,20 @@
 
         
                org.apache.axiom.om.OMDataSource dataSource =
-                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
-
-                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
-                       Duration.this.serialize(parentQName,xmlWriter);
-                 }
-               };
+                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName);
                return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
                parentQName,factory,dataSource);
             
        }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                       XMLStreamWriter xmlWriter)
                                 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
                            serialize(parentQName,xmlWriter,false);
          }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               XMLStreamWriter xmlWriter,
                                boolean serializeType)
             throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
             

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ENTITIES.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ENTITIES.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ENTITIES.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ENTITIES.java Mon Jul 20 17:50:58 2009
@@ -26,6 +26,8 @@
  */
             
                 package org.apache.axis2.databinding.types.soapencoding;
+
+import javax.xml.stream.XMLStreamWriter;
             
 
             /**
@@ -116,25 +118,20 @@
 
         
                org.apache.axiom.om.OMDataSource dataSource =
-                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
-
-                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
-                       ENTITIES.this.serialize(parentQName,xmlWriter);
-                 }
-               };
+                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName);
                return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
                parentQName,factory,dataSource);
             
        }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                       XMLStreamWriter xmlWriter)
                                 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
                            serialize(parentQName,xmlWriter,false);
          }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               XMLStreamWriter xmlWriter,
                                boolean serializeType)
             throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
             

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ENTITY.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ENTITY.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ENTITY.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ENTITY.java Mon Jul 20 17:50:58 2009
@@ -26,6 +26,8 @@
  */
             
                 package org.apache.axis2.databinding.types.soapencoding;
+
+import javax.xml.stream.XMLStreamWriter;
             
 
             /**
@@ -116,25 +118,20 @@
 
         
                org.apache.axiom.om.OMDataSource dataSource =
-                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
-
-                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
-                       ENTITY.this.serialize(parentQName,xmlWriter);
-                 }
-               };
+                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName);
                return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
                parentQName,factory,dataSource);
             
        }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                       XMLStreamWriter xmlWriter)
                                 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
                            serialize(parentQName,xmlWriter,false);
          }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               XMLStreamWriter xmlWriter,
                                boolean serializeType)
             throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
             

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GDay.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GDay.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GDay.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GDay.java Mon Jul 20 17:50:58 2009
@@ -26,6 +26,8 @@
  */
             
                 package org.apache.axis2.databinding.types.soapencoding;
+
+import javax.xml.stream.XMLStreamWriter;
             
 
             /**
@@ -116,25 +118,20 @@
 
         
                org.apache.axiom.om.OMDataSource dataSource =
-                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
-
-                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
-                       GDay.this.serialize(parentQName,xmlWriter);
-                 }
-               };
+                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName);
                return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
                parentQName,factory,dataSource);
             
        }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                       XMLStreamWriter xmlWriter)
                                 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
                            serialize(parentQName,xmlWriter,false);
          }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               XMLStreamWriter xmlWriter,
                                boolean serializeType)
             throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
             

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GMonth.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GMonth.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GMonth.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GMonth.java Mon Jul 20 17:50:58 2009
@@ -26,6 +26,8 @@
  */
             
                 package org.apache.axis2.databinding.types.soapencoding;
+
+import javax.xml.stream.XMLStreamWriter;
             
 
             /**
@@ -116,25 +118,20 @@
 
         
                org.apache.axiom.om.OMDataSource dataSource =
-                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
-
-                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
-                       GMonth.this.serialize(parentQName,xmlWriter);
-                 }
-               };
+                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName);
                return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
                parentQName,factory,dataSource);
             
        }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                       XMLStreamWriter xmlWriter)
                                 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
                            serialize(parentQName,xmlWriter,false);
          }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               XMLStreamWriter xmlWriter,
                                boolean serializeType)
             throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
             

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GMonthDay.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GMonthDay.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GMonthDay.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GMonthDay.java Mon Jul 20 17:50:58 2009
@@ -26,6 +26,8 @@
  */
             
                 package org.apache.axis2.databinding.types.soapencoding;
+
+import javax.xml.stream.XMLStreamWriter;
             
 
             /**
@@ -116,25 +118,20 @@
 
         
                org.apache.axiom.om.OMDataSource dataSource =
-                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
-
-                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
-                       GMonthDay.this.serialize(parentQName,xmlWriter);
-                 }
-               };
+                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName);
                return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
                parentQName,factory,dataSource);
             
        }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                       XMLStreamWriter xmlWriter)
                                 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
                            serialize(parentQName,xmlWriter,false);
          }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               XMLStreamWriter xmlWriter,
                                boolean serializeType)
             throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
             

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GYear.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GYear.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GYear.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GYear.java Mon Jul 20 17:50:58 2009
@@ -26,6 +26,8 @@
  */
             
                 package org.apache.axis2.databinding.types.soapencoding;
+
+import javax.xml.stream.XMLStreamWriter;
             
 
             /**
@@ -116,25 +118,20 @@
 
         
                org.apache.axiom.om.OMDataSource dataSource =
-                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
-
-                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
-                       GYear.this.serialize(parentQName,xmlWriter);
-                 }
-               };
+                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName);
                return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
                parentQName,factory,dataSource);
             
        }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                       XMLStreamWriter xmlWriter)
                                 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
                            serialize(parentQName,xmlWriter,false);
          }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               XMLStreamWriter xmlWriter,
                                boolean serializeType)
             throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
             

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GYearMonth.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GYearMonth.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GYearMonth.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/GYearMonth.java Mon Jul 20 17:50:58 2009
@@ -26,6 +26,8 @@
  */
             
                 package org.apache.axis2.databinding.types.soapencoding;
+
+import javax.xml.stream.XMLStreamWriter;
             
 
             /**
@@ -116,25 +118,20 @@
 
         
                org.apache.axiom.om.OMDataSource dataSource =
-                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
-
-                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
-                       GYearMonth.this.serialize(parentQName,xmlWriter);
-                 }
-               };
+                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName);
                return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
                parentQName,factory,dataSource);
             
        }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                       XMLStreamWriter xmlWriter)
                                 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
                            serialize(parentQName,xmlWriter,false);
          }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               XMLStreamWriter xmlWriter,
                                boolean serializeType)
             throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
             

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/HexBinary.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/HexBinary.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/HexBinary.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/HexBinary.java Mon Jul 20 17:50:58 2009
@@ -26,6 +26,8 @@
  */
             
                 package org.apache.axis2.databinding.types.soapencoding;
+
+import javax.xml.stream.XMLStreamWriter;
             
 
             /**
@@ -116,25 +118,20 @@
 
         
                org.apache.axiom.om.OMDataSource dataSource =
-                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
-
-                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
-                       HexBinary.this.serialize(parentQName,xmlWriter);
-                 }
-               };
+                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName);
                return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
                parentQName,factory,dataSource);
             
        }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                       XMLStreamWriter xmlWriter)
                                 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
                            serialize(parentQName,xmlWriter,false);
          }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               XMLStreamWriter xmlWriter,
                                boolean serializeType)
             throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
             

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ID.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ID.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ID.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/ID.java Mon Jul 20 17:50:58 2009
@@ -26,6 +26,8 @@
  */
             
                 package org.apache.axis2.databinding.types.soapencoding;
+
+import javax.xml.stream.XMLStreamWriter;
             
 
             /**
@@ -116,25 +118,20 @@
 
         
                org.apache.axiom.om.OMDataSource dataSource =
-                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
-
-                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
-                       ID.this.serialize(parentQName,xmlWriter);
-                 }
-               };
+                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName);
                return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
                parentQName,factory,dataSource);
             
        }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                       XMLStreamWriter xmlWriter)
                                 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
                            serialize(parentQName,xmlWriter,false);
          }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               XMLStreamWriter xmlWriter,
                                boolean serializeType)
             throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
             

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/IDREF.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/IDREF.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/IDREF.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/IDREF.java Mon Jul 20 17:50:58 2009
@@ -26,6 +26,8 @@
  */
             
                 package org.apache.axis2.databinding.types.soapencoding;
+
+import javax.xml.stream.XMLStreamWriter;
             
 
             /**
@@ -116,25 +118,20 @@
 
         
                org.apache.axiom.om.OMDataSource dataSource =
-                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
-
-                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
-                       IDREF.this.serialize(parentQName,xmlWriter);
-                 }
-               };
+                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName);
                return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
                parentQName,factory,dataSource);
             
        }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                       XMLStreamWriter xmlWriter)
                                 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
                            serialize(parentQName,xmlWriter,false);
          }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               XMLStreamWriter xmlWriter,
                                boolean serializeType)
             throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
             

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/IDREFS.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/IDREFS.java?rev=795935&r1=795934&r2=795935&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/IDREFS.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/soapencoding/IDREFS.java Mon Jul 20 17:50:58 2009
@@ -26,6 +26,8 @@
  */
             
                 package org.apache.axis2.databinding.types.soapencoding;
+
+import javax.xml.stream.XMLStreamWriter;
             
 
             /**
@@ -116,25 +118,20 @@
 
         
                org.apache.axiom.om.OMDataSource dataSource =
-                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
-
-                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
-                       IDREFS.this.serialize(parentQName,xmlWriter);
-                 }
-               };
+                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName);
                return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
                parentQName,factory,dataSource);
             
        }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                       XMLStreamWriter xmlWriter)
                                 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
                            serialize(parentQName,xmlWriter,false);
          }
 
          public void serialize(final javax.xml.namespace.QName parentQName,
-                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               XMLStreamWriter xmlWriter,
                                boolean serializeType)
             throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
             



Mime
View raw message