You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2007/12/18 05:07:07 UTC

svn commit: r605075 - /ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelParam.java

Author: jleroux
Date: Mon Dec 17 20:07:06 2007
New Revision: 605075

URL: http://svn.apache.org/viewvc?rev=605075&view=rev
Log:
A patch from Eriks Dobelis "WSDL returns error if datatype of parameter is Long or Timestamp" (https://issues.apache.org/jira/browse/OFBIZ-1263) - OFBIZ-1263 where string is used for Timestamp for simplicity reasons.


Modified:
    ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelParam.java

Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelParam.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelParam.java?rev=605075&r1=605074&r2=605075&view=diff
==============================================================================
--- ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelParam.java (original)
+++ ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelParam.java Mon Dec 17 20:07:06 2007
@@ -200,7 +200,12 @@
             return "dateTime";
         } else if (ObjectType.instanceOf(java.util.Date.class, this.type)) {
             return "dateTime";
+        } else if (ObjectType.instanceOf(java.lang.Long.class, this.type)) {
+            return "unsignedInt";
+        } else if (ObjectType.instanceOf(java.sql.Timestamp.class, this.type)) {
+            return "string";
         }
+
         // TODO add array support (maybe even convert List objects); add GenericValue/Map support
         throw new WSDLException(WSDLException.OTHER_ERROR, "Service cannot be described with WSDL (" + this.name + " / " + this.type + ")");
     }