Can anyone point me to the documentation that defines how java types are
mapped to SOAP types?  I would like to find the Java time that maps a SOAP
dateTime type.  If this documentation exists, please add it to the User
Guide, since this is critical to building services.

>From inspecting the Axis code it appears that the java.util.Calendar type
maps to the SOAP dateTime type, but this is really not a very good mapping
as the Calendar type is a singleton.  Thus, if you have to build an SOAP
interface that moves more than one Calendar object, then you end up with one
Calendar instance attempting to capture all three date values, so the
receiving end of the SOAP message will see the same value for all three
dateTime objects.  

If what I am say is true, then I would recommend the following mappings: 

        Java type               SOAP Type
        --------------  ---------
        java.util.Date  dateTime
        <no type>               date

The reason I recommend this is that the SOAP date type is not as useful as
the SOAP dateTime type.  And, those that do not need the Time dimension can
just ignore it.

Jim Stickley
Birch Telecom
(816) 300-6743
[EMAIL PROTECTED]

Reply via email to