项目中用到了cxf,但实体Bean中的java.util.date类型传到webservice接口后无法获取到值,所有date类型的都为空,其他的String、Long、Integer的类型的都没得问题。有遇到过的大仙帮忙说说是怎么回事?
[url]http://stackoverflow.com/questions/2942439/mapping-java-util-date-to-xsdate-instead-of-xsdatetime-in-jax-ws[/url]
[url]http://blog.csdn.net/nich262/article/details/2879125[/url]
[url]http://stackoverflow.com/questions/6143224/how-do-i-represent-dates-without-the-timezone-using-apache-cxf[/url]
[quote]在使用CXF的 wsdl2java 生成Java客户端时,JAXB(默认)把java.util.Date类型解释为 XMLGregorianCalendar,所以在客户端调用的时候,也需要传入XMLGregorianCalendar参数来对应Date类型[/quote]
[url]http://blog.csdn.net/nich262/article/details/2879125[/url]
[url]http://cwfmaker.iteye.com/blog/1142835[/url]