I have a request described in xsd schema:
<xs:element name="MyRequest">
<xs:annotation>
<xs:documentation>some documentation</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="MyList" type="test:MyType" minOccurs="1" maxOccurs="100">
<xs:annotation>
<xs:documentation>some documentation</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
test:MyType has field of type xs:date:
<xs:element name="Birthday" type="xs:date" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>date of birth/xs:documentation>
</xs:annotation>
</xs:element>
which, when "translated" to Java class transforms into
@XmlElement(name = "Birthday", required = true)
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar birthday
but problem is that when request is sent it sends this parameter like this:
<Birthday>1996-05-22Z</Birthday>
I know it's allowed per specification, but I was requested to send only date part : <Birthday>1996-05-22</Birthday>
(without Z)
Is it possible without making Birhtday
string and using SimpleDateFormat?