Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 69508 invoked from network); 21 Nov 2003 04:03:56 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 21 Nov 2003 04:03:56 -0000 Received: (qmail 98714 invoked by uid 500); 21 Nov 2003 04:03:28 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 98695 invoked by uid 500); 21 Nov 2003 04:03:28 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 98680 invoked from network); 21 Nov 2003 04:03:27 -0000 Message-ID: <51928.203.143.19.4.1069387417.squirrel@webmail.pair.com> Date: Fri, 21 Nov 2003 06:03:37 +0200 (EET) Subject: Re: xml date and dateTime mismatch in wsdl From: "vairamuthu thayapavan" To: X-pair-Authenticated: 203.143.19.4 In-Reply-To: <3FBD6692.8020300@cern.ch> References: <3FBD6692.8020300@cern.ch> X-Priority: 3 Importance: Normal X-Mailer: SquirrelMail (version 1.2.11) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N hi same prob also occured to someone else in the mailing list. wsdl2java generate the sql.Date or util.date for the XSD_Date. see the class org.apache.axis.encoding.DefaultTypeMappingImpl. prob might be in the regenerating the XSD type from the java Date type. vtpavan > Hi all, > > I have run into the following problem. I define a type "xsd:date" in my > wsdl, then generate code using wsdl2java and when I deploy it on axis > (on tomcat), the type in the published wsdl becomes "xsd:dateTime". > Quite annoying when generating client and server code as well using > wsdl2java. In case this is too cryptic, the example should speak for > itself: > > ============================ testdate.wsdl ==================== > > > > > > > minOccurs="0"/> > > > nillable="true"/> > nillable="true"/> > [...] > > ============================================================ > > I put testdate.wsdl into an empty directory, run wsdl2java on it with > 'serverside' and deploy using the generated > wsdd. Then what I get is: > > ============ http://localhost:8080/axis/services/testdate?wsdl > ============ > > > > > > nillable="true" type="xsd:dateTime"/> > > > > > > > > ==================================================================================== > > > Any suggestions? Is this a bug (maybe known?), or am I doing something > wrong? The full wsdl file is copied below. > > Notice that apparently this happens only when date is nested in a > complexType, "echo_in_type" survives nicely. > > Thanks, > > Tamas > > > > ============================================================ > ============ testdate.wsdl ============ > > targetNamespace="http://testdate/" > elementFormDefault="qualified" > xmlns:tns="http://testdate/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> > > > > > minOccurs="0"/> > > > nillable="true"/> > nillable="true"/> > > > > > > > > > > > > > > > > > transport="http://schemas.xmlsoap.org/soap/http"/> > > > use="literal"/> > use="literal"/> > > > > > location="http://pcettmg03.cern.ch:8080/axis/services/testdate"/> > > >