Hi Kumar,
I think default ADB data binding behaviour map xs:dateTime into
java.util.Calendar , but this is not a issue , can you post your
service class and the client code segment to see how you pass
java.util.Calendar instance to stub method ?
usually you can pass a date in the client side as follows
//req is a instance of the generated request class
HelloService req=new HelloService();
//create a date instance with the value
Date date=..............................................
Calendar calendar=new GregorianCalendar();
calendar.setTime(date);
req.setDate(calendar);
If you not specify any date to Calendar ,by default it will pick up
current system time .
Thanks ,
On Mon, Mar 9, 2009 at 12:18 PM, <[email protected]> wrote:
> Hi,
>
> we are creating a WebService (Axis2) using Code first approach.
> we have created a Request class, response class and a Operation Class with
> the function to be exposed to client.
>
> the Request class has a Date Field...
> We try declaring the Date Field as java.sql.Date / java.util.Date , but when
> we generate WSDL and Stubs it getting mapped to java.util.Calendar..
>
> hence We are facing a problem. we generated Client stubs and passed the
> Calendar instance to the Service, but the
> Calendar instance is giving the current Date and time and not the passed
> input value.
>
> Any inputs on this would be of great help.
>
> thanks in advance
> Kumar
>
> Please do not print this email unless it is absolutely necessary.
>
> The information contained in this electronic message and any attachments to
> this message are intended for the exclusive use of the addressee(s) and may
> contain proprietary, confidential or privileged information. If you are not
> the intended recipient, you should not disseminate, distribute or copy this
> e-mail. Please notify the sender immediately and destroy all copies of this
> message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient should
> check this email and any attachments for the presence of viruses. The company
> accepts no liability for any damage caused by any virus transmitted by this
> email.
>
> www.wipro.com
>
--
Sagara Gunathunga
Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/