axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cyrille Le Clerc <cyrille.lecl...@pobox.com>
Subject Re: Newbie help
Date Sun, 22 Jan 2006 03:50:01 GMT
   Hello Simon,

   The common java type to map a date in SOAP messages is
java.util.Calendar. You should prefer Calendar to java.util.Date,
java.sql.Date, java.sql.Timestamp or java.sql.Time.
   It is the best practice ; everybody will expect this even if some
people will find it is awkward.

   Note that the java.util.Date sould be supported by javaToWsdl but
it is not a best practice.

   Some resources :
- Axis doc "How your Java types map to SOAP XML types" :
http://ws.apache.org/axis/java/user-guide.html#HowYourJavaTypesMapToSOAPXMLTypes
- BEA doc "Data Types and Data Binding" :
http://e-docs.bea.com/wls/docs91/webserv/data_types.html

   Hope this helps,

   Cyrille

--
Cyrille Le Clerc
cyrille.leclerc@pobox.com
cyrille.leclerc@fr.ibm.com

On 1/22/06, Simon Nunn <simon.nunn@adelphia.net> wrote:
> I am running into the following error when running java2wsdl/wsdl2java ant
> tasks...how do I
> correct it?
>
>
> " Type {http://sql.java}Timestamp is referenced but not defined."

Mime
View raw message