0 Replies Latest reply on Nov 7, 2007 7:05 AM by kumar reddy

    bind datatype javax.xml.datatype.XMLGregorianCalendar to jav

    kumar reddy Newbie

      Hi All,

      When i generated schema classes from jaxb 2.1.5.It generated XMLGregorianCalendar data type for xml type xsd:date.Then i changed my schema adding inline annotations and binded the XMLGregorianCalendar to Calendar.Following is the code that i have added in my schema.

       <jaxb:javaType name="java.util.Calendar" xmlType="xsd:date"

      But When i generated the client stubs using wsconsume from the WSDL it is still generating XMLGregorianCalendar data type.

      So my question what should i do to bind the data type XMLGregorianCalendar to Calendar in client side stubs,
      but i should not change the WSDL.

      Please help me.