You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Ram <ra...@gmail.com> on 2008/12/19 16:30:14 UTC

Issue with WSDL, modelParam.java

Hi All,
When i export createPerson service of part services with export="true",

i get the below error while trying to access the wsdl

2008-12-18 19:49:17,752 (http-0.0.0.0-8080-1) [
RequestHandler.java:321:ERROR] Request SOAPService caused an error with the
following message: Error calling event:
org.ofbiz.webapp.event.EventHandlerException: Unable to obtain WSDL
(WSDLException: faultCode=OTHER_ERROR: Service cannot be described with WSDL
(birthDate / java.sql.Date))

I found in org.ofbiz.service.ModelParam.java  (java2wsdlType() ) that no
mapping is done for java.sql.Date,

so i manually added the below:

else if (ObjectType.instanceOf(java.sql.Date.class, this.type)) {
            return "string";
        }

Issue with WSDL, modelParam.java

Posted by Ram <ra...@gmail.com>.
Hi All,
When i export createPerson service of part services with export="true",

i get the below error while trying to access the wsdl

2008-12-18 19:49:17,752 (http-0.0.0.0-8080-1) [
RequestHandler.java:321:ERROR] Request SOAPService caused an error with the
following message: Error calling event:
org.ofbiz.webapp.event.EventHandlerException: Unable to obtain WSDL
(WSDLException: faultCode=OTHER_ERROR: Service cannot be described with WSDL
(birthDate / java.sql.Date))

I found in org.ofbiz.service.ModelParam.java  (java2wsdlType() ) that no
mapping is done for java.sql.Date,

so i manually added the below:

       else if (ObjectType.instanceOf(java.sql.Date.class, this.type)) {
            return "string";
        }

its now successful in displaying the wsdl, but when i send the soap request
i am getting an error stating that it cannot be converted to java.sql.Date.

Any work around for this? can you please let me know the place where i can
read the string and manually convert it to java.sql.Date?

regards
ram.