Axis is correct, and this mapping is defined by JAX-RPC.
The name of the java.util.Date class is misleading, since it also contains
time values, and is thus mapped to xsd:dateTime. Otherwise, the time
information would be lost.
Beware that java.util.Calendar also gets mapped to a xsd:dateTime. When
generatind clients from WSDL, a xsd:dateTime will probably be mapped to a
Calendar, not a Date. (Calendar is Locale-sensitive, Date is not).
=============================================
Marcelo Jaccoud Amaral
Petrobras - TI - Neg�cios Eletr�nicos
mailto:jaccoud [at] petrobras.com.br
voice: +55 21 2534-3485
fax: +55 21 2534-1809
=============================================
There are only 10 kinds of people in the world: those who understand binary
and those who don't.



                                                                                       
                      
                      "Steve Pruitt"                                                   
                      
                      <[EMAIL PROTECTED]        Para:     <[EMAIL PROTECTED]>          
                 
                      .com>                    cc:       (cco: Marcelo Jaccoud 
Amaral/RJ/Petrobras)          
                                               Assunto:  generated wsdl has wrong date 
type                  
                      2003-10-17 16:56                                                 
                      
                      Favor responder a                                                
                      
                      axis-user                                                        
                      
                                                                                       
                      
                                                                                       
                      




All,

I have a service with an argument declared as java.util.Date.  When I use
axis' wsdl generating tool, the resulting wsdl declares the part as
xsd:dateTime.  Shouldn't this be xsd:date?  How do I get the right xsd type
generated?


-Steve Pruitt





Reply via email to