Hi Adam,
      I've tried using the java.sql.Date instead of Timestamp in the
<typeMapping>. However, it still not map to xsd:Date in the generated WSDL
file. Am I doing something wrong? If yes, what is the correct way of doing
it? Thanks.


Harry Wen


                                                                                       
                                                
                      adam kramer                                                      
                                                
                      <[EMAIL PROTECTED]>        To:       "[EMAIL PROTECTED]" <[EMAIL 
PROTECTED]>                           
                                               cc:                                     
                                                
                      09/04/2003 01:57         Subject:  Re: How to map 
java.sql.Timestamp in deploy.wsdd?                             
                      PM                                                               
                                                
                      Please respond to                                                
                                                
                      axis-user                                                        
                                                
                                                                                       
                                                
                                                                                       
                                                





 java.sql.Date maps to type XSD_DATE in the default mappings and uses the
DateSerializer and Deserializer in org.apache.axis.encoding.ser. You could
probably use the same serializers since both sql.Date and sql.Timestamp in
children of util.Date. In fact, if this is true, wouldnt it be useful to
have this in the default mappings? is XSD_DATE not fine grained enough for
timestamp, and should map to XSD_DATETIME?
If so, you could set up a mapping between the two and do something similar
to the CalendarSerializer.

not doing much research,
-adam k.

 On Thu, 4 Sep 2003 [EMAIL PROTECTED]
wrote:

> Hi,
>       I have following specified in my deploy.wsdd.
>
>         <typeMapping encodingStyle
> ="http://schemas.xmlsoap.org/soap/encoding/";
>                   qname="ns30:Timestamp"
>                   serializer
> ="org.apache.axis.encoding.ser.BeanSerializerFactory"
>                   deserializer
> ="org.apache.axis.encoding.ser.BeanDeserializerFactory"
>                   type="java:java.sql.Timestamp"
>                   xmlns:ns30="http://sql.java"/>
>
>       However, I can't make it work with the C# client. Any suggestion
will
> be much appreciated. Thanks.
>
>
> Harry Wen
>
>
>
>

---
http://adam.404.org





Reply via email to