You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Emil Dombagolla <do...@gmail.com> on 2011/03/01 12:32:45 UTC

Date help

Hi all,

Please help me on this.

axis2 generated all my java codes based on the WSDL.

in my code i set the date in following format,  as java.util.Date

2001-01-01

what i get when request send to the server is the following,

Mon Jan 01 00:00:00 IST 2001

this becomes an error because of the invalid format of date . how i maintain
the format as yyyy-MM-dd.


thanks
Emil.

Re: Date help

Posted by Emil Dombagolla <do...@gmail.com>.
Yes , i was thinking to do that , but i couldn't do that


i use eclipse with axis2 , as i could find it allows only access the wsdl
only from a url , so i can,t download the wsdl and change.

or i have to change the generated stub with string for date objects.

Thanks

Emil

On Tue, Mar 1, 2011 at 6:04 PM, Martin Makundi <
martin.makundi@koodaripalvelut.com> wrote:

> Make it string instead of date.
>
> **
> Martin
>
> 2011/3/1 Emil Dombagolla <do...@gmail.com>:
> > Thank you so much for your help.
> >
> > web server accept only that format. otherwise it gives an error.
> >
> > what is that transport , what i need to do there.
> >
> > thank you so much
> >
> > emil
> >
> >
> >
> >
> > On Tue, Mar 1, 2011 at 5:26 PM, Martin Makundi
> > <ma...@koodaripalvelut.com> wrote:
> >>
> >> Why you need to preserve such format?
> >>
> >> Try using java.util.Calendar for transport.
> >>
> >> **
> >> Martin
> >>
> >> 2011/3/1 Emil Dombagolla <do...@gmail.com>:
> >> > Hi all,
> >> >
> >> > Please help me on this.
> >> >
> >> > axis2 generated all my java codes based on the WSDL.
> >> >
> >> > in my code i set the date in following format,  as java.util.Date
> >> >
> >> > 2001-01-01
> >> >
> >> > what i get when request send to the server is the following,
> >> >
> >> > Mon Jan 01 00:00:00 IST 2001
> >> >
> >> > this becomes an error because of the invalid format of date . how i
> >> > maintain
> >> > the format as yyyy-MM-dd.
> >> >
> >> >
> >> > thanks
> >> > Emil.
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> >> For additional commands, e-mail: java-user-help@axis.apache.org
> >>
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>

Re: Date help

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Make it string instead of date.

**
Martin

2011/3/1 Emil Dombagolla <do...@gmail.com>:
> Thank you so much for your help.
>
> web server accept only that format. otherwise it gives an error.
>
> what is that transport , what i need to do there.
>
> thank you so much
>
> emil
>
>
>
>
> On Tue, Mar 1, 2011 at 5:26 PM, Martin Makundi
> <ma...@koodaripalvelut.com> wrote:
>>
>> Why you need to preserve such format?
>>
>> Try using java.util.Calendar for transport.
>>
>> **
>> Martin
>>
>> 2011/3/1 Emil Dombagolla <do...@gmail.com>:
>> > Hi all,
>> >
>> > Please help me on this.
>> >
>> > axis2 generated all my java codes based on the WSDL.
>> >
>> > in my code i set the date in following format,  as java.util.Date
>> >
>> > 2001-01-01
>> >
>> > what i get when request send to the server is the following,
>> >
>> > Mon Jan 01 00:00:00 IST 2001
>> >
>> > this becomes an error because of the invalid format of date . how i
>> > maintain
>> > the format as yyyy-MM-dd.
>> >
>> >
>> > thanks
>> > Emil.
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
>> For additional commands, e-mail: java-user-help@axis.apache.org
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Re: Date help

Posted by Emil Dombagolla <do...@gmail.com>.
Thank you so much for your help.

web server accept only that format. otherwise it gives an error.

what is that transport , what i need to do there.

thank you so much

emil




On Tue, Mar 1, 2011 at 5:26 PM, Martin Makundi <
martin.makundi@koodaripalvelut.com> wrote:

> Why you need to preserve such format?
>
> Try using java.util.Calendar for transport.
>
> **
> Martin
>
> 2011/3/1 Emil Dombagolla <do...@gmail.com>:
> > Hi all,
> >
> > Please help me on this.
> >
> > axis2 generated all my java codes based on the WSDL.
> >
> > in my code i set the date in following format,  as java.util.Date
> >
> > 2001-01-01
> >
> > what i get when request send to the server is the following,
> >
> > Mon Jan 01 00:00:00 IST 2001
> >
> > this becomes an error because of the invalid format of date . how i
> maintain
> > the format as yyyy-MM-dd.
> >
> >
> > thanks
> > Emil.
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>

Re: Date help

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Why you need to preserve such format?

Try using java.util.Calendar for transport.

**
Martin

2011/3/1 Emil Dombagolla <do...@gmail.com>:
> Hi all,
>
> Please help me on this.
>
> axis2 generated all my java codes based on the WSDL.
>
> in my code i set the date in following format,  as java.util.Date
>
> 2001-01-01
>
> what i get when request send to the server is the following,
>
> Mon Jan 01 00:00:00 IST 2001
>
> this becomes an error because of the invalid format of date . how i maintain
> the format as yyyy-MM-dd.
>
>
> thanks
> Emil.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org