I'd like to have CXF unmarshal dates to java.util.Calendar, but I'm not sure how to do it.
The dates may be contained in Object[][] array as in:

public class QueryResultSetServer {

    private Object[] columnNames;
    private Object[][] resultSet;

...getters and setters
}

I've specified a binding.xml file of:

<jaxws:bindings wsdlLocation="SadlService.wsdl"
          xmlns:jaxws="http://java.sun.com/xml/ns/jaxws";
          xmlns:xs="http://www.w3.org/2001/XMLSchema";
          xmlns:jxb="http://java.sun.com/xml/ns/jaxb";
          xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
<jaxws:bindings node="wsdl:definitions/wsdl:types/xs:schema[@targetNamespace='http://sadlserver.sadl.research.ge.com']">
      <jxb:globalBindings>
        <jxb:javaType name="java.util.Calendar" xmlType="xs:dateTime"
parseMethod="javax.xml.bind.DatatypeConverter.parseDateTime"
printMethod="javax.xml.bind.DatatypeConverter.printDateTime"/>
        <jxb:javaType name="java.util.Calendar" xmlType="xs:date"
parseMethod="javax.xml.bind.DatatypeConverter.parseDate"
printMethod="javax.xml.bind.DatatypeConverter.printDate"/>
      </jxb:globalBindings>
  </jaxws:bindings>
</jaxws:bindings>

however, when I generate the classes the adapters do not seem to be used.
As a result when the dates get unmarshalled they are of the class:
org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl

Any suggestions?
Thanks in advance.

Barry Hathaway

Reply via email to