JAX-RPC specifies that xsd:date maps to java.util.Calendar. That's why
wsdl2java is generating a Calendar type. Can you convert your domain
code to use Calendar instead of Date? If not, I suggest that you cast
the Calendar types to Date types.

Anne

On Dec 14, 2007 10:09 AM, Sam <[EMAIL PROTECTED]> wrote:
> Hi!
> I'm using java2wsdl and wsdl2java, wsdl2java is re-generating my beans
> to add all the serialization/deserialization code in them.
> The problem is that these generated beans are broken, my code don't
> work with them...
> The fields of java.util.Date datatype are translated into
> java.util.Calendar type, so, the domain code don't work anymore..
>
> I have an ant task that compiles the modified beans and overwrite the
> compiled classes with them. So, I'm doing the right thing?
> Should I be using the modified beans instead of the regular ones in my
> domain code? How could I solve the types issue?
>
> Maybe it is that I do not fully understand the framework yet, I'll
> really appreciate any tip or link to help me to solve this problem,
> Thanks in advance
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to