Date is null in Web Service response
问题 I'm trying to implement a client which asks a JAX Web Service for certain data. I used the wsimport command (Java 7u45 is installed) to generate the client classes from the wsdl. I have no problem getting back the string types but the date type becomes null in the Java code. This is what I get back as a soap response: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:SearchControllerwsdl"><SOAP-ENV:Body><ns1