users@jaxb.java.net

Re: <PING> Specified globalBinding customization not used error when compiling XJC

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 17 Dec 2003 10:46:41 -0800

> 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?

There is a mechanism but I think it's not something you'd want to use.

There's certainly no portable way to do this. You can use <jaxb:class
@implClass> and customize the implementation class, but even if you do
that, your code has to work cooperatively with generated
unmarshallers/marshallers of the other classes, and it's not really
documented at all.

I understand that the SOAP envelope is a top-level element. If you are
just interested in custom-processing the top-level element (for example,
so that you can just unmarshal a partial document), then there are other
ways to achieve the same thing.


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