Basically I wanted to override the complex type with my own handler for
deserializing/serializing the type in much the same way it is done with
javaType.
I'm not concerned with the fact that it takes a String, I'm mainly
concerned as to whether or not this can be done in JAXB.
So in the example of SOAP Envelope, I'd like to provide my own class for
deserializing/serializing, and anywhere JAXB sees the use of this type
will defer to me. It is the exact same behavior as javaType for simple
types.
Is there a mechanism in place to do this?
Thank you,
-Sal
-----Original Message-----
From: Kohsuke Kawaguchi [mailto:Kohsuke.Kawaguchi_at_Sun.COM]
Sent: Wednesday, December 17, 2003 1:15 PM
To: users_at_jaxb.dev.java.net
Subject: Re: <PING> Specified globalBinding customization not used error
when compiling XJC
> Since soap:Envelope is a complex type, is there another way I should
> have done this? I was under the impression that I'd be able to use
> the same mechanism for overriding complex types also....
>
> Is there another way?
The javaType customization lets you decide how you want to convert
strings in XML to/from Java representations.
So it doesn't make sense to me what you are trying to do by using
javaType with complex types. Could you elaborate?
regards,
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net