I have a WSDL of a soap web service. I generated the source files from the WSDL using wsimport command and added it in my java application code.
In the WSDL there is a date field which is of the type XMLGregorianCalendar. The tricky part here is that when the XML is generated, the format is some default format. Here is the part of the XML request.
<NeedDate>2015-04-06-04:00</NeedDate>
As per the requirement, it have to convert it to 'yyyy-MM-dd' format. My question is how to specify the date format to be used during XML generation.
Thanks.