0

I have generated client stub using Apache Axis1, and according to the given XML request sample I should send the date in yyyy-MM-dd format. But axis generated stub has Calendar type for the setDate method.

eg :

setDate(Calendar date)

So when I pass the date, it is going like bellow, 2014-09-21T18:30:00.000Z

Which is not the correct format. How can I pass the correct date format here using the client stub ?

Does this need to change from web service side ?

Thanks.

Harsha
  • 400
  • 1
  • 5
  • 16
  • http://stackoverflow.com/questions/12575990/calendar-date-to-yyyy-mm-dd-format-in-java Check this link. This should answer your question – Himanshu.MarJAVA Sep 17 '14 at 07:49
  • @Himanshu.MarJAVA Thank you for your link, but it is not what I looking for. Here issue is Axis generated method is having type as the Calendar "setDate(Calendar date)". So even we format the date, we have to set a Calendar type object. – Harsha Sep 17 '14 at 12:51

0 Answers0