Return-Path: Mailing-List: contact axis-user-help@xml.apache.org; run by ezmlm Delivered-To: mailing list axis-user@xml.apache.org Received: (qmail 8393 invoked from network); 3 May 2002 00:35:42 -0000 Received: from web13706.mail.yahoo.com (216.136.175.139) by daedalus.apache.org with SMTP; 3 May 2002 00:35:42 -0000 Message-ID: <20020503003550.3598.qmail@web13706.mail.yahoo.com> Received: from [66.185.85.79] by web13706.mail.yahoo.com via HTTP; Thu, 02 May 2002 20:35:50 EDT Date: Thu, 2 May 2002 20:35:50 -0400 (EDT) From: Reddy Subject: Re: WSDL Generated Code for xsd:date,xsd:datetim. is wrong. To: axis-user@xml.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I am using the Axis Beta 2. if you have a simple type, which is derived from date with a restriction you can see that the code generates the Calander type. try with this in our wsdl schema. Try with this. Thanks Reddy --- Russell Butek wrote: > 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 > butek@us.ibm.com > > > Reddy on > 04/27/2002 09:33:30 PM > > Please respond to axis-user@xml.apache.org > > To: axis-user@xml.apache.org > cc: > 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, > xsd:dateTime > > 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! http://personals.yahoo.ca > > ______________________________________________________________________ Games, Movies, Music & Sports! http://entertainment.yahoo.ca