axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Whitney Hunter <whit...@hunterfam.com>
Subject Date serializer
Date Tue, 19 Aug 2003 21:06:45 GMT
Hi all,

I have an XML schema type that looks like this:

<complexType name="DemandBidType">
  <sequence>
     <element name="DemandBidHourly" minOccurs="0" maxOccurs="25">
        <complexType>
           <sequence>
              <element name="FixedDemand" type="mkt:MWType" 
minOccurs="0" maxOccurs="1"/>
              <element name="PriceSensitiveDemand" 
type="mkt:BlockBidType" minOccurs="0" maxOccurs="1"/>
           </sequence>
           <attributeGroup ref="mkt:HourEndingGroup"/>
        </complexType>
     </element>
  </sequence>
  <attribute name="day" type="date" use="required"/>
  <attribute name="location" type="mkt:LocationNameType" use="required"/>
</complexType>

When I populate the "day" and "location" attributes and them submit it 
to my service, tcpmonitor is showing:

   <DemandBid day="2003-08-19T17:35:16.859Z" location="test"/>

This is fouling up my deserializer on the server (castor) because it 
does not expect the xml schema type "date" to have a time component. 
After looking at the Axis code for a while, it seems like it is using 
the CalendarSerializer instead of the DateSerializer. I don't know 
enough about Axis yet to know why. Can anyone help?

Thanks,
Whitney


Mime
View raw message