axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r555218 - in /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description: AxisService.java java2wsdl/TypeTable.java
Date Wed, 11 Jul 2007 09:10:07 GMT
Author: deepal
Date: Wed Jul 11 02:10:06 2007
New Revision: 555218

URL: http://svn.apache.org/viewvc?view=rev&rev=555218
Log:
hmm , dont we need to have sql type as well, when we generate java2wsdl

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/TypeTable.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java?view=diff&rev=555218&r1=555217&r2=555218
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java
Wed Jul 11 02:10:06 2007
@@ -2386,4 +2386,8 @@
     public void setParent(AxisServiceGroup parent) {
         this.parent = parent;
     }
+
+    public String toString() {
+        return getName();
+    }
 }

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?view=diff&rev=555218&r1=555217&r2=555218
==============================================================================
--- 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
Wed Jul 11 02:10:06 2007
@@ -85,6 +85,14 @@
         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"));
+         simpleTypetoxsd.put("java.sql.Time",
+                new QName(Java2WSDLConstants.URI_2001_SCHEMA_XSD, "time", "xs"));
+        simpleTypetoxsd.put("java.sql.Timestamp",
+                new QName(Java2WSDLConstants.URI_2001_SCHEMA_XSD, "dateTime", "xs"));
+
          //consider BigDecimal, BigInteger, Day, Duration, Month, MonthDay,
         //Time, Year, YearMonth as SimpleType as well
         simpleTypetoxsd.put("java.math.BigDecimal",



---------------------------------------------------------------------
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