axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r600974 - /webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
Date Tue, 04 Dec 2007 15:06:13 GMT
Author: amilas
Date: Tue Dec  4 07:06:12 2007
New Revision: 600974

URL: http://svn.apache.org/viewvc?rev=600974&view=rev
Log:
fixed some minner issues

Modified:
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java?rev=600974&r1=600973&r2=600974&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
Tue Dec  4 07:06:12 2007
@@ -159,7 +159,19 @@
     }
 
     public static void appendDate(StringBuffer dateString, Calendar calendar) {
-        dateString.append(calendar.get(Calendar.YEAR)).append("-");
+
+        int year = calendar.get(Calendar.YEAR);
+
+        if (year < 1000){
+            dateString.append("0");
+        }
+        if (year < 100){
+            dateString.append("0");
+        }
+        if (year < 10) {
+            dateString.append("0");
+        }
+        dateString.append(year).append("-");
 
         // xml date month is started from 1 and calendar month is
         // started from 0. so have to add one
@@ -1465,6 +1477,7 @@
 
                 if (attributeNameSpace.equals(Constants.XSD_NAMESPACE)) {
                     if ("base64Binary".equals(attributeType)) {
+                        xmlStreamReader.next();
                         returnObject = getDataHandlerObject(xmlStreamReader);
                     } else {
                         String attribValue = xmlStreamReader.getElementText();



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message