axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r663839 - in /webservices/axis2/trunk/java/modules: adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java kernel/src/org/apache/axis2/description/java2wsdl/TypeTable.java
Date Fri, 06 Jun 2008 06:49:53 GMT
Author: deepal
Date: Thu Jun  5 23:49:53 2008
New Revision: 663839

URL: http://svn.apache.org/viewvc?rev=663839&view=rev
Log:
we should display java.util.Date as xs:date , so I did the fix

Modified:
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/TypeTable.java

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java?rev=663839&r1=663838&r2=663839&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java
Thu Jun  5 23:49:53 2008
@@ -288,8 +288,8 @@
             zulu.setTimeZone(TimeZone.getTimeZone("GMT"));
             return zulu.format(((Calendar)obj).getTime());
         } else if (obj instanceof Date) {
-            SimpleDateFormat zulu = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
-            zulu.setTimeZone(TimeZone.getTimeZone("GMT"));
+            SimpleDateFormat zulu = new SimpleDateFormat("yyyy-MM-dd");
+//            zulu.setTimeZone(TimeZone.getTimeZone("GMT"));
             return zulu.format(obj);
         }
         return obj.toString();

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/TypeTable.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/TypeTable.java?rev=663839&r1=663838&r2=663839&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/TypeTable.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/TypeTable.java
Thu Jun  5 23:49:53 2008
@@ -87,13 +87,13 @@
         simpleTypetoxsd.put("java.lang.Short",
                 new QName(Java2WSDLConstants.URI_2001_SCHEMA_XSD, "short", "xs"));
         simpleTypetoxsd.put("java.util.Date",
-                new QName(Java2WSDLConstants.URI_2001_SCHEMA_XSD, "dateTime", "xs"));
+                new QName(Java2WSDLConstants.URI_2001_SCHEMA_XSD, "date", "xs"));
         simpleTypetoxsd.put("java.util.Calendar",
                 new QName(Java2WSDLConstants.URI_2001_SCHEMA_XSD, "dateTime", "xs"));
 
         // SQL date time
          simpleTypetoxsd.put("java.sql.Date",
-                new QName(Java2WSDLConstants.URI_2001_SCHEMA_XSD, "dateTime", "xs"));
+                new QName(Java2WSDLConstants.URI_2001_SCHEMA_XSD, "date", "xs"));
          simpleTypetoxsd.put("java.sql.Time",
                 new QName(Java2WSDLConstants.URI_2001_SCHEMA_XSD, "time", "xs"));
         simpleTypetoxsd.put("java.sql.Timestamp",



Mime
View raw message