Hi, Phillip --

Hi all, I have an issue I hope someone can help me with: I have a webservice written using XFire which exposes an interface that has an xsd:dateTime element included. A snippet of the wsdl looks like this:
[...]
Caused by: java.lang.NumberFormatException: For input string: "T"
at java.lang.NumberFormatException.forInputString (NumberFormatException.java:48)
       at java.lang.Long.parseLong(Long.java:403)
       at java.lang.Long.parseLong(Long.java:461)
at org.codehaus.xfire.aegis.AbstractMessageReader.getValueAsLong (AbstractMessageReader.java:76) at org.codehaus.xfire.aegis.type.basic.LongType.readObject (LongType.java:16) at org.codehaus.xfire.aegis.type.basic.BeanType.readObject (BeanType.java:138)
The value  that's was passed in that case was:
2006-11-21T00:00:00
[...]

So... Looking at the default type mapping registry (org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry), the xsd:dateTime type should be getting mapped to a deserializer that would map it to a Calendar instance (org.codehaus.xfire.aegis.type.basic.DateTimeType) if not an XMLGregorianCalendar (JDK5, org.codehaus.xfire.aegis.type.java5.XMLGregorianCalendarType), so something doesn't add up. Where is the WSDL snippet that you're posting drawn from? Is it what's returned from [URL]?wsdl or is it from another source?

If you can either post more details or send me your example off-list, I'll see what we can see.

-- Paul

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to