axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Russell Butek" <>
Subject Re: WSDL Generated Code for xsd:date,xsd:datetim. is wrong.
Date Mon, 29 Apr 2002 12:23:12 GMT
Which version of AXIS are you using?  This is a very strange bit of code to
generate.  It is certainly wrong.  And it is NOT generated with the latest
versions of AXIS (at least it's not in our tests).

Russell Butek

Reddy <> on 04/27/2002 09:33:30 PM

Please respond to

Subject:    WSDL Generated Code for xsd:date,xsd:datetim. is wrong.

WSDL is generating the wrong code in the class files.

Here is the code generated from WSDL for xsd:date,

public WaitTimeFormat(java.lang.String value) {
        this.value = new java.util.Calendar(value);

Java Docs says, you cannot instantiate a Calendar
using the New; an instance of the calendar can be
obtained using the getInstance method. If you compile
the code, you will get compilation errors.

Here is one approach to resolve the problem.

For the Date types, uses the DateFormatte, to parse
and from there construct the Calendar object.

Post your ad for FREE!

View raw message