Java web service, xsd date instead of dateTime?

I don't think you'll be able to achieve this, JAX-RPC just doesn't have the flexibility (which is why it was killed in JavaEE 5).

I don't think you'll be able to achieve this, JAX-RPC just doesn't have the flexibility (which is why it was killed in JavaEE 5). In general, I usually find that WSDL generators do not have the expressive power to generate the exact WSDl I want, and so I tend to use them to generate a WSDL as a starting point, and then modifying the result. You then server up the WSDL as a static file rather than as a generated one.It's not ideal, but it's not a big deal either.

According to the IBM docs you are right, both date and dateTime map to Calendar. There doesn't seem to be a standard way to use only the date part, of course you could roll your own (interestingly the second page of the referenced article says date is for dates only but page 3 confirms it maps to Calendar). For reference there's a similar question about doing this in WCF.

Thank you for this answer, it is helpful, but doesn't directly help me solve my problem of how to make the web service expose a wsdl with an xs:date field. The client application requested that the wsdl expose a date only, not dateTime. – jasonmw Jul 27 '09 at 2:41.

I actually did figure out how to do this properly. In the WEB-INF/wsdl/(schemaname). Xsd I changed the datatype to date from dateTime and redeploy the service and it works with my existing java.util.

Calendar types.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions