XML – JAXB Binding XS: Date is changed to XS: DateTime?

I have to access a flawed web service where some fields in the WSDL have type xs:date but I have to fill them as xs:dateTime.

Is it possible to use JAXB Bindings files to change the type of fields in WSDL?

Snippet of WSDL:




You can use the @XmlSchemaType annotation to configure the XML representation:

@XmlElement(name = "date- of-birth")
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar dateOfBirth;

For more information, please refer to

> http: //bdoughan.blogspot.com/2011/01/jaxb-and-datetime-properties.html

I have to access a flawed web service, where the Some fields have type xs:date but I have to fill them as xs:dateTime.

Is it possible to use JAXB Bindings files to change the type of fields in WSDL?

Snippet of WSDL:




< p>You can use the @XmlSchemaType annotation to configure the XML representation:

@XmlElement(name = "date-of-birth")
@XmlSchemaType( name = "date")
protected XMLGregorianCalendar dateOfBirth;

For more information, please see

> http://bdoughan.blogspot.com/2011/01/ jaxb-and-datetime-properties.html

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 6002 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.